Skip to contentSkip to conversation

dma: tegra: add accurate reporting of dma state

PATCH New Dmitry Osipenko 1 participant 1 message Feb 21, 2019 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 4/6 dma: tegra: add accurate reporting of dma state

31.10.2018 19:03, Ben Dooks пишет:

Quoted 5 lines

The tx_status callback does not report the state of the transfer beyond complete segments. This causes problems with users such as ALSA when applications want to know accurately how much data has been moved.

Quoted 7 lines

This patch addes a function tegra_dma_update_residual() to query the hardware and modify the residual information accordinly. It takes into account any hardware issues when trying to read the state, such as delays between finishing a buffer and signalling the interrupt.

Hello Ben,

Do you have any plans to submit a new version of this patch? It's really useful and fixes a real problem with the audio playback. I could help with finalizing the patch and could submit it for you if you happened to lost the interest.