summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@freescale.com>2016-01-18 17:54:57 +0800
committerShengjiu Wang <shengjiu.wang@freescale.com>2016-01-19 13:07:34 +0800
commit94430357ce4219a91e379d77fa4b0d2b977aa641 (patch)
tree1c3456e605ade7064901f6f39f8ad49b4b25e520 /sound
parent743cead0f8c4ac6311ffb500efd6146c40124310 (diff)
MLK-12165: ASoC: fsl: imx-cs42888: remove 32k and 64k support
Revert "MLK-11623 ASoC: imx-cs42888: add 32k and 64k sample rate support" This reverts commit 314a01f40599134086480ef3c5e89a54aeedbf1f. In Async mode, record and playback use different samplerate, one is 32k, another is 48kHz, there will be issue "unsupported sysclk ratio". example case is arecord -Dhw:0,1 -f S16_LE -r 32000 -c 2 | aplay -f S16_LE -r 32000 -c 2 Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/fsl/imx-cs42888.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/sound/soc/fsl/imx-cs42888.c b/sound/soc/fsl/imx-cs42888.c
index dea5a9a7e8f9..82d56d54073b 100644
--- a/sound/soc/fsl/imx-cs42888.c
+++ b/sound/soc/fsl/imx-cs42888.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010-2015 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2010-2016 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
@@ -100,13 +100,11 @@ static int imx_cs42888_surround_startup(struct snd_pcm_substream *substream)
int ret;
if (priv->mclk_freq == 24576000) {
- support_rates[0] = 32000;
- support_rates[1] = 48000;
- support_rates[2] = 64000;
- support_rates[3] = 96000;
- support_rates[4] = 192000;
+ support_rates[0] = 48000;
+ support_rates[1] = 96000;
+ support_rates[2] = 192000;
constraint_rates.list = support_rates;
- constraint_rates.count = 5;
+ constraint_rates.count = 3;
ret = snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
&constraint_rates);