Skip to content

Commit

Permalink
ASoC: SAMSUNG: 24-bit audio playback on Exynos4210
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
Giridhar Maruthy authored and broonie committed Jul 13, 2011
1 parent f05bdb8 commit b3d7615
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sound/soc/samsung/smdk_wm8994.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

#include "../codecs/wm8994.h"
#include <sound/pcm_params.h>

/*
* Default CFG switch settings to use this driver:
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b3d7615

Please sign in to comment.