Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: dt-bindings: wcd93xx: add bindings for audio mux controlling hp

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-controls so that both the gpio and regulators can be
driven correctly, rather than adding regulator handing in the codec.

This patch adds required bindings to add such mux controls.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250327100633.11530-5-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Srinivas Kandagatla and committed by
Mark Brown
fe19245d 6417066f

+6
+6
Documentation/devicetree/bindings/sound/qcom,wcd938x.yaml
··· 23 23 - qcom,wcd9380-codec 24 24 - qcom,wcd9385-codec 25 25 26 + mux-controls: 27 + description: A reference to the audio mux switch for 28 + switching CTIA/OMTP Headset types 29 + maxItems: 1 30 + 26 31 us-euro-gpios: 27 32 description: GPIO spec for swapping gnd and mic segments 28 33 maxItems: 1 34 + deprecated: true 29 35 30 36 required: 31 37 - compatible