diff options
author | Giridhar Maruthy <giridhar.maruthy@linaro.org> | 2011-07-13 07:22:06 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-07-13 19:25:42 -0400 |
commit | b3d7615f2a012c5e589209d08e89c4116134c9f4 (patch) | |
tree | 11435f12a4bd83380b53730badf81850c6f5e0fb /sound/soc/samsung/smdk_wm8994.c | |
parent | f05bdb8bb6c5e34a9c8c12483022e4cac5133139 (diff) |
ASoC: SAMSUNG: 24-bit audio playback on Exynos4210
Using 256fs or 512fs will result in distortion of 24-bit
audio samples. This is because the lrclk generated is not
proper. Using 384 fs generates proper output.
Signed-off-by: Giridhar Maruthy <giridhar.maruthy@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/samsung/smdk_wm8994.c')
-rw-r--r-- | sound/soc/samsung/smdk_wm8994.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/samsung/smdk_wm8994.c b/sound/soc/samsung/smdk_wm8994.c index e7c1009a1e1d..45fbe2b3727f 100644 --- a/sound/soc/samsung/smdk_wm8994.c +++ b/sound/soc/samsung/smdk_wm8994.c | |||
@@ -8,6 +8,7 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include "../codecs/wm8994.h" | 10 | #include "../codecs/wm8994.h" |
11 | #include <sound/pcm_params.h> | ||
11 | 12 | ||
12 | /* | 13 | /* |
13 | * Default CFG switch settings to use this driver: | 14 | * Default CFG switch settings to use this driver: |
@@ -44,7 +45,9 @@ static int smdk_hw_params(struct snd_pcm_substream *substream, | |||
44 | int ret; | 45 | int ret; |
45 | 46 | ||
46 | /* AIF1CLK should be >=3MHz for optimal performance */ | 47 | /* AIF1CLK should be >=3MHz for optimal performance */ |
47 | if (params_rate(params) == 8000 || params_rate(params) == 11025) | 48 | if (params_format(params) == SNDRV_PCM_FORMAT_S24_LE) |
49 | pll_out = params_rate(params) * 384; | ||
50 | else if (params_rate(params) == 8000 || params_rate(params) == 11025) | ||
48 | pll_out = params_rate(params) * 512; | 51 | pll_out = params_rate(params) * 512; |
49 | else | 52 | else |
50 | pll_out = params_rate(params) * 256; | 53 | pll_out = params_rate(params) * 256; |