MLK-13991: ASoC: fsl_rpmsg_i2s: remove unsupported rate
authorShengjiu Wang <shengjiu.wang@freescale.com>
Fri, 17 Feb 2017 02:11:35 +0000 (10:11 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:10:44 +0000 (15:10 -0500)
The M4 audio driver only support 8k/16k/32k/44k/48kHz sample rate.
so remove other rate in supported list.

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

index c53807f..172c279 100644 (file)
@@ -26,7 +26,9 @@
 #include "fsl_rpmsg_i2s.h"
 #include "imx-pcm.h"
 
-#define FSL_RPMSG_I2S_RATES    SNDRV_PCM_RATE_8000_96000
+#define FSL_RPMSG_I2S_RATES    (SNDRV_PCM_RATE_8000|SNDRV_PCM_RATE_16000|\
+                               SNDRV_PCM_RATE_32000|SNDRV_PCM_RATE_44100|\
+                               SNDRV_PCM_RATE_48000)
 #define FSL_RPMSG_I2S_FORMATS  SNDRV_PCM_FMTBIT_S16_LE
 
 static int i2s_send_message(struct i2s_rpmsg_s *msg,