Skip to contentSkip to conversation

ASoC: Correct inverted Mic PGA Switch control in wm8510 driver

PATCH In review Mark Brown 2 participants 3 messages Oct 6, 2008 – Oct 7, 2008

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: Correct inverted Mic PGA Switch control in wm8510 driver

Mic PGA Switch should be inverted in the WM8510 driver but isn't.

---
 sound/soc/codecs/wm8510.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8510.c +1 -1
index 75ed041..9a37c8d 100644
@@ -199,7 +199,7 @@ SOC_DAPM_SINGLE("PCM Playback Switch", WM8510_MONOMIX, 0, 1, 0),
 };
 
 static const struct snd_kcontrol_new wm8510_boost_controls[] = {
-SOC_DAPM_SINGLE("Mic PGA Switch", WM8510_INPPGA,  6, 1, 0),
+SOC_DAPM_SINGLE("Mic PGA Switch", WM8510_INPPGA,  6, 1, 1),
 SOC_DAPM_SINGLE("Aux Volume", WM8510_ADCBOOST, 0, 7, 0),
 SOC_DAPM_SINGLE("Mic Volume", WM8510_ADCBOOST, 4, 7, 0),
 };
Signature · 1 line
1.5.6.5
#1 lore raw

At Mon, 6 Oct 2008 11:33:21 +0100,

Quoted 5 lines · Mark Brown

Mic PGA Switch should be inverted in the WM8510 driver but isn't.

Applied now to asoc-fixes branch.
Not sure whether I'll send more push request at this stage, though...

thanks,

Takashi

Quoted 20 lines
---
 sound/soc/codecs/wm8510.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8510.c +1 -1
index 75ed041..9a37c8d 100644
@@ -199,7 +199,7 @@ SOC_DAPM_SINGLE("PCM Playback Switch", WM8510_MONOMIX, 0, 1, 0),
 };
 
 static const struct snd_kcontrol_new wm8510_boost_controls[] = {
-SOC_DAPM_SINGLE("Mic PGA Switch", WM8510_INPPGA,  6, 1, 0),
+SOC_DAPM_SINGLE("Mic PGA Switch", WM8510_INPPGA,  6, 1, 1),
 SOC_DAPM_SINGLE("Aux Volume", WM8510_ADCBOOST, 0, 7, 0),
 SOC_DAPM_SINGLE("Mic Volume", WM8510_ADCBOOST, 4, 7, 0),
 };
Signature · 1 line
1.5.6.5
author
#2 lore raw
Quoted 2 lines · Takashi Iwai

Applied now to asoc-fixes branch.
Not sure whether I'll send more push request at this stage, though...

It's not the end of the world if it doesn't go - it's trivial to work around in user space or backport.