diff options
author | Vasily Khoruzhick <anarsoul@gmail.com> | 2010-09-07 10:04:18 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-09-08 06:27:25 -0400 |
commit | 1fdc7dd537b78e73dfaca1ebfe497a05a2d34c9e (patch) | |
tree | a9031f6fb059e82ba429ee6ff0cf2345ab835683 /sound | |
parent | 8e3dce4d085328a8999a7362785c8d242fb34e66 (diff) |
ASoC: rx1950: Fix clkdiv for 16khz and 48khz
Usage of 256 as clkdiv gives better rounding error (<1%)
for 16khz and 48khz
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/s3c24xx/rx1950_uda1380.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/s3c24xx/rx1950_uda1380.c b/sound/soc/s3c24xx/rx1950_uda1380.c index 9552296d27d9..ffd5cf2fb0a9 100644 --- a/sound/soc/s3c24xx/rx1950_uda1380.c +++ b/sound/soc/s3c24xx/rx1950_uda1380.c | |||
@@ -171,9 +171,9 @@ static int rx1950_hw_params(struct snd_pcm_substream *substream, | |||
171 | case 16000: | 171 | case 16000: |
172 | case 48000: | 172 | case 48000: |
173 | clk_source = S3C24XX_CLKSRC_PCLK; | 173 | clk_source = S3C24XX_CLKSRC_PCLK; |
174 | fs_mode = S3C2410_IISMOD_384FS; | 174 | fs_mode = S3C2410_IISMOD_256FS; |
175 | div = s3c24xx_i2s_get_clockrate() / (384 * rate); | 175 | div = s3c24xx_i2s_get_clockrate() / (256 * rate); |
176 | if (s3c24xx_i2s_get_clockrate() % (384 * rate) > (182 * rate)) | 176 | if (s3c24xx_i2s_get_clockrate() % (256 * rate) > (128 * rate)) |
177 | div++; | 177 | div++; |
178 | break; | 178 | break; |
179 | case 44100: | 179 | case 44100: |