ASoC: fsl_sai: derive TX FIFO watermark from FIFO depth
authorLucas Stach <l.stach@pengutronix.de>
Wed, 17 Jul 2019 10:56:34 +0000 (12:56 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 22 Jul 2019 12:26:13 +0000 (13:26 +0100)
commitbd517707d85f19a7339ea8b882fcbf0fd9976bd6
treea2205f1658970ed6fa7d46bb4db4d3265f644996
parent89c9679f699d88986ce552738dc7c5c500c8fc67
ASoC: fsl_sai: derive TX FIFO watermark from FIFO depth

The DMA request schould be triggered as soon as the FIFO has space
for another burst. As different versions of the SAI block have
different FIFO sizes, the watrmark level needs to be derived from
version specific data.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Angus Ainslie <angus@akkea.ca>
Reviewed-by: Angus Ainslie <angus@akkea.ca>
Link: https://lore.kernel.org/r/20190717105635.18514-3-l.stach@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c
sound/soc/fsl/fsl_sai.h