summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaechul Lee <jcsing.lee@samsung.com>2019-03-08 08:42:55 +0900
committerjaechul lee <jcsing.lee@samsung.com>2019-03-12 23:15:55 +0000
commitacdb73fab61be9a387771c6a86d225db5d2d6300 (patch)
tree1e1fed4a9e7c7d771417c4b1338e366b553a0f0c
parentf707903a809938ef09f4bcf6368e6cc83b2fc991 (diff)
downloadlinux-exynos-acdb73fab61be9a387771c6a86d225db5d2d6300.tar.gz
linux-exynos-acdb73fab61be9a387771c6a86d225db5d2d6300.tar.bz2
linux-exynos-acdb73fab61be9a387771c6a86d225db5d2d6300.zip
ASoC: samsung: odroid: Change rfs value to 256
rfs is set 256 as a default value in I2S module. Due to clock rate setting rounding errors with rfs=512 playback is almost twice faster than original speed when the device is opened with 44.1k samplerate. pulseaudio that uses 44.1k sinks can't play the sound properly. Change-Id: I21d5553e36dcbf00802230cf1c60f5fb7df1056d Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
-rw-r--r--sound/soc/samsung/odroid.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sound/soc/samsung/odroid.c b/sound/soc/samsung/odroid.c
index 1dc54c4206f0..b61d866cbdfb 100644
--- a/sound/soc/samsung/odroid.c
+++ b/sound/soc/samsung/odroid.c
@@ -74,13 +74,16 @@ static int odroid_card_be_hw_params(struct snd_pcm_substream *substream,
case 44100:
case 88200:
pll_freq = 180633609U;
- rfs = 512;
+ rfs = 256;
break;
case 32000:
+ pll_freq = 196608001U;
+ rfs = 512;
+ break;
case 48000:
case 96000:
pll_freq = 196608001U;
- rfs = 512;
+ rfs = 256;
break;
default:
return -EINVAL;