From: Stefan Agner Date: Mon, 15 May 2017 21:00:31 +0000 (-0700) Subject: ASoC: simple-card: fix mic jack initialization X-Git-Tag: v4.12-rc5~24^2~2^2~1^6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f746aa5e8636c83e53bbb2d988bb614f732b2b80;p=thirdparty%2Fkernel%2Flinux.git ASoC: simple-card: fix mic jack initialization Initialize asoc_simple_card_init_mic with the correct struct asoc_simple_jack. Fixes: 9eac361877b3 ("ASoC: simple-card: add new asoc_simple_jack and use it") Signed-off-by: Stefan Agner Acked-by: Kuninori Morimoto Signed-off-by: Mark Brown --- diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 2c9dedab5184f..bc136d2bd7cde 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;