From: Jaechul Lee Date: Thu, 7 Mar 2019 23:42:55 +0000 (+0900) Subject: ASoC: samsung: odroid: Change rfs value to 256 X-Git-Tag: submit/tizen/20190329.020226~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=acdb73fab61be9a387771c6a86d225db5d2d6300;p=platform%2Fkernel%2Flinux-exynos.git 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 --- 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;