From: jian.zhou Date: Tue, 13 Aug 2019 08:12:29 +0000 (-0400) Subject: audio: fix the sound phase is invert in speaker output [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1b9080507239bb965d008e12b045ee25d464dd2f;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git audio: fix the sound phase is invert in speaker output [1/1] 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 --- diff --git a/sound/soc/codecs/amlogic/ad82584f.c b/sound/soc/codecs/amlogic/ad82584f.c index 1f384d0f9d33..c1c69cbd597b 100644 --- a/sound/soc/codecs/amlogic/ad82584f.c +++ b/sound/soc/codecs/amlogic/ad82584f.c @@ -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