ASoC: rt5514: Eliminate the noise in the ASRC case
authoroder_chiou@realtek.com <oder_chiou@realtek.com>
Wed, 9 Aug 2017 01:56:14 +0000 (09:56 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 9 Aug 2017 16:53:43 +0000 (17:53 +0100)
In the ASRC case, there is the noise if the clock is asynchronous with the
LRCK. The default settings will eliminate the noise.

Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5514.c

index 21cbb566c0d36f7982d099a7683e0590407c09f3..0eabe569ab7362f9f569faea74ff340123cf5b85 100644 (file)
@@ -64,6 +64,8 @@ static const struct reg_sequence rt5514_patch[] = {
        {RT5514_ANA_CTRL_LDO10,         0x00028604},
        {RT5514_ANA_CTRL_ADCFED,        0x00000800},
        {RT5514_ASRC_IN_CTRL1,          0x00000003},
+       {RT5514_DOWNFILTER0_CTRL3,      0x10000362},
+       {RT5514_DOWNFILTER1_CTRL3,      0x10000362},
 };
 
 static const struct reg_default rt5514_reg[] = {
@@ -89,10 +91,10 @@ static const struct reg_default rt5514_reg[] = {
        {RT5514_DELAY_BUF_CTRL3,        0x00000000},
        {RT5514_DOWNFILTER0_CTRL1,      0x00020c2f},
        {RT5514_DOWNFILTER0_CTRL2,      0x00020c2f},
-       {RT5514_DOWNFILTER0_CTRL3,      0x00000362},
+       {RT5514_DOWNFILTER0_CTRL3,      0x10000362},
        {RT5514_DOWNFILTER1_CTRL1,      0x00020c2f},
        {RT5514_DOWNFILTER1_CTRL2,      0x00020c2f},
-       {RT5514_DOWNFILTER1_CTRL3,      0x00000362},
+       {RT5514_DOWNFILTER1_CTRL3,      0x10000362},
        {RT5514_ANA_CTRL_LDO10,         0x00028604},
        {RT5514_ANA_CTRL_LDO18_16,      0x02000345},
        {RT5514_ANA_CTRL_ADC12,         0x0000a2a8},