提交 49b2e27a 编写于 作者: A Alexander Sverdlin 提交者: Mark Brown

ASoC: cs4271: configure reset GPIO as output

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: NAlexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
Cc: <stable@vger.kernel.org> # 4.6+
上级 c1ae3cfa
...@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册