diff options
author | Alexander Sverdlin <alexander.sverdlin@gmail.com> | 2017-04-29 12:19:33 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-04-30 21:28:22 +0900 |
commit | 49b2e27ab9f66b0a22c21980ad8118a4038324ae (patch) | |
tree | 7c4d7a7f9b06dcf9a3d0cf41be54097cd69a2a08 /sound | |
parent | c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201 (diff) | |
download | linux-riscv-49b2e27ab9f66b0a22c21980ad8118a4038324ae.tar.gz linux-riscv-49b2e27ab9f66b0a22c21980ad8118a4038324ae.tar.bz2 linux-riscv-49b2e27ab9f66b0a22c21980ad8118a4038324ae.zip |
ASoC: cs4271: configure reset GPIO as output
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+
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/cs4271.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs4271.c b/sound/soc/codecs/cs4271.c index 8c0f3b89b5bc..e78b5f055f25 100644 --- a/sound/soc/codecs/cs4271.c +++ b/sound/soc/codecs/cs4271.c @@ -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); |