]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit79f01fe6262b0fbba4c558dfe3dd61b3c511a61a
tree67acd09a8ea7be410813cabb2409719efc240c25
parent46d69e141d479585c105a4d5b2337cd2ce6967e5
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