From: Giridhar Maruthy Date: Wed, 13 Jul 2011 11:22:06 +0000 (+0530) Subject: ASoC: SAMSUNG: 24-bit audio playback on Exynos4210 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b3d7615f2a012c5e589209d08e89c4116134c9f4;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Mark Brown --- 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 @@ */ #include "../codecs/wm8994.h" +#include /* * Default CFG switch settings to use this driver: @@ -44,7 +45,9 @@ static int smdk_hw_params(struct snd_pcm_substream *substream, int ret; /* AIF1CLK should be >=3MHz for optimal performance */ - if (params_rate(params) == 8000 || params_rate(params) == 11025) + if (params_format(params) == SNDRV_PCM_FORMAT_S24_LE) + pll_out = params_rate(params) * 384; + else if (params_rate(params) == 8000 || params_rate(params) == 11025) pll_out = params_rate(params) * 512; else pll_out = params_rate(params) * 256;