From: fang Date: Wed, 26 Jan 2011 02:05:21 +0000 (+0800) Subject: update wm8900 reg setting fixed only left sound bug X-Git-Tag: firefly_0821_release~10785^2~13 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bebf05d13a0ed3cba4f4f356dedc571065f9de8e;p=firefly-linux-kernel-4.4.55.git update wm8900 reg setting fixed only left sound bug --- diff --git a/sound/soc/codecs/wm8900.c b/sound/soc/codecs/wm8900.c index 2b9e9f41f4f6..6f991b228974 100644 --- a/sound/soc/codecs/wm8900.c +++ b/sound/soc/codecs/wm8900.c @@ -1349,16 +1349,14 @@ static __devinit int wm8900_i2c_probe(struct i2c_client *i2c, snd_soc_write(codec, WM8900_REG_RADC_DV, snd_soc_read(codec, WM8900_REG_RADC_DV) | 0x100); - + snd_soc_write(codec, WM8900_REG_AUDIO2, + ((snd_soc_read(codec, WM8900_REG_AUDIO2) & 0x3FFF) | (1<<14))); // 1<<15 Left And Right sw /* For Fzf Test */ #if 1 snd_soc_write(codec, WM8900_REG_LDAC_DV, (snd_soc_read(codec, WM8900_REG_LDAC_DV)&0xFF00) | 0xB0); snd_soc_write(codec, WM8900_REG_RDAC_DV, (snd_soc_read(codec, WM8900_REG_RDAC_DV)&0xFF00) | 0xB0); - - snd_soc_write(codec, WM8900_REG_AUDIO2, - (snd_soc_read(codec, WM8900_REG_AUDIO2) | (0<<10))); #endif /* Set the DAC and mixer output bias */