ASoC: TWL4030: Fix typo in twl4030_codec_mute function
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>
Thu, 7 May 2009 11:32:00 +0000 (14:32 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 8 May 2009 11:00:12 +0000 (12:00 +0100)
Copy-paste error: TWL4030_PRECKL_GAIN >> TWL4030_PRECKR_GAIN
It has not caused problems, since
TWL4030_PRECKL_GAIN == TWL4030_PRECKR_GAIN == 0x30

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/twl4030.c

index 1a00e4b20390c353d11c27d5341f97299a3d56a8..fd392c65f475f31d6424b0d0dfdcabc8c174b45c 100644 (file)
@@ -237,7 +237,7 @@ static void twl4030_codec_mute(struct snd_soc_codec *codec, int mute)
                                        TWL4030_REG_PRECKL_CTL);
                reg_val = twl4030_read_reg_cache(codec, TWL4030_REG_PRECKR_CTL);
                twl4030_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE,
-                                       reg_val & (~TWL4030_PRECKL_GAIN),
+                                       reg_val & (~TWL4030_PRECKR_GAIN),
                                        TWL4030_REG_PRECKR_CTL);
 
                /* Disable PLL */