Commit cca9c04a authored by Alexander Sverdlin's avatar Alexander Sverdlin Committed by Greg Kroah-Hartman

ASoC: cs4271: configure reset GPIO as output

commit 49b2e27a upstream.

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

Fixes: 9a397f47 ("ASoC: cs4271: add regulator consumer support")
Signed-off-by: default avatarAlexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a7caccf8
...@@ -498,7 +498,7 @@ static int cs4271_reset(struct snd_soc_codec *codec) ...@@ -498,7 +498,7 @@ static int cs4271_reset(struct snd_soc_codec *codec)
struct cs4271_private *cs4271 = snd_soc_codec_get_drvdata(codec); struct cs4271_private *cs4271 = snd_soc_codec_get_drvdata(codec);
if (gpio_is_valid(cs4271->gpio_nreset)) { if (gpio_is_valid(cs4271->gpio_nreset)) {
gpio_set_value(cs4271->gpio_nreset, 0); gpio_direction_output(cs4271->gpio_nreset, 0);
mdelay(1); mdelay(1);
gpio_set_value(cs4271->gpio_nreset, 1); gpio_set_value(cs4271->gpio_nreset, 1);
mdelay(1); mdelay(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment