summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorZidan Wang <zidan.wang@freescale.com>2015-04-14 19:49:58 +0800
committerguoyin.chen <guoyin.chen@freescale.com>2015-05-08 17:26:45 +0800
commit3d1b17a30eeff4fd62311cad91aae54d5c2a9f05 (patch)
treecc2cab56b81ad1cadca60a2e16436e8abd992584 /sound
parent2e81c6850fc189134b59be2b0b369ec64c70bf26 (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>
Diffstat (limited to 'sound')
-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;
}