Skip to contentSkip to conversation

ASoC: dapm: Ignore VMID widgets for target bias

PATCH Applied Lars-Peter Clausen 2 participants 2 messages Oct 5, 2013 – Oct 7, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: dapm: Ignore VMID widgets for target bias

VMID widgets behave very similar to signal generator widgets. Both are always considered to be powered up. This means that we need to ignore the VMID widgets in the same way as signal generator widgets when calculating the DAPM context's target bias level. Otherwise the presence of a VMID widget, regardless whether it is on an active path or not, will cause the DAPM context to be powered up.

---
 sound/soc/soc-dapm.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/soc-dapm.c +1 -0
index c17c14c..177f8a1 100644
@@ -1840,6 +1840,7 @@ static int dapm_power_widgets(struct snd_soc_card *card, int event)
 			 */
 			switch (w->id) {
 			case snd_soc_dapm_siggen:
+			case snd_soc_dapm_vmid:
 				break;
 			case snd_soc_dapm_supply:
 			case snd_soc_dapm_regulator_supply:
Signature · 1 line
1.8.0
maintainer Applied
#1 lore raw
Quoted 5 lines · Lars-Peter Clausen

VMID widgets behave very similar to signal generator widgets. Both are always considered to be powered up. This means that we need to ignore the VMID widgets in the same way as signal generator widgets when calculating the DAPM context's target bias level. Otherwise the presence of a VMID widget, regardless whether it is on an active path or not, will cause the DAPM context to be powered up.

Applied, thanks.