ASoC: davinci-mcasp: Add support for FIFO usage caused delay reporting
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 31 Aug 2018 08:24:56 +0000 (11:24 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 31 Aug 2018 10:31:03 +0000 (11:31 +0100)
commit5fcb457ac2fdc62c5ff6d3962c958b1301bc5ea1
treed72f760d697f49a8496f737e4b0a17769693d589
parent834fe4084d31f30e88a6a2cae25709a38054f839
ASoC: davinci-mcasp: Add support for FIFO usage caused delay reporting

McASP have write and read FIFO, each 64 words deep.

From the WFIFOS/RFIFOS registers we can read the amount of data currently
in the FIFO which can be directly reported as delay.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/davinci/davinci-mcasp.c