]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06436a3129c278f1d373fcfad8c5192f040061da
treea0d235212b482f107dc1345bbc8b23978c614d34
parent74a7859b1f921b828c40d97dabd7a4f8ea818f1e
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