public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: wm8962: Correct the bit offset to enable mono speaker output
@ 2014-08-07 11:55 Nicolin Chen
  2014-08-07 16:58 ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolin Chen @ 2014-08-07 11:55 UTC (permalink / raw)
  To: broonie
  Cc: patches, alsa-devel, rf, lgirdwood, linux-kernel, tiwai, perex,
	ckeepax, B18700, b02247

As WM8962 datasheet describes for SPK_MONO bit of R51: When SPK_MONO
is set to '1', both speakers output the signal from the left channel.

So for mono speaker widget, we shall enable Left Channel whose enable
bit is 6 instead of 7 (Right Channel).

This patches just simply corrects the bit offset.

Signed-off-by: Peter Chan <B18700@freescale.com>
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
---

@Peter
I cced you just to let you know that I'm merging your fix to upstream.
And because you patch can't be applied to the upstream tree directly,
I used my own commit with your signed-off. Thank you for the fix.

 sound/soc/codecs/wm8962.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index 1098ae3..105deec 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -2185,7 +2185,7 @@ SND_SOC_DAPM_MIXER("Speaker Mixer", WM8962_MIXER_ENABLES, 1, 0,
 		   spkmixl, ARRAY_SIZE(spkmixl)),
 SND_SOC_DAPM_MUX_E("Speaker PGA", WM8962_PWR_MGMT_2, 4, 0, &spkoutl_mux,
 		   out_pga_event, SND_SOC_DAPM_POST_PMU),
-SND_SOC_DAPM_PGA("Speaker Output", WM8962_CLASS_D_CONTROL_1, 7, 0, NULL, 0),
+SND_SOC_DAPM_PGA("Speaker Output", WM8962_CLASS_D_CONTROL_1, 6, 0, NULL, 0),
 SND_SOC_DAPM_OUTPUT("SPKOUT"),
 };
 
-- 
1.8.4


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

end of thread, other threads:[~2014-08-13 10:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-07 11:55 [PATCH] ASoC: wm8962: Correct the bit offset to enable mono speaker output Nicolin Chen
2014-08-07 16:58 ` Mark Brown
2014-08-08  8:20   ` [alsa-devel] " Nicolin Chen
2014-08-08  9:55     ` Peter Chan
2014-08-11 13:19       ` Charles Keepax
2014-08-12  8:24         ` Charles Keepax
2014-08-12 21:57           ` Mark Brown
2014-08-13 10:10             ` Peter Chan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox