MLK-11053: ASoC: imx_mqs: Remove 96k and 192k support for mqs
authorShengjiu Wang <shengjiu.wang@freescale.com>
Mon, 8 Jun 2015 07:55:04 +0000 (15:55 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:09 +0000 (14:48 -0500)
If the mclk is 24.576MHz, mqs can't support 96k and 192kHz, because
the we can't get a proper clock divider for mqs.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
sound/soc/fsl/imx-mqs.c

index cb94e53..22f3ea3 100644 (file)
@@ -40,10 +40,8 @@ static int imx_mqs_startup(struct snd_pcm_substream *substream)
 
        if (priv->mclk_freq == 24576000) {
                support_rates[0] = 48000;
-               support_rates[1] = 96000;
-               support_rates[2] = 192000;
                constraint_rates.list = support_rates;
-               constraint_rates.count = 3;
+               constraint_rates.count = 1;
 
                ret = snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
                                                        &constraint_rates);