Skip to content

Commit a47789f

Browse files
Romain Perierrkhuangtao
authored andcommitted
UPSTREAM: ASoC: es8328: Enabling support for 192k
The master and slave modes don't share the same table for MCLK/LRCLK ratios. The slaves mode has bigger ratios that allow to use BCLK that matche sampling frequency of 192khz. This commit enables this rate only for slave mode, i.e it does not declare this frequency in sysclk_contraints, resulting to an error in master mode (not supported CLK). Signed-off-by: Romain Perier <romain.perier@collabora.com> Signed-off-by: Mark Brown <broonie@kernel.org> (cherry picked from commit 404785f) Change-Id: I6bee5d4605a7612eac0a955c52bf80c500adbc5b Signed-off-by: Chris Zhong <zyw@rock-chips.com>
1 parent 5458a84 commit a47789f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sound/soc/codecs/es8328.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ static const char * const supply_names[ES8328_SUPPLY_NUM] = {
6969
"HPVDD",
7070
};
7171

72-
#define ES8328_RATES (SNDRV_PCM_RATE_96000 | \
72+
#define ES8328_RATES (SNDRV_PCM_RATE_192000 | \
73+
SNDRV_PCM_RATE_96000 | \
7374
SNDRV_PCM_RATE_88200 | \
7475
SNDRV_PCM_RATE_8000_48000)
7576
#define ES8328_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \

0 commit comments

Comments
 (0)