From patchwork Tue Nov 6 18:07:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 150325 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4201808ljp; Tue, 6 Nov 2018 10:07:07 -0800 (PST) X-Google-Smtp-Source: AJdET5cRUh8jOR7rC5WDbu9SD0mgpBh8SsDMRsX/rK+978E8+g/RDNFiF0SKvxJj3JAx60zpsT8R X-Received: by 2002:adf:8b8f:: with SMTP id o15-v6mr24404548wra.81.1541527627059; Tue, 06 Nov 2018 10:07:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541527627; cv=none; d=google.com; s=arc-20160816; b=odZcNxNzNdTlR3EEpVV9ZdkA/h+hG5J36U1FJPR2FgYUvX/C01/Wchs9OnoaQg59B9 fhh5byYoqnOZJwCF3hci4+vNZZbUzuHaC6Pha6pY9wG983af0iHwtv9VjBqRLSTjBYwM IHaxWYERwqME9ikJAP2btV579zV5dxmJEXzS4FV2rDvek1yoED43nDWSwL+AwxT4jOE7 /Md3dzZ4JBSRsJv3hXE+ildPdQdCT1GeFGSXri7Q5CgwxMV/sb/4hmNtjdLKkCDqhXN2 DrRlhgCRkrEswxG464yvZbg+LHx9qtvSdxMhHEK8Y79Zi0XIELOog+3LTXMSMAM6HwPA ZV+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to; bh=XKQLC88IFB8WZ3aYTpn/Dx4q1ejcH3Sp6fkTJUUigaI=; b=WzNYpMhfRXCuhypXImko7i+dinKWC3TselsO773xkSFIrqe/2ZD1SdxPlf8yUOx1mv YNuXvXlnSTT1IYGbMUTb3dLLPjguEhfYLORSyFKYM+qTuO7PWz9M1k70MugufBgYyB+l 98ch1WLquSI1g/8Un7XZJ1a37Eq1rmLTFM40yFfR66942TngRUdhTjxdo61uzal4lKSq uFFh6s+/ww4luiiUjJKBgKGRphnbn+5CXk/zYVb//sTuOX286OWWOITXF5PT6MZpl4Qq x1VwKNMefauwyzd0J0djDLP1mFAR+COgYzR3Q/mKArc3IY/+qZwMs0OWP22z4Fzdv4MX Jovg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=suFHgsJS; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id h12-v6si7453929wrq.337.2018.11.06.10.07.06; Tue, 06 Nov 2018 10:07:07 -0800 (PST) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=suFHgsJS; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 39A60267AB7; Tue, 6 Nov 2018 19:07:05 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id EC893267ACB; Tue, 6 Nov 2018 19:07:02 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id 4FC862678F2 for ; Tue, 6 Nov 2018 19:07:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=M0OCv2vBsdvgduhONKtgWbcgavPOYY3w94PXwHybVtA=; b=suFHgsJSWxye CyyE/cTxiLC2VaMvwGNH8JasXxDKA1jmCm00moEw3krw5zvIzi23eZZmamdacApa6Yw+hh4aegXfT FoXiCnT6Guv7DDu+hJ/nnfDUWlW2QazcckySEfFkWwhEFAqXqu9Nli2jw5I5nwRUf6POgwBuA16bB po7v8=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1gK5ki-0002tZ-VE; Tue, 06 Nov 2018 18:07:01 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id A1367112266B; Tue, 6 Nov 2018 18:07:00 +0000 (GMT) From: Mark Brown To: Pierre-Louis Bossart In-Reply-To: Message-Id: <20181106180700.A1367112266B@debutante.sirena.org.uk> Date: Tue, 6 Nov 2018 18:07:00 +0000 (GMT) Cc: alsa-devel@alsa-project.org, Mark Brown Subject: [alsa-devel] Applied "ASoC: acpi: define common interface for machine driver configuration" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: acpi: define common interface for machine driver configuration has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 8679284b37e9e2d529d60d1acc4133af4aa5dd34 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Thu, 1 Nov 2018 16:34:48 -0500 Subject: [PATCH] ASoC: acpi: define common interface for machine driver configuration The machine drivers may need information provided by the platform driver. Currently the information is passed using pdata specific to each plaform driver. This prevents other drivers, such as SOF, from reusing machine drivers directly. Add a new structure which contains the required fields. This proposal requires a bit more work on the platform side but this generic interface helps reuse code directly. Reviewed-by: Andy Shevchenko Signed-off-by: Pierre-Louis Bossart Signed-off-by: Mark Brown --- include/sound/soc-acpi.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.19.0.rc2 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/include/sound/soc-acpi.h b/include/sound/soc-acpi.h index e45b2330d16a..5154c6359609 100644 --- a/include/sound/soc-acpi.h +++ b/include/sound/soc-acpi.h @@ -37,6 +37,19 @@ snd_soc_acpi_find_package_from_hid(const u8 hid[ACPI_ID_LEN], struct snd_soc_acpi_mach * snd_soc_acpi_find_machine(struct snd_soc_acpi_mach *machines); +/** + * snd_soc_acpi_mach_params: interface for machine driver configuration + * + * @acpi_ipc_irq_index: used for BYT-CR detection + * @platform: string used for HDaudio codec support + * @codec_mask: used for HDAudio support + */ +struct snd_soc_acpi_mach_params { + u32 acpi_ipc_irq_index; + const char *platform; + u32 codec_mask; +}; + /** * snd_soc_acpi_mach: ACPI-based machine descriptor. Most of the fields are * related to the hardware, except for the firmware and topology file names. @@ -68,6 +81,7 @@ struct snd_soc_acpi_mach { struct snd_soc_acpi_mach * (*machine_quirk)(void *arg); const void *quirk_data; void *pdata; + struct snd_soc_acpi_mach_params mach_params; const char *sof_fw_filename; const char *sof_tplg_filename; const char *asoc_plat_name;