summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorZidan Wang <zidan.wang@freescale.com>2015-04-14 19:49:58 +0800
committerNitin Garg <nitin.garg@freescale.com>2015-09-17 09:22:34 -0500
commit2c67cdaf6bcc2fab518a069376af721036fbb98f (patch)
treeb9070ecfdb4c127a370f7764da39367b51fa1c9d /sound
parent88d1985498c6bb7347407fc47325bfb998e28c80 (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 f70b1338a7ef..cc955d3e5513 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;
}