]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: Intel: Use MCLK instead of BLCK as the sysclock for RT5514 codec on kabylake...
authorHarsha Priya N <harshapriya.n@intel.com>
Fri, 28 Jul 2017 00:41:26 +0000 (17:41 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 28 Jul 2017 12:42:28 +0000 (13:42 +0100)
This patch fixes the pop noise in dmic recording using rt5514 on kabylake platform.
This patch enables the rt5514 to use MCLK instead of BLCK as the sysclock which fixes
the pop noise.

Signed-off-by: Harsha Priya <harshapriya.n@intel.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c

index cfde894d250feb6c9f84e0cd49610ce2a60efb4d..cfd89ca6a18dacaaa42f5df95d7e573132383a39 100644 (file)
@@ -351,19 +351,10 @@ static int kabylake_ssp0_hw_params(struct snd_pcm_substream *substream,
                                return ret;
                        }
 
-                       ret = snd_soc_dai_set_pll(codec_dai, 0,
-                               RT5514_PLL1_S_BCLK, RT5514_AIF1_BCLK_FREQ,
-                                               RT5514_AIF1_SYSCLK_FREQ);
-                       if (ret < 0) {
-                               dev_err(rtd->dev, "set bclk err: %d\n", ret);
-                               return ret;
-                       }
-
                        ret = snd_soc_dai_set_sysclk(codec_dai,
-                               RT5514_SCLK_S_PLL1, RT5514_AIF1_SYSCLK_FREQ,
-                                                       SND_SOC_CLOCK_IN);
+                               RT5514_SCLK_S_MCLK, 24576000, SND_SOC_CLOCK_IN);
                        if (ret < 0) {
-                               dev_err(rtd->dev, "set sclk err: %d\n", ret);
+                               dev_err(rtd->dev, "set sysclk err: %d\n", ret);
                                return ret;
                        }
                }