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
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:20:42 +0300
commitaa4f53aec6988fec02a6f8c606f29717d5b1b551 (patch)
treecb0153fe6a6d3d7ff1a8d51f2dbb934ce99158f0 /sound/soc/fsl/imx-cs42888.c
parent65de2a191047670fa715186390b0cbf76a5e18e3 (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);