summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-cs42888.c
diff options
context:
space:
mode:
authorZidan Wang <zidan.wang@freescale.com>2015-09-24 18:59:14 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:49:59 +0800
commit4a8b90a3494288d1e3513564cd9a280ec840c098 (patch)
treeb8011968c93533547725d5aead7a6c789242ca0a /sound/soc/fsl/imx-cs42888.c
parent556cc10e2c71ab10349e50358624dad28b773375 (diff)
MLK-11623 ASoC: imx-cs42888: add 32k and 64k sample rate support
When codec sysclk is 24576000, the sample rate ratio can be 128, 192, 256, 384, 512, 768, 1024. So 32k, 48k, 64k, 96k, 192k can be support. Signed-off-by: Zidan Wang <zidan.wang@freescale.com> (cherry picked from commit b436254cd55dc0d2ebb6d2ca7ce5f58520ea5dbc)
Diffstat (limited to 'sound/soc/fsl/imx-cs42888.c')
-rw-r--r--sound/soc/fsl/imx-cs42888.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sound/soc/fsl/imx-cs42888.c b/sound/soc/fsl/imx-cs42888.c
index 4153d394aa61..15338058445c 100644
--- a/sound/soc/fsl/imx-cs42888.c
+++ b/sound/soc/fsl/imx-cs42888.c
@@ -80,11 +80,13 @@ static int imx_cs42888_surround_startup(struct snd_pcm_substream *substream)
int ret;
if (priv->mclk_freq == 24576000) {
- support_rates[0] = 48000;
- support_rates[1] = 96000;
- support_rates[2] = 192000;
+ support_rates[0] = 32000;
+ support_rates[1] = 48000;
+ support_rates[2] = 64000;
+ support_rates[3] = 96000;
+ support_rates[4] = 192000;
constraint_rates.list = support_rates;
- constraint_rates.count = 3;
+ constraint_rates.count = 5;
ret = snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
&constraint_rates);