Skip to content

Commit 5458a84

Browse files
Romain Perierrkhuangtao
authored andcommitted
UPSTREAM: 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> (cherry picked from commit c7ad841) Change-Id: I8b98cb6fc4aef7a3eb6e22310872668c2046ba46 Signed-off-by: Chris Zhong <zyw@rock-chips.com>
1 parent ac4b320 commit 5458a84

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

sound/soc/codecs/es8328.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,8 @@ static const char * const supply_names[ES8328_SUPPLY_NUM] = {
7070
};
7171

7272
#define ES8328_RATES (SNDRV_PCM_RATE_96000 | \
73-
SNDRV_PCM_RATE_48000 | \
74-
SNDRV_PCM_RATE_44100 | \
75-
SNDRV_PCM_RATE_32000 | \
76-
SNDRV_PCM_RATE_22050 | \
77-
SNDRV_PCM_RATE_16000 | \
78-
SNDRV_PCM_RATE_11025 | \
79-
SNDRV_PCM_RATE_8000)
73+
SNDRV_PCM_RATE_88200 | \
74+
SNDRV_PCM_RATE_8000_48000)
8075
#define ES8328_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \
8176
SNDRV_PCM_FMTBIT_S18_3LE | \
8277
SNDRV_PCM_FMTBIT_S20_3LE | \

0 commit comments

Comments
 (0)