From patchwork Mon May 15 21:00:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Agner X-Patchwork-Id: 9727977 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4963660231 for ; Mon, 15 May 2017 21:00:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37202289A8 for ; Mon, 15 May 2017 21:00:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A2BF289B0; Mon, 15 May 2017 21:00:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E71B289A8 for ; Mon, 15 May 2017 21:00:53 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 8BA1E266B39; Mon, 15 May 2017 23:00:49 +0200 (CEST) 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 4107F266B3C; Mon, 15 May 2017 23:00:48 +0200 (CEST) Received: from mail.kmu-office.ch (mail.kmu-office.ch [178.209.48.109]) by alsa0.perex.cz (Postfix) with ESMTP id 0EDA0266B38 for ; Mon, 15 May 2017 23:00:43 +0200 (CEST) Received: from trochilidae.toradex.int (75-146-58-181-Washington.hfc.comcastbusiness.net [75.146.58.181]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 99F035C0775; Mon, 15 May 2017 22:59:53 +0200 (CEST) From: Stefan Agner To: broonie@kernel.org, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com Date: Mon, 15 May 2017 14:00:31 -0700 Message-Id: <20170515210031.9983-1-stefan@agner.ch> X-Mailer: git-send-email 2.13.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1494881995; bh=rgPK0BtHxDS1LU0WNrXYLszQQNKeZelep9b/Fh5XzGA=; h=From:To:Cc:Subject:Date:Message-Id; b=Sj5IKxFfEBHiBLI1KKOVL+9Qvp+zoy7M0CerlKSzHf2dh/hasKl1ULZXJZvC0G95V+ok5eLI008MDGcxPrSIlFS48u7bozQ3AetWHWVSmYt7bbCagBrxDfvTL1CR0To26MHeUqEWSbBKntkC1b99V2RZqedcQhgk8W6F+MXWtxg= Cc: nikita.yoush@cogentembedded.com, Stefan Agner , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, kuninori.morimoto.gx@renesas.com Subject: [alsa-devel] [PATCH] ASoC: simple-card: fix mic jack initialization 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 Initialize asoc_simple_card_init_mic with the correct struct asoc_simple_jack. Signed-off-by: Stefan Agner Fixes: 9eac361877b3 ("ASoC: simple-card: add new asoc_simple_jack and use it") Acked-by: Kuninori Morimoto --- sound/soc/generic/simple-card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 2c9dedab5184..bc136d2bd7cd 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -202,7 +202,7 @@ static int asoc_simple_card_dai_init(struct snd_soc_pcm_runtime *rtd) if (ret < 0) return ret; - ret = asoc_simple_card_init_mic(rtd->card, &priv->hp_jack, PREFIX); + ret = asoc_simple_card_init_mic(rtd->card, &priv->mic_jack, PREFIX); if (ret < 0) return ret;