ASoC: rk312x: fix rk3128 codec right channel output
authorluoxt <lxt@rock-chips.com>
Tue, 18 Aug 2015 08:47:43 +0000 (16:47 +0800)
committerSugar Zhang <sugar.zhang@rock-chips.com>
Tue, 18 Aug 2015 09:01:59 +0000 (17:01 +0800)
changed codec register order according to IP datasheet  to fix
right channel no output when low volume

Signed-off-by: luoxt <lxt@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
sound/soc/codecs/rk312x_codec.c

index 38023cf823cc90949c792042783199d584aa5348..1322702e8075e8a4914ad439a98b79b192570cb3 100755 (executable)
@@ -1736,20 +1736,34 @@ static struct rk312x_reg_val_typ playback_power_up_list[] = {
        {0x18, 0x32},
        {0xa0, 0x40|0x08},
        {0xa0, 0x62|0x08},
+
+       {0xb4, 0x80},
+       {0xb8, 0x80},
+       {0xa8, 0x44},
+       {0xa8, 0x55},
+
+       {0xb0, 0x82},
+       {0xb0, 0xc3},
+
        {0xa4, 0x88},
        {0xa4, 0xcc},
        {0xa4, 0xee},
-       {0xa8, 0x44},
-       {0xb0, 0x92},
-       {0xb0, 0xdb},
+       {0xa4, 0xff},
+
+       /* {0xa8, 0x44}, */
+       /* {0xb0, 0x92}, */
+       /* {0xb0, 0xdb}, */
        {0xac, 0x11}, /*DAC*/
-       {0xa8, 0x55},
+       /* {0xa8, 0x55}, */
        {0xa8, 0x77},
-       {0xa4, 0xff},
-       {0xb0, 0xff},
-       {0xa0, 0x73|0x08},
+
+       {0xb0, 0xee},
+
        {0xb4, OUT_VOLUME},
        {0xb8, OUT_VOLUME},
+       /* {0xb0, 0xff}, */
+       {0xb0, 0xff},
+       {0xa0, 0x73|0x08},
 };
 #define RK312x_CODEC_PLAYBACK_POWER_UP_LIST_LEN ARRAY_SIZE( \
                                        playback_power_up_list)