ASoC: codecs: wsa881x: request gpio direction before setting
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 16 Mar 2020 12:03:03 +0000 (12:03 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 16 Mar 2020 17:22:41 +0000 (17:22 +0000)
commit28ddd846077a0c7d8382f41cef6840167d236c83
tree9914d05ed233363873f8ac850787fbbc8e1c5561
parent1a0f2433d7380c957d5d29e60a2eeb03ca3afe21
ASoC: codecs: wsa881x: request gpio direction before setting

Make sure that power down gpio direction is set to ouput
before even setting it.

Fixes: a0aab9e1404a ("ASoC: codecs: add wsa881x amplifier support")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200316120303.3780-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wsa881x.c