lkml.org 
[lkml]   [2018]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL for 4.9 083/281] ASoC: simple-card: fix mic jack initialization
    Date
    From: Stefan Agner <stefan@agner.ch>

    [ Upstream commit f746aa5e8636c83e53bbb2d988bb614f732b2b80 ]

    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>
    Signed-off-by: Sasha Levin <alexander.levin@microsoft.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 dd88c2cb6470..48804e4ab530 100644
    --- a/sound/soc/generic/simple-card.c
    +++ b/sound/soc/generic/simple-card.c
    @@ -201,7 +201,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.14.1
    \
     
     \ /
      Last update: 2018-03-19 22:27    [W:3.978 / U:0.828 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site