From patchwork Wed Mar 4 09:33:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 5934341 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2150D9F318 for ; Wed, 4 Mar 2015 09:36:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4529A20148 for ; Wed, 4 Mar 2015 09:36:46 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 205B820263 for ; Wed, 4 Mar 2015 09:36:45 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3518B26549C; Wed, 4 Mar 2015 10:36:44 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 7B850265056; Wed, 4 Mar 2015 10:34:04 +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 51A66264F36; Wed, 4 Mar 2015 10:34:01 +0100 (CET) Received: from smtp-out-196.synserver.de (smtp-out-198.synserver.de [212.40.185.198]) by alsa0.perex.cz (Postfix) with ESMTP id DD6AC264F33 for ; Wed, 4 Mar 2015 10:33:53 +0100 (CET) Received: (qmail 1497 invoked by uid 0); 4 Mar 2015 09:33:53 -0000 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@metafoo.de X-SynServer-PPID: 991 Received: from p4fc46457.dip0.t-ipconnect.de (HELO lars-adi-laptop.analog.com) [79.196.100.87] by 217.119.54.96 with SMTP; 4 Mar 2015 09:33:53 -0000 From: Lars-Peter Clausen To: Mark Brown , Liam Girdwood Date: Wed, 4 Mar 2015 10:33:19 +0100 Message-Id: <1425461626-21103-5-git-send-email-lars@metafoo.de> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1425461626-21103-1-git-send-email-lars@metafoo.de> References: <1425461626-21103-1-git-send-email-lars@metafoo.de> Cc: alsa-devel@alsa-project.org, Lars-Peter Clausen , Anatol Pomozov , Kuninori Morimoto , Stephen Warren , Vinod Koul , Jie Yang , Peter Ujfalusi , Yang A Fang , Jarkko Nikula , Sean Cross , Dylan Reid , Jarkko Nikula Subject: [alsa-devel] [PATCH 04/30] ASoC: imx-es8328: Register jacks at the card level 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 X-Virus-Scanned: ClamAV using ClamSMTP The jacks are card level elements so use snd_soc_card_jack_new() instead of snd_soc_jack_new() to register them. Signed-off-by: Lars-Peter Clausen --- sound/soc/fsl/imx-es8328.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/fsl/imx-es8328.c b/sound/soc/fsl/imx-es8328.c index f8cf10e..20e7400 100644 --- a/sound/soc/fsl/imx-es8328.c +++ b/sound/soc/fsl/imx-es8328.c @@ -53,9 +53,9 @@ static int imx_es8328_dai_init(struct snd_soc_pcm_runtime *rtd) /* Headphone jack detection */ if (gpio_is_valid(data->jack_gpio)) { - ret = snd_soc_jack_new(rtd->codec, "Headphone", - SND_JACK_HEADPHONE | SND_JACK_BTN_0, - &headset_jack); + ret = snd_soc_card_jack_new(rtd->card, "Headphone", + SND_JACK_HEADPHONE | SND_JACK_BTN_0, + &headset_jack, NULL, 0); if (ret) return ret;