summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorJohn Keeping <john@metanate.com>2016-05-09 12:24:37 +0100
committerMark Brown <broonie@kernel.org>2016-05-10 18:56:01 +0100
commitca0d8797397c5daa6260a6c67b845d79f65140f5 (patch)
tree46d1e97a47f635e558b610900213b98bbcecd244 /sound
parent45749c918129e409c44777f051dc0a5afb689459 (diff)
downloadlinux-ca0d8797397c5daa6260a6c67b845d79f65140f5.tar.bz2
ASoC: es8328: Set symmetric rates
Although the ES8328 does support different rates for capture and playback, only very limited combinations are supported (8kHz and 48kHz or 8.0182kHz and 44.1kHz) with most rates required to be symmetric. Instead of adding a lot of complexity for little gain, let's enforce symmetric rates. Signed-off-by: John Keeping <john@metanate.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/es8328.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/es8328.c b/sound/soc/codecs/es8328.c
index b8ca214a5332..2086d7107622 100644
--- a/sound/soc/codecs/es8328.c
+++ b/sound/soc/codecs/es8328.c
@@ -703,6 +703,7 @@ static struct snd_soc_dai_driver es8328_dai = {
.formats = ES8328_FORMATS,
},
.ops = &es8328_dai_ops,
+ .symmetric_rates = 1,
};
static int es8328_suspend(struct snd_soc_codec *codec)