audio: fix the sound phase is invert in speaker output [1/1]
authorjian.zhou <jian.zhou@amlogic.com>
Tue, 13 Aug 2019 08:12:29 +0000 (04:12 -0400)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 14 Aug 2019 03:14:26 +0000 (20:14 -0700)
PD#SWPL-7679

Problem:
the sound phase is invert in speaker output

Solution:
PWMR_X need match 1:No exchanged

Verify:
T962E2 AB311

Change-Id: Ib1720b6418ead08617f66b090783bab27e1d347e
Signed-off-by: jian.zhou <jian.zhou@amlogic.com>
sound/soc/codecs/amlogic/ad82584f.c

index 1f384d0f9d332faf5f79bd48a46668d2c2985493..c1c69cbd597ba3e175d36105a4957592424d395d 100644 (file)
@@ -69,7 +69,7 @@ static int ad82584f_set_eq_drc(struct snd_soc_codec *codec);
 /* Power-up register defaults */
 static const
 struct reg_default ad82584f_reg_defaults[AD82584F_REGISTER_COUNT] = {
-       {0x00, 0x00},//##State_Control_1
+       {0x00, 0x04},//##State_Control_1
        {0x01, 0x04},//##State_Control_2
        {0x02, 0x30},//##State_Control_3
        {0x03, 0x4e},//##Master_volume_control
@@ -207,7 +207,7 @@ struct reg_default ad82584f_reg_defaults[AD82584F_REGISTER_COUNT] = {
 };
 
 static const int m_reg_tab[AD82584F_REGISTER_COUNT][2] = {
-       {0x00, 0x00},//##State_Control_1
+       {0x00, 0x04},//##State_Control_1
        {0x01, 0x04},//##State_Control_2
        {0x02, 0x30},//##State_Control_3
        {0x03, 0x4e},//##Master_volume_control