From acdb73fab61be9a387771c6a86d225db5d2d6300 Mon Sep 17 00:00:00 2001 From: Jaechul Lee Date: Fri, 8 Mar 2019 08:42:55 +0900 Subject: [PATCH] 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 --- sound/soc/samsung/odroid.c | 7 +++++-- 1 file 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; -- 2.34.1