]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite747617b79f699cdf94ee07e69cf35033dce25ce
treea2205f1658970ed6fa7d46bb4db4d3265f644996
parent627a866a9dd7c94047285e99517cbc23833029f5
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