]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: msm8916-wcd-analog: Use separate outputs for HPH_L/HPH_R
authorStephan Gerhold <stephan@gerhold.net>
Tue, 14 Dec 2021 14:20:49 +0000 (15:20 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 23 Dec 2021 18:34:27 +0000 (18:34 +0000)
commita8f7ca81e5ea18d475d82f65ea3b0c7d935e97ea
tree79cedf19cbaba6e9b43aaf6c4154d46af53c20dd
parentb32e3385f6f037bedc3f4e553114ee12b22f6d05
ASoC: msm8916-wcd-analog: Use separate outputs for HPH_L/HPH_R

The analog codec has separate output paths for the left headphone channel
(HPH_L) and the right headphone channel (HPH_R). While they are usually
used together for actual headphones output, some devices also have an
analog speaker amplifier connected to one of the headphone channels.

To allow modelling that properly (and to avoid powering on the unneeded
output path), HPH_L and HPH_R should be represented by separate outputs
rather than a shared HEADPHONE output that always activates both paths.

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