ASoC: meson: axg-fifo: improve depth handling
authorJerome Brunet <jbrunet@baylibre.com>
Wed, 18 Dec 2019 17:24:19 +0000 (18:24 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 18 Dec 2019 20:01:15 +0000 (20:01 +0000)
commit23b89e1d62c75f2c1985449e968886e8a97860c0
treea0d235212b482f107dc1345bbc8b23978c614d34
parent864cee90d4bd870e5d5e5a0b1a6f055f4f951350
ASoC: meson: axg-fifo: improve depth handling

Let the fifo driver parse the fifo depth from DT. Eventually all DT should
have this property. Until it is actually the case, default to 256 bytes if
the property is missing. 256 bytes is the size of the smallest fifo on the
supported SoCs.

On the supported SoC, fifo A is usually bigger than the other ones.  With
depth known, we can improve the usage of the fifo and adapt the setup of
request threshold.

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