]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00268119 ASoC: WM8962: Fix tilted left-right volume setting for ADC
authorNicolin Chen <b42378@freescale.com>
Fri, 21 Jun 2013 04:09:46 +0000 (12:09 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:14:15 +0000 (14:14 +0200)
In probe(), we set LEFT_ADC_VOLUME but failed to set RIGHT_ADC_VOLUME due to
typo during coding, thus fix it.

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
(cherry picked from commit ae3eb591ed9f61579a4217c6ddfd19d32e8f3cc5)

sound/soc/codecs/wm8962.c

index b370349c0a8f7c6c9aaa9a8da5aeace0dd86ea28..b54ddb751adbf32e812a87d2245bfc0bf0db2546 100644 (file)
@@ -4111,7 +4111,7 @@ static int wm8962_probe(struct snd_soc_codec *codec)
                            WM8962_INR_VOL_MASK, 0x3f);
        snd_soc_update_bits(codec, WM8962_LEFT_ADC_VOLUME,
                            WM8962_ADCL_VOL_MASK, 0xd8);
-       snd_soc_update_bits(codec, WM8962_LEFT_ADC_VOLUME,
+       snd_soc_update_bits(codec, WM8962_RIGHT_ADC_VOLUME,
                            WM8962_ADCR_VOL_MASK, 0xd8);
        snd_soc_update_bits(codec, WM8962_RIGHT_INPUT_MIXER_VOLUME,
                            WM8962_IN3R_MIXINR_VOL_MASK, 0x7);