diff mbox

ASoC: simple-card: fix mic jack initialization

Message ID 20170515210031.9983-1-stefan@agner.ch (mailing list archive)
State Accepted
Commit f746aa5e8636c83e53bbb2d988bb614f732b2b80
Headers show

Commit Message

Stefan Agner May 15, 2017, 9 p.m. UTC
Initialize asoc_simple_card_init_mic with the correct struct
asoc_simple_jack.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Fixes: 9eac361877b3 ("ASoC: simple-card: add new asoc_simple_jack and use it")
---
 sound/soc/generic/simple-card.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kuninori Morimoto May 15, 2017, 11:31 p.m. UTC | #1
Hi

> Initialize asoc_simple_card_init_mic with the correct struct
> asoc_simple_jack.
> 
> Signed-off-by: Stefan Agner <stefan@agner.ch>
> Fixes: 9eac361877b3 ("ASoC: simple-card: add new asoc_simple_jack and use it")
> ---

Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

>  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;
>  
> -- 
> 2.13.0
> 


Best regards
---
Kuninori Morimoto
diff mbox

Patch

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;