]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codecs: msm8916-wcd-analog: configure micbias in mbhc setup
authorDamien Riegel <damien.riegel@savoirfairelinux.com>
Tue, 3 Oct 2017 13:27:35 +0000 (09:27 -0400)
committerMark Brown <broonie@kernel.org>
Wed, 4 Oct 2017 10:20:53 +0000 (11:20 +0100)
commitee2935fb1a16c9c2b2d530f985a1b5d3065120a1
tree67acd09a8ea7be410813cabb2409719efc240c25
parent6e6fbe0f5dff9eaf89b9c771039346509ccdc9f8
ASoC: codecs: msm8916-wcd-analog: configure micbias in mbhc setup

The very first time a headset is plugged in, detection is unreliable
because bias hasn't been configured yet, it's done once a mechanical
insertion interrupt has been triggered, so following insertions (and
thus detections) are not affected.

To fix the very first detection, the bias must also be configured in the
function that setup the MBHC. Move pm8916_wcd_setup_mbhc after
pm8916_mbhc_configure_bias to avoid a forward declaration.

Signed-off-by: Damien Riegel <damien.riegel@savoirfairelinux.com>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/msm8916-wcd-analog.c