From patchwork Wed Nov 8 21:32:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 118352 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp5932368qgn; Wed, 8 Nov 2017 16:15:12 -0800 (PST) X-Google-Smtp-Source: ABhQp+Qt7AtAuFZzN5PNkvR2A2+SXbmX1g92pACSi38h/zhMeNk68ydhNRJj0MjX1ojyrnvifthL X-Received: by 10.223.156.193 with SMTP id h1mr1697926wre.174.1510186512254; Wed, 08 Nov 2017 16:15:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510186512; cv=none; d=google.com; s=arc-20160816; b=dGB9IPAWeZDHAsM5IW+OHWHCR0ycwNCcy8/hrWv2M4Ic4tJbV/vYvm/nAEozMSPjif /Cwl+MuIrMSTBClBqBBMhxM1O0tJ4/+eWuLn5fn6zMt/ohrQx4vpab4YCHesadvGCLwl qipLvlhOOH4UI2QTvBn6rXnupK6r22jW2ah82LEDGT59jfR/j20DMZALJk//bIKx1cSq HroJXVPEo9AxSTR0xEUIsyDsXrbS42jCuddTgDqgQbcI1QWrUmQobl8/YTrTRw4JDn3f gN1EzhSVbUvbLWzUmXCocsqah0962z34Ah7t9tu25HOYOZyjApSAIHqlSV2cOF0DrU+j 0eQA== 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:arc-authentication-results; bh=P/14DenbM5vubmdeZCkq5na30nArL/kmBCdYDFLXXPs=; b=hfzFVRsvc4pZeRi5WnLyFUz6qtmwOLg9qcU4Po9aYdP1+KYpzM5iwJhXS8iN1pAwx5 pc5oDWo91cSLw5Cu+GtjqC5Fr6wNdWPYgc1yzX7ZoY50Jg0Bj8BVB+Vs7mCe4eJCaZDc ReCyqsax+jJh7JH6kY31TJZQHusUlQozCl3yDisi90rzTGyDiFXXy0hC7INYXtulC6nh gnTrBCCOnnZkzYbNZwDUN+0ymDHs9cjBiYGt8GuYfZJKsHD9YJFxfDF34mD0Pwluo9HQ W7d4PdZ4oyIMuV5jkAMzDVnRECYlDlzY0vWQQM2Xy9cQCD7zo4wY0XWTn3HvBAfRceAB AU6w== 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=nieaWIaI; 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 Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id s81si4327769wma.42.2017.11.08.16.15.10; Wed, 08 Nov 2017 16:15:12 -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=nieaWIaI; 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 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 5C8042679BB; Thu, 9 Nov 2017 01:12:44 +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 27B0F2676DA; Wed, 8 Nov 2017 22:38:35 +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, SPF_PASS 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 99A2B267637 for ; Wed, 8 Nov 2017 22:32:44 +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=LPRVTLURHNKOgXex1fy9fspVejUDL+S1Rk7DfU3K7TI=; b=nieaWIaIjsoh 8fUcgHKZDKmn1dqc4Mbhw6KclH+qQLIgS1XKCv0GIhtkZQ9mDzvRoP+U6AdWKd+vpzf5hEwrZciOY Dg2gNtszA9M2T0wcYyXM0ZXDsyoCHJv5M7FCSwRKWXrvHNvWSBzHdBxvSM6KpCLnxfM2r/+PvoSFa gfY34=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eCXx4-0003g9-2Q; Wed, 08 Nov 2017 21:32:02 +0000 Received: from broonie by debutante with local (Exim 4.89) (envelope-from ) id 1eCXx3-0005Mr-7l; Wed, 08 Nov 2017 21:32:01 +0000 From: Mark Brown To: Kuninori Morimoto In-Reply-To: <87inh3m1g9.wl%kuninori.morimoto.gx@renesas.com> Message-Id: Date: Wed, 08 Nov 2017 21:32:01 +0000 Cc: alsa-devel@alsa-project.org, Mark Brown , Lars-Peter Subject: [alsa-devel] Applied "ASoC: add snd_soc_dapm_kcontrol_component()" 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: add snd_soc_dapm_kcontrol_component() 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 e07bd30bb87f6a6ca1f75fa41df71ff5e7bc6a3f Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Mon, 6 Nov 2017 01:49:06 +0000 Subject: [PATCH] ASoC: add snd_soc_dapm_kcontrol_component() snd_soc_dapm_kcontrol_codec() (= for Codec) will be removed soon. This patch Component version of it. Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- include/sound/soc.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.15.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/include/sound/soc.h b/include/sound/soc.h index 4961f4455b65..0668cbd9f0b5 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -1524,6 +1524,19 @@ static inline struct snd_soc_codec *snd_soc_dapm_kcontrol_codec( return snd_soc_dapm_to_codec(snd_soc_dapm_kcontrol_dapm(kcontrol)); } +/** + * snd_soc_dapm_kcontrol_component() - Returns the component associated to a kcontrol + * @kcontrol: The kcontrol + * + * This function must only be used on DAPM contexts that are known to be part of + * a COMPONENT (e.g. in a COMPONENT driver). Otherwise the behavior is undefined. + */ +static inline struct snd_soc_component *snd_soc_dapm_kcontrol_component( + struct snd_kcontrol *kcontrol) +{ + return snd_soc_dapm_to_component(snd_soc_dapm_kcontrol_dapm(kcontrol)); +} + /* codec IO */ unsigned int snd_soc_read(struct snd_soc_codec *codec, unsigned int reg); int snd_soc_write(struct snd_soc_codec *codec, unsigned int reg,