audio: fix lineout L/R phase diff 7 degree issue
authorShuai Li <shuai.li@amlogic.com>
Fri, 15 Jun 2018 09:27:55 +0000 (17:27 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Wed, 20 Jun 2018 13:29:58 +0000 (06:29 -0700)
PD#168345: audio: fix lineout L/R phase diff 7 degree issue

Change-Id: I6768b9fc8324baf00a9b759f7a6e3faea2695371
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
sound/soc/amlogic/auge/tdm_hw.c

index 3ace5a7f787eddb24ddc534b6a5a388dc243834c..c3bfb29d2d667e2301a3b6165dadb4082668a77f 100644 (file)
@@ -246,9 +246,9 @@ void aml_tdm_set_format(
                        bclkout_skew = 1;
                bclkin_skew = 3;
 
-               clkctl |= MST_CLK_INVERT_PH0_PAD_FCLK;
-               if (!master_mode)
-                       finv = 1;
+               clkctl |= MST_CLK_INVERT_PH0_PAD_FCLK
+                       | MST_CLK_INVERT_PH2_TDMOUT_FCLK;
+               finv = 1;
 
                if (master_mode) {
                        clkctl |= MST_CLK_INVERT_PH0_PAD_BCLK;