lkml.org 
[lkml]   [2017]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 019/164] ASoC: cs4271: configure reset GPIO as output
    Date
    4.9-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Alexander Sverdlin <alexander.sverdlin@gmail.com>

    commit 49b2e27ab9f66b0a22c21980ad8118a4038324ae upstream.

    During reset "refactoring" the output configuration was lost.
    This commit repairs sound on EDB93XX boards.

    Fixes: 9a397f4 ("ASoC: cs4271: add regulator consumer support")
    Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    sound/soc/codecs/cs4271.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/sound/soc/codecs/cs4271.c
    +++ b/sound/soc/codecs/cs4271.c
    @@ -498,7 +498,7 @@ static int cs4271_reset(struct snd_soc_c
    struct cs4271_private *cs4271 = snd_soc_codec_get_drvdata(codec);

    if (gpio_is_valid(cs4271->gpio_nreset)) {
    - gpio_set_value(cs4271->gpio_nreset, 0);
    + gpio_direction_output(cs4271->gpio_nreset, 0);
    mdelay(1);
    gpio_set_value(cs4271->gpio_nreset, 1);
    mdelay(1);

    \
     
     \ /
      Last update: 2017-05-23 23:55    [W:2.567 / U:0.104 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site