summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2017-05-15 14:00:31 -0700
committerMark Brown <broonie@kernel.org>2017-05-19 17:34:04 +0100
commitf746aa5e8636c83e53bbb2d988bb614f732b2b80 (patch)
tree6438f41407fc550f0a82417a5cd7bf79cc3fe486 /sound
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff)
downloadlinux-f746aa5e8636c83e53bbb2d988bb614f732b2b80.tar.bz2
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 <stefan@agner.ch> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/generic/simple-card.c2
1 files changed, 1 insertions, 1 deletions
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;