From: John Keeping Date: Mon, 9 May 2016 11:24:37 +0000 (+0100) Subject: ASoC: es8328: Set symmetric rates X-Git-Tag: v5.15~13488^2~7^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca0d8797397c5daa6260a6c67b845d79f65140f5;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/es8328.c b/sound/soc/codecs/es8328.c index b8ca214..2086d71 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)