ASoC: msm8916-wcd-analog: Fix MIC BIAS Internal1
authorStephan Gerhold <stephan@gerhold.net>
Sat, 11 Jan 2020 16:40:04 +0000 (17:40 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 13 Jan 2020 15:12:27 +0000 (15:12 +0000)
commit057efcf9faea4769cf1020677d93d040db9b23f3
treecff95293a5701bb75a2441ae534a18fcc78103d7
parent877167ef343de2a9be3d31cdd5c41122e61190dd
ASoC: msm8916-wcd-analog: Fix MIC BIAS Internal1

MIC BIAS Internal1 is broken at the moment because we always
enable the internal rbias resistor to the TX2 line (connected to
the headset microphone), rather than enabling the resistor connected
to TX1.

Move the RBIAS code to pm8916_wcd_analog_enable_micbias_int1/2()
to fix this.

Fixes: 585e881e5b9e ("ASoC: codecs: Add msm8916-wcd analog codec")
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20200111164006.43074-3-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/msm8916-wcd-analog.c