]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ASoC: fsl_ssi: Remove FSLSSI_I2S_RATES definition
authorFabio Estevam <fabio.estevam@nxp.com>
Wed, 5 Apr 2017 19:44:05 +0000 (16:44 -0300)
committerMark Brown <broonie@kernel.org>
Mon, 10 Apr 2017 17:48:49 +0000 (18:48 +0100)
The comment for the FSLSSI_I2S_RATES definition states that the
driver currently only supports I2S slave mode, which is no longer
correct.

As FSLSSI_I2S_RATES is the same as the standard SNDRV_PCM_RATE_CONTINUOUS,
just remove its definition and its comments to make the code simpler.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Timur Tabi <timur@tabi.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_ssi.c

index 50349437d9615107a3a08fa481b6b2d61612e51c..184a47360f84fad3614bdaf34811cf0f86bdbbe7 100644 (file)
 #include "fsl_ssi.h"
 #include "imx-pcm.h"
 
-/**
- * FSLSSI_I2S_RATES: sample rates supported by the I2S
- *
- * This driver currently only supports the SSI running in I2S slave mode,
- * which means the codec determines the sample rate.  Therefore, we tell
- * ALSA that we support all rates and let the codec driver decide what rates
- * are really supported.
- */
-#define FSLSSI_I2S_RATES SNDRV_PCM_RATE_CONTINUOUS
-
 /**
  * FSLSSI_I2S_FORMATS: audio formats supported by the SSI
  *
@@ -1217,14 +1207,14 @@ static struct snd_soc_dai_driver fsl_ssi_dai_template = {
                .stream_name = "CPU-Playback",
                .channels_min = 1,
                .channels_max = 32,
-               .rates = FSLSSI_I2S_RATES,
+               .rates = SNDRV_PCM_RATE_CONTINUOUS,
                .formats = FSLSSI_I2S_FORMATS,
        },
        .capture = {
                .stream_name = "CPU-Capture",
                .channels_min = 1,
                .channels_max = 32,
-               .rates = FSLSSI_I2S_RATES,
+               .rates = SNDRV_PCM_RATE_CONTINUOUS,
                .formats = FSLSSI_I2S_FORMATS,
        },
        .ops = &fsl_ssi_dai_ops,