Skip to contentSkip to conversation

ASoC: TWL4030: Capture route DAPM event fix

PATCH Applied Peter Ujfalusi 3 participants 3 messages Jul 26, 2010 – Jul 27, 2010

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

PATCH 1/1 ASoC: TWL4030: Capture route DAPM event fix

There is no need to handle POST_PMU, POST_PMD event with the Capture Route widget.
It is enough to handle POST_REG event, since that will come when the user changes the routing, and we will switch the needed bits in the registers.

---
 sound/soc/codecs/twl4030.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
sound/soc/codecs/twl4030.c +0 -2
index bd557c2..d401c59 100644
@@ -1432,11 +1432,9 @@ static const struct snd_soc_dapm_widget twl4030_dapm_widgets[] = {
 	   TX2 Left/Right: either analog Left/Right or Digimic1 */
 	SND_SOC_DAPM_MUX_E("TX1 Capture Route", SND_SOC_NOPM, 0, 0,
 		&twl4030_dapm_micpathtx1_control, micpath_event,
-		SND_SOC_DAPM_POST_PMU|SND_SOC_DAPM_POST_PMD|
 		SND_SOC_DAPM_POST_REG),
 	SND_SOC_DAPM_MUX_E("TX2 Capture Route", SND_SOC_NOPM, 0, 0,
 		&twl4030_dapm_micpathtx2_control, micpath_event,
-		SND_SOC_DAPM_POST_PMU|SND_SOC_DAPM_POST_PMD|
 		SND_SOC_DAPM_POST_REG),
 
 	/* Analog input mixers for the capture amplifiers */
Signature · 1 line
1.7.1.1
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Peter Ujfalusi

There is no need to handle POST_PMU, POST_PMD event with the Capture Route widget.
It is enough to handle POST_REG event, since that will come when the user changes the routing, and we will switch the needed bits in the registers.

Quoted 23 lines

---
sound/soc/codecs/twl4030.c | 2 --

1 files changed, 0 insertions(+), 2 deletions(-)
sound/soc/codecs/twl4030.c +0 -2
index bd557c2..d401c59 100644
@@ -1432,11 +1432,9 @@ static const struct snd_soc_dapm_widget twl4030_dapm_widgets[] = {
 	   TX2 Left/Right: either analog Left/Right or Digimic1 */
 	SND_SOC_DAPM_MUX_E("TX1 Capture Route", SND_SOC_NOPM, 0, 0,
 		&twl4030_dapm_micpathtx1_control, micpath_event,
-		SND_SOC_DAPM_POST_PMU|SND_SOC_DAPM_POST_PMD|
 		SND_SOC_DAPM_POST_REG),
 	SND_SOC_DAPM_MUX_E("TX2 Capture Route", SND_SOC_NOPM, 0, 0,
 		&twl4030_dapm_micpathtx2_control, micpath_event,
-		SND_SOC_DAPM_POST_PMU|SND_SOC_DAPM_POST_PMD|
 		SND_SOC_DAPM_POST_REG),
 
 	/* Analog input mixers for the capture amplifiers */
Signature · 1 line
1.7.1.1
#2 lore raw
In reply to Peter Ujfalusi
Quoted 7 lines · Peter Ujfalusi

There is no need to handle POST_PMU, POST_PMD event with the Capture Route widget.
It is enough to handle POST_REG event, since that will come when the user changes the routing, and we will switch the needed bits in the registers.

Applied.

Thanks

Liam

Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk