summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZidan Wang <zidan.wang@freescale.com>2015-04-14 19:49:58 +0800
committerFrank Li <Frank.Li@freescale.com>2015-04-24 23:04:16 +0800
commit444e9d275f7578ff6e43af5816b963604c089793 (patch)
tree23c0f79ca671e21054ede793c0dfa35d927be629
parentc109e3803fe8e3f334642bfc3dc49db0757c4645 (diff)
MLK-10608 ASoC: imx-wm8958: playback 24 bit 44k and 48k wave will get big noise
According to the wm8958 referance manual, DAC sample rate 44.1k and 48k are supported for 24 bit word length when it is 'simple' DAC-only playback modes. But after test, we found that it would get big noise which can't be eliminated by configuring codec register. It should be the codec hardward limitation, and we can't support these sample rate. Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
-rw-r--r--sound/soc/fsl/imx-wm8958.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-wm8958.c b/sound/soc/fsl/imx-wm8958.c
index f0b850ef3873..f51375702af0 100644
--- a/sound/soc/fsl/imx-wm8958.c
+++ b/sound/soc/fsl/imx-wm8958.c
@@ -135,7 +135,8 @@ static int imx_hifi_hw_params(struct snd_pcm_substream *substream,
int ret;
if (tx && params_width(params) == 24) {
- if (sample_rate == 88200 || sample_rate == 96000) {
+ if (sample_rate == 88200 || sample_rate == 96000 ||
+ sample_rate == 48000 || sample_rate == 44100) {
dev_err(dev, "Can't support sample rate %dHZ\n", sample_rate);
return -EINVAL;
}