ASoC: fsl_micfil: drop only once used defines

FSL_MICFIL_RATES and FSL_MICFIL_FORMATS is only used once. Drop
the unnecesary indirection and use SNDRV_PCM_RATE_8000_48000 and
SNDRV_PCM_FMTBIT_S16_LE directly.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link: https://lore.kernel.org/r/20220414162249.3934543-19-s.hauer@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Sascha Hauer 2022-04-14 18:22:46 +02:00 committed by Mark Brown
parent dcc4301584
commit 99c08cdb6d
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -25,9 +25,6 @@
#include "fsl_micfil.h" #include "fsl_micfil.h"
#define FSL_MICFIL_RATES SNDRV_PCM_RATE_8000_48000
#define FSL_MICFIL_FORMATS (SNDRV_PCM_FMTBIT_S16_LE)
#define MICFIL_OSR_DEFAULT 16 #define MICFIL_OSR_DEFAULT 16
enum quality { enum quality {
@ -350,8 +347,8 @@ static struct snd_soc_dai_driver fsl_micfil_dai = {
.stream_name = "CPU-Capture", .stream_name = "CPU-Capture",
.channels_min = 1, .channels_min = 1,
.channels_max = 8, .channels_max = 8,
.rates = FSL_MICFIL_RATES, .rates = SNDRV_PCM_RATE_8000_48000,
.formats = FSL_MICFIL_FORMATS, .formats = SNDRV_PCM_FMTBIT_S16_LE,
}, },
.ops = &fsl_micfil_dai_ops, .ops = &fsl_micfil_dai_ops,
}; };