summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorRomain Perier <romain.perier@collabora.com>2017-03-01 10:11:06 +0100
committerTao Huang <huangtao@rock-chips.com>2017-12-05 17:11:47 +0800
commita47789f1632bf7a55c9852add20390ab82dda7fc (patch)
tree06c8a1f9551d437e1604198bc349f658e46ae790 /sound
parent5458a84da49f4e33e1579ca592b0b09e5aa0aac9 (diff)
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/es8328.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/es8328.c b/sound/soc/codecs/es8328.c
index 1363a68155a9..ed7cc42d1ee2 100644
--- a/sound/soc/codecs/es8328.c
+++ b/sound/soc/codecs/es8328.c
@@ -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 | \