ASoC: meson: axg-frddr: set fifo depth according to the period
authorJerome Brunet <jbrunet@baylibre.com>
Wed, 7 Apr 2021 14:57:14 +0000 (16:57 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 7 Apr 2021 15:57:31 +0000 (16:57 +0100)
commit6f68accaa8641b70b698da659216f82f87537869
tree44b5372808aa761a341d2868aee611a50ec94b77
parent1ca1156cfd69530e6b7cb99943baf90c8bd871a5
ASoC: meson: axg-frddr: set fifo depth according to the period

When the period is small, using all the FRDDR fifo depth increases the
latency of the playback because the following device won't start pulling
data until the fifo reaches the depth set. We can adjust this depth so trim
it down for small periods.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20210407145714.311138-1-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/axg-frddr.c