Commit 172589b
committed
audio: chain_dma: fix link DMA reload logic for initial reload
Current code waits until host DMA has more than half of the DMA
buffer size worth of data available for transfer. The code however
does not check whether link DMA has space for all available data
yet and can cause the link DMA write pointer to wrap the read
pointer. This will break the delay reporting and can lead to link
xruns if the wrapped write pointer ends up too close to the link
DMA read position (which is moved by DMA hardware in playback case).
Tested-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>1 parent d90b2ad commit 172589b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| |||
0 commit comments