]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ASoC: msm8916-wcd-analog: Fix selected events for MIC BIAS External1
authorStephan Gerhold <stephan@gerhold.net>
Sat, 11 Jan 2020 16:40:03 +0000 (17:40 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commitce3c68bb395f78d57bb7ec6b219dcee7b17b8e43
tree29a7f8cd6750c848a361525a25e8810693ee68f5
parent1d9d2aae71b2d1c18d7d69c4850ca57ebd1e6fc1
ASoC: msm8916-wcd-analog: Fix selected events for MIC BIAS External1

BugLink: https://bugs.launchpad.net/bugs/1862259
commit e0beec88397b163c7c4ea6fcfb67e8e07a2671dc upstream.

MIC BIAS External1 sets pm8916_wcd_analog_enable_micbias_ext1()
as event handler, which ends up in pm8916_wcd_analog_enable_micbias_ext().

But pm8916_wcd_analog_enable_micbias_ext() only handles the POST_PMU
event, which is not specified in the event flags for MIC BIAS External1.
This means that the code in the event handler is never actually run.

Set SND_SOC_DAPM_POST_PMU as the only event for the handler 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-2-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
sound/soc/codecs/msm8916-wcd-analog.c