ASoC: fsl_esai: Remove unneeded definition

There is no need for defining FSL_ESAI_RATES locally as the standard
SNDRV_PCM_RATE_8000_192000 definition can be used instead.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Fabio Estevam 2017-04-12 09:37:21 -03:00 committed by Mark Brown
parent a5de5b74a5
commit f2a3ee0125
1 changed files with 2 additions and 3 deletions

View File

@ -19,7 +19,6 @@
#include "fsl_esai.h" #include "fsl_esai.h"
#include "imx-pcm.h" #include "imx-pcm.h"
#define FSL_ESAI_RATES SNDRV_PCM_RATE_8000_192000
#define FSL_ESAI_FORMATS (SNDRV_PCM_FMTBIT_S8 | \ #define FSL_ESAI_FORMATS (SNDRV_PCM_FMTBIT_S8 | \
SNDRV_PCM_FMTBIT_S16_LE | \ SNDRV_PCM_FMTBIT_S16_LE | \
SNDRV_PCM_FMTBIT_S20_3LE | \ SNDRV_PCM_FMTBIT_S20_3LE | \
@ -647,14 +646,14 @@ static struct snd_soc_dai_driver fsl_esai_dai = {
.stream_name = "CPU-Playback", .stream_name = "CPU-Playback",
.channels_min = 1, .channels_min = 1,
.channels_max = 12, .channels_max = 12,
.rates = FSL_ESAI_RATES, .rates = SNDRV_PCM_RATE_8000_192000,
.formats = FSL_ESAI_FORMATS, .formats = FSL_ESAI_FORMATS,
}, },
.capture = { .capture = {
.stream_name = "CPU-Capture", .stream_name = "CPU-Capture",
.channels_min = 1, .channels_min = 1,
.channels_max = 8, .channels_max = 8,
.rates = FSL_ESAI_RATES, .rates = SNDRV_PCM_RATE_8000_192000,
.formats = FSL_ESAI_FORMATS, .formats = FSL_ESAI_FORMATS,
}, },
.ops = &fsl_esai_dai_ops, .ops = &fsl_esai_dai_ops,