]> www.infradead.org Git - users/dwmw2/linux.git/commit
ASoC: ti: davinci-mcasp: Set min period size using FIFO config
authorJai Luthra <j-luthra@ti.com>
Tue, 11 Jun 2024 12:32:56 +0000 (18:02 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 11 Jun 2024 16:13:32 +0000 (17:13 +0100)
commitc5dcf8ab10606e76c1d8a0ec77f27d84a392e874
treee9ddb900f620733cff89567badec1e24e731cc64
parente8343410ddf08fc36a9b9cc7c51a4e53a262d4c6
ASoC: ti: davinci-mcasp: Set min period size using FIFO config

The minimum period size was enforced to 64 as older devices integrating
McASP with EDMA used an internal FIFO of 64 samples.

With UDMA based platforms this internal McASP FIFO is optional, as the
DMA engine internally does some buffering which is already accounted for
when registering the platform. So we should read the actual FIFO
configuration (txnumevt/rxnumevt) instead of hardcoding frames.min to
64.

Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Signed-off-by: Jai Luthra <j-luthra@ti.com>
Link: https://lore.kernel.org/r/20240611-asoc_next-v3-2-fcfd84b12164@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ti/davinci-mcasp.c