Skip to content

Commit e0beec8

Browse files
stephan-ghbroonie
authored andcommitted
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: 585e881 ("ASoC: codecs: Add msm8916-wcd analog codec") Cc: Srinivas Kandagatla <[email protected]> Signed-off-by: Stephan Gerhold <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 552b1a8 commit e0beec8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/codecs/msm8916-wcd-analog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,10 +938,10 @@ static const struct snd_soc_dapm_widget pm8916_wcd_analog_dapm_widgets[] = {
938938

939939
SND_SOC_DAPM_SUPPLY("MIC BIAS External1", CDC_A_MICB_1_EN, 7, 0,
940940
pm8916_wcd_analog_enable_micbias_ext1,
941-
SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
941+
SND_SOC_DAPM_POST_PMU),
942942
SND_SOC_DAPM_SUPPLY("MIC BIAS External2", CDC_A_MICB_2_EN, 7, 0,
943943
pm8916_wcd_analog_enable_micbias_ext2,
944-
SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD),
944+
SND_SOC_DAPM_POST_PMU),
945945

946946
SND_SOC_DAPM_ADC_E("ADC1", NULL, CDC_A_TX_1_EN, 7, 0,
947947
pm8916_wcd_analog_enable_adc,

0 commit comments

Comments
 (0)