summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2017-08-01 10:30:53 +0800
committerMark Brown <broonie@kernel.org>2017-08-01 12:32:09 +0100
commit7e5824c93412c7fd6503e7769f8b6eb7199cd3b8 (patch)
treed17ec7c715ed97a0534ab36eab29fabc0f35c57e /sound
parentb50e2842b25fc14299ccf98dc9467b6304082bcb (diff)
downloadlinux-stable-7e5824c93412c7fd6503e7769f8b6eb7199cd3b8.tar.gz
linux-stable-7e5824c93412c7fd6503e7769f8b6eb7199cd3b8.tar.bz2
linux-stable-7e5824c93412c7fd6503e7769f8b6eb7199cd3b8.zip
ASoC: rt5665: fix wrong register for bclk ratio control
The register of setting back ratio should be RT5665_ADDA_CLK_2 instead of RT5665_ADDA_CLK_1. Signed-off-by: Bard Liao <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/rt5665.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt5665.c b/sound/soc/codecs/rt5665.c
index 370ed54d1e15..e597c893536d 100644
--- a/sound/soc/codecs/rt5665.c
+++ b/sound/soc/codecs/rt5665.c
@@ -4368,12 +4368,12 @@ static int rt5665_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio)
switch (dai->id) {
case RT5665_AIF2_1:
case RT5665_AIF2_2:
- snd_soc_update_bits(codec, RT5665_ADDA_CLK_1,
+ snd_soc_update_bits(codec, RT5665_ADDA_CLK_2,
RT5665_I2S_BCLK_MS2_MASK,
RT5665_I2S_BCLK_MS2_64);
break;
case RT5665_AIF3:
- snd_soc_update_bits(codec, RT5665_ADDA_CLK_1,
+ snd_soc_update_bits(codec, RT5665_ADDA_CLK_2,
RT5665_I2S_BCLK_MS3_MASK,
RT5665_I2S_BCLK_MS3_64);
break;