ASoC: codecs: wsa883x: Use proper shutdown GPIO polarity
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 10 Nov 2022 13:35:12 +0000 (14:35 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 11 Nov 2022 18:44:26 +0000 (18:44 +0000)
commitec5dba73f7ba10797904cf18092d2e6975a22147
tree03c5b97b4a718dafda6a58ed8407846808cdf94b
parent817e981736d27731adb9d7ca11eb8069d1ee569d
ASoC: codecs: wsa883x: Use proper shutdown GPIO polarity

The shutdown GPIO is active low (SD_N), but this depends on actual board
layout.  Linux drivers should only care about logical state, where high
(1) means shutdown and low (0) means do not shutdown.

Invert the GPIO to match logical value.

Fixes: 43b8c7dc85a1 ("ASoC: codecs: add wsa883x amplifier support")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20221110133512.478831-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wsa883x.c