All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.27?] ASoC: Correct inverted Mic PGA Switch control in wm8510 driver
@ 2008-10-03 13:48 Mark Brown
  2008-10-03 17:20 ` Troy Kisky
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Brown @ 2008-10-03 13:48 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Mark Brown

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

Reported-by: ext-jukka.hynninen@vaisala.com
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---

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(-)

diff --git a/sound/soc/codecs/wm8510.c b/sound/soc/codecs/wm8510.c
index 75ed041..f644da6 100644
--- a/sound/soc/codecs/wm8510.c
+++ b/sound/soc/codecs/wm8510.c
@@ -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),
 };
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 2.6.27?] ASoC: Correct inverted Mic PGA Switch control in wm8510 driver
  2008-10-03 13:48 Mark Brown
@ 2008-10-03 17:20 ` Troy Kisky
  2008-10-03 17:47   ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Troy Kisky @ 2008-10-03 17:20 UTC (permalink / raw)
  To: Mark Brown; +Cc: Takashi Iwai, alsa-devel

Mark Brown wrote:
> Mic PGA Switch should be inverted in the WM8510 driver but isn't.
> 
> Reported-by: ext-jukka.hynninen@vaisala.com
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
> 
> 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(-)
> 
> diff --git a/sound/soc/codecs/wm8510.c b/sound/soc/codecs/wm8510.c
> index 75ed041..f644da6 100644
> --- a/sound/soc/codecs/wm8510.c
> +++ b/sound/soc/codecs/wm8510.c
> @@ -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?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2.6.27?] ASoC: Correct inverted Mic PGA Switch control in wm8510 driver
  2008-10-03 17:20 ` Troy Kisky
@ 2008-10-03 17:47   ` Mark Brown
  2008-10-04 16:35     ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Brown @ 2008-10-03 17:47 UTC (permalink / raw)
  To: Troy Kisky; +Cc: Takashi Iwai, alsa-devel

On Fri, Oct 03, 2008 at 10:20:53AM -0700, Troy Kisky wrote:

> 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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2.6.27?] ASoC: Correct inverted Mic PGA Switch control in wm8510 driver
  2008-10-03 17:47   ` Mark Brown
@ 2008-10-04 16:35     ` Takashi Iwai
  2008-10-04 18:16       ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2008-10-04 16:35 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel, Troy Kisky

At Fri, 3 Oct 2008 18:47:14 +0100,
Mark Brown wrote:
> 
> On Fri, Oct 03, 2008 at 10:20:53AM -0700, Troy Kisky wrote:
> 
> > 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2.6.27?] ASoC: Correct inverted Mic PGA Switch control in wm8510 driver
  2008-10-04 16:35     ` Takashi Iwai
@ 2008-10-04 18:16       ` Mark Brown
  0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2008-10-04 18:16 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Troy Kisky

On Sat, Oct 04, 2008 at 06:35:00PM +0200, Takashi Iwai wrote:

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

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 2.6.27?] ASoC: Correct inverted Mic PGA Switch control in wm8510 driver
@ 2008-10-06 10:33 Mark Brown
  2008-10-07  8:04 ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Brown @ 2008-10-06 10:33 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Mark Brown

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

Reported-by: ext-jukka.hynninen@vaisala.com
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 sound/soc/codecs/wm8510.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/codecs/wm8510.c b/sound/soc/codecs/wm8510.c
index 75ed041..9a37c8d 100644
--- a/sound/soc/codecs/wm8510.c
+++ b/sound/soc/codecs/wm8510.c
@@ -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),
 };
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 2.6.27?] ASoC: Correct inverted Mic PGA Switch control in wm8510 driver
  2008-10-06 10:33 [PATCH 2.6.27?] ASoC: Correct inverted Mic PGA Switch control in wm8510 driver Mark Brown
@ 2008-10-07  8:04 ` Takashi Iwai
  2008-10-07 10:22   ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2008-10-07  8:04 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel

At Mon,  6 Oct 2008 11:33:21 +0100,
Mark Brown wrote:
> 
> Mic PGA Switch should be inverted in the WM8510 driver but isn't.
> 
> Reported-by: ext-jukka.hynninen@vaisala.com
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

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


thanks,

Takashi

> ---
>  sound/soc/codecs/wm8510.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/sound/soc/codecs/wm8510.c b/sound/soc/codecs/wm8510.c
> index 75ed041..9a37c8d 100644
> --- a/sound/soc/codecs/wm8510.c
> +++ b/sound/soc/codecs/wm8510.c
> @@ -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),
>  };
> -- 
> 1.5.6.5
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2.6.27?] ASoC: Correct inverted Mic PGA Switch control in wm8510 driver
  2008-10-07  8:04 ` Takashi Iwai
@ 2008-10-07 10:22   ` Mark Brown
  0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2008-10-07 10:22 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

On Tue, Oct 07, 2008 at 10:04:47AM +0200, Takashi Iwai wrote:

> 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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-10-07 10:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-06 10:33 [PATCH 2.6.27?] ASoC: Correct inverted Mic PGA Switch control in wm8510 driver Mark Brown
2008-10-07  8:04 ` Takashi Iwai
2008-10-07 10:22   ` Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2008-10-03 13:48 Mark Brown
2008-10-03 17:20 ` Troy Kisky
2008-10-03 17:47   ` Mark Brown
2008-10-04 16:35     ` Takashi Iwai
2008-10-04 18:16       ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.