summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorZidan Wang <zidan.wang@freescale.com>2015-04-14 19:49:58 +0800
committerJason Liu <r64343@freescale.com>2015-05-08 16:34:39 +0800
commiteb53dc249f9f8c4c32b7c2d2533e3d88a7d7c54c (patch)
tree25ec90491c87ea9ddd780c08c71997ccc5a0d88e /sound
parent7c2da625f6f18f2874e46006e47275a896eb2c82 (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;
}