ASoC: samsung: odroid: Change rfs value to 256 59/201059/4
authorJaechul Lee <jcsing.lee@samsung.com>
Thu, 7 Mar 2019 23:42:55 +0000 (08:42 +0900)
committerjaechul lee <jcsing.lee@samsung.com>
Tue, 12 Mar 2019 23:15:55 +0000 (23:15 +0000)
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>
sound/soc/samsung/odroid.c

index 1dc54c4..b61d866 100644 (file)
@@ -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;