diff options
author | Romain Perier <romain.perier@collabora.com> | 2017-03-01 10:11:04 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-03-06 11:40:15 +0100 |
commit | c7ad841eaef66114d404c8fc02a67f5ef507b1bb (patch) | |
tree | 7d0ca86b55d44b5f99fa6b9594f073b1bb497ff2 /sound/soc/codecs/es8328.c | |
parent | ae884ae78a238c36e4abfdb53d4659d5fca67433 (diff) | |
download | talos-obmc-linux-c7ad841eaef66114d404c8fc02a67f5ef507b1bb.tar.gz talos-obmc-linux-c7ad841eaef66114d404c8fc02a67f5ef507b1bb.zip |
ASoC: es8328: Simplify rates definition
Currently most of the standard rates are supported by this driver.
Instead of defining each supported rate one by one, we use the SND macro
SNDRV_PCM_RATE_8000_48000. Also adds support for 88.2khz as the codec
supports it and the sys clocks are already supported.
Signed-off-by: Romain Perier <romain.perier@collabora.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/es8328.c')
-rw-r--r-- | sound/soc/codecs/es8328.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sound/soc/codecs/es8328.c b/sound/soc/codecs/es8328.c index 51dca8662942..1363a68155a9 100644 --- a/sound/soc/codecs/es8328.c +++ b/sound/soc/codecs/es8328.c @@ -70,13 +70,8 @@ static const char * const supply_names[ES8328_SUPPLY_NUM] = { }; #define ES8328_RATES (SNDRV_PCM_RATE_96000 | \ - SNDRV_PCM_RATE_48000 | \ - SNDRV_PCM_RATE_44100 | \ - SNDRV_PCM_RATE_32000 | \ - SNDRV_PCM_RATE_22050 | \ - SNDRV_PCM_RATE_16000 | \ - SNDRV_PCM_RATE_11025 | \ - SNDRV_PCM_RATE_8000) + SNDRV_PCM_RATE_88200 | \ + SNDRV_PCM_RATE_8000_48000) #define ES8328_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \ SNDRV_PCM_FMTBIT_S18_3LE | \ SNDRV_PCM_FMTBIT_S20_3LE | \ |