OSDN Git Service

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)
commit319a05330f4ff3f951f9c42094958c6cdef393b3
tree79cedf19cbaba6e9b43aaf6c4154d46af53c20dd
parent2623e66de125ba153e41be6a0b8af24cae8aa436
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