Skip to contentSkip to conversation

ASoC: Correct inverted Mic PGA Switch control in wm8510 driver

PATCH In review Mark Brown 3 participants 5 messages Oct 3, 2008 – Oct 4, 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.

---

This bugfix applies to 2.6.27 but the issue is not very severe - it'd be good to get it in but it's not critical.

 sound/soc/codecs/wm8510.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8510.c +1 -1
index 75ed041..f644da6 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", WM8509_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
Quoted 17 lines · Mark Brown

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

---

This bugfix applies to 2.6.27 but the issue is not very severe - it'd be good to get it in but it's not critical.

 sound/soc/codecs/wm8510.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8510.c +0 -0
index 75ed041..f644da6 100644

sound/soc/codecs/wm8510.c SOC_DAPM_SINGLE("PCM Playback Switch", WM8510_MONOMIX, 0, 1, 0), · line 205

Quoted 8 lines
sound/soc/codecs/wm8510.c +1 -1
@@ -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", WM8509_INPPGA,  6, 1, 1),
 SOC_DAPM_SINGLE("Aux Volume", WM8510_ADCBOOST, 0, 7, 0),
 SOC_DAPM_SINGLE("Mic Volume", WM8510_ADCBOOST, 4, 7, 0),
 };

Why the WM509 prefix instead of WM8510?

author
#2 lore raw
Quoted 1 line · Troy Kisky

Why the WM509 prefix instead of WM8510?

Gah. Because I sent an incorrect, buggy, version of the patch. Trying to do too many things at once :/

Takashi, please don't apply.

#3 lore raw

At Fri, 3 Oct 2008 18:47:14 +0100,

Quoted 9 lines · Mark Brown
Quoted 1 line · Troy Kisky

Why the WM509 prefix instead of WM8510?

Gah. Because I sent an incorrect, buggy, version of the patch. Trying to do too many things at once :/

Takashi, please don't apply.

OK.

Will you send a correct one later, or is the fix totally bogus?

Takashi

author
#4 lore raw
Quoted 1 line · Takashi Iwai

Will you send a correct one later, or is the fix totally bogus?

I'll send an updated patch - the fix is fine.