]> git.baikalelectronics.ru Git - 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)
committerMark Brown <broonie@kernel.org>
Mon, 13 Jan 2020 15:12:25 +0000 (15:12 +0000)
commit15d8d0b40e258cb3cb526380b90b5a00ba03b332
treeaf415b7925d212ba1c3311655dc5fec5de9655fc
parent8214aeca33f3919661e7fb6f3b20290d8cd83613
ASoC: msm8916-wcd-analog: Fix selected events for MIC BIAS External1

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: 1e90dab1850e ("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>
sound/soc/codecs/msm8916-wcd-analog.c