]> 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)
commitdad1661f354e9a4705d58e29896c9b350b79e45a
treea0d235212b482f107dc1345bbc8b23978c614d34
parent8c8f39d57f762e007f04d305abd64edad1483742
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