]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: es8328: Enabling support for 192k
authorRomain Perier <romain.perier@collabora.com>
Wed, 1 Mar 2017 09:11:06 +0000 (10:11 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 6 Mar 2017 10:40:17 +0000 (11:40 +0100)
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>
sound/soc/codecs/es8328.c

index 1363a68155a9a0bf3baf6ccffe3e57e1da94a7b4..ed7cc42d1ee2c16ece5306beb5f1aca7506dcaf5 100644 (file)
@@ -69,7 +69,8 @@ static const char * const supply_names[ES8328_SUPPLY_NUM] = {
        "HPVDD",
 };
 
-#define ES8328_RATES (SNDRV_PCM_RATE_96000 | \
+#define ES8328_RATES (SNDRV_PCM_RATE_192000 | \
+               SNDRV_PCM_RATE_96000 | \
                SNDRV_PCM_RATE_88200 | \
                SNDRV_PCM_RATE_8000_48000)
 #define ES8328_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \