Skip to content

Commit 7a37291

Browse files
Sharq7broonie
authored andcommitted
ASoC: max98090/91: fixed max98091 ALSA widget powering up/down
The widgets DMIC3_ENA and DMIC4_ENA must be defined in the DAPM suppy widget, just like DMICL_ENA and DMICR_ENA. Whenever they are turned on or off, the required startup or shutdown sequences must be taken care by the max98090_shdn_event. Signed-off-by: Sharique Mohammad <sharq0406@gmail.com> Link: https://patch.msgid.link/20251015134215.750001-1-sharq0406@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent fcd298f commit 7a37291

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sound/soc/codecs/max98090.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,9 +1234,11 @@ static const struct snd_soc_dapm_widget max98091_dapm_widgets[] = {
12341234
SND_SOC_DAPM_INPUT("DMIC4"),
12351235

12361236
SND_SOC_DAPM_SUPPLY("DMIC3_ENA", M98090_REG_DIGITAL_MIC_ENABLE,
1237-
M98090_DIGMIC3_SHIFT, 0, NULL, 0),
1237+
M98090_DIGMIC3_SHIFT, 0, max98090_shdn_event,
1238+
SND_SOC_DAPM_POST_PMU),
12381239
SND_SOC_DAPM_SUPPLY("DMIC4_ENA", M98090_REG_DIGITAL_MIC_ENABLE,
1239-
M98090_DIGMIC4_SHIFT, 0, NULL, 0),
1240+
M98090_DIGMIC4_SHIFT, 0, max98090_shdn_event,
1241+
SND_SOC_DAPM_POST_PMU),
12401242
};
12411243

12421244
static const struct snd_soc_dapm_route max98090_dapm_routes[] = {

0 commit comments

Comments
 (0)