ASoC: cs4271: configure reset GPIO as output
authorAlexander Sverdlin <alexander.sverdlin@gmail.com>
Sat, 29 Apr 2017 10:19:33 +0000 (12:19 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 30 Apr 2017 12:28:22 +0000 (21:28 +0900)
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>
Cc: <stable@vger.kernel.org> # 4.6+
sound/soc/codecs/cs4271.c

index 8c0f3b89b5bc8a37178f6b630fc20560af742b2a..e78b5f055f25a5961d04fb58ecf19001cbaa055c 100644 (file)
@@ -498,7 +498,7 @@ static int cs4271_reset(struct snd_soc_codec *codec)
        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);