From: Mark Brown Date: Wed, 25 Jan 2012 19:55:22 +0000 (+0000) Subject: ASoC: dapm: Ignore isolated signal generators for power purposes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=afe62367e02fd7b83a6a824a20ad432fa5b00040;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git ASoC: dapm: Ignore isolated signal generators for power purposes A signal generator has no power control itself and so shouldn't cause a power up of the device. Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 4973545f2a32..ec58a3146569 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -1435,9 +1435,13 @@ static int dapm_power_widgets(struct snd_soc_dapm_context *dapm, int event) /* Supplies and micbiases only bring the * context up to STANDBY as unless something * else is active and passing audio they - * generally don't require full power. + * generally don't require full power. Signal + * generators are virtual pins and have no + * power impact themselves. */ switch (w->id) { + case snd_soc_dapm_siggen: + break; case snd_soc_dapm_supply: case snd_soc_dapm_regulator_supply: case snd_soc_dapm_micbias: