]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: qcom: common: Parse "pin-switches" and "widgets" from DT
authorStephan Gerhold <stephan@gerhold.net>
Tue, 14 Dec 2021 14:20:48 +0000 (15:20 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 23 Dec 2021 18:34:26 +0000 (18:34 +0000)
commitb32e3385f6f037bedc3f4e553114ee12b22f6d05
tree181c114e846f88be859b4b732166f77d149d0f72
parent5814ac1a71d4ebb1741a7fee13b694fdc6e2963c
ASoC: qcom: common: Parse "pin-switches" and "widgets" from DT

Use the DT helpers in the ASoC core to parse the "pin-switches" and
"widgets" properties from the device tree. This allows adding extra
mixers to disable e.g. an extra speaker amplifier that would be
normally powered on automatically because it is connected to a shared
output pin.

Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20211214142049.20422-4-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/common.c