]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: codecs: wcd938x: add mux control support for hp audio mux
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 27 Mar 2025 10:06:32 +0000 (10:06 +0000)
committerMark Brown <broonie@kernel.org>
Sun, 6 Apr 2025 22:24:47 +0000 (23:24 +0100)
commiteec611d26f84800852a9badbeafa76db3cdc9118
tree99c6b3f2083ab1d453c24423513539a097a6b5ed
parentfe19245d3efd5bf714623e83f2056bc46d9339b1
ASoC: codecs: wcd938x: add mux control support for hp audio mux

On some platforms to minimise pop and click during switching between
CTIA and OMTP headset an additional HiFi mux is used. Most common
case is that this switch is switched on by default, but on some
platforms this needs a regulator enable.

move to using mux control to enable both regulator and handle gpios,
deprecate the usage of gpio.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tested-by: Christopher Obbard <christopher.obbard@linaro.org>
Tested-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20250327100633.11530-6-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/Kconfig
sound/soc/codecs/wcd938x.c