Commit b6edaad
committed
audio: dai-zephyr: minor cleanup of xrun handling code
Some minor improvements to make the xrun handling code easier to follow.
The current implementation is checking for DAI DMA overrun/underrun
conditions both at start of a copy callback (using data from DMA driver
dma_get_status()), as well as at end of copy callback (using
dma_reload()). There is also two separate mechanisms to report xruns,
one specific to IPC4 (CONFIG_XRUN_NOTIFICATIONS_ENABLE) and one common
method using component.h interface (comp_underrun() and
comp_underrun()).
Add documentation to the xrun helper functions and rename
dai_report_xrun() to dai_report_reload_xrun() to better reflect the
actual implementation.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>1 parent 28d4665 commit b6edaad
1 file changed
+17
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1468 | 1468 | | |
1469 | 1469 | | |
1470 | 1470 | | |
1471 | | - | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
1472 | 1478 | | |
1473 | 1479 | | |
1474 | 1480 | | |
| |||
1494 | 1500 | | |
1495 | 1501 | | |
1496 | 1502 | | |
1497 | | - | |
1498 | | - | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
1499 | 1510 | | |
1500 | 1511 | | |
1501 | 1512 | | |
| |||
1584 | 1595 | | |
1585 | 1596 | | |
1586 | 1597 | | |
1587 | | - | |
| 1598 | + | |
1588 | 1599 | | |
1589 | 1600 | | |
1590 | 1601 | | |
| |||
1613 | 1624 | | |
1614 | 1625 | | |
1615 | 1626 | | |
1616 | | - | |
| 1627 | + | |
1617 | 1628 | | |
1618 | 1629 | | |
1619 | 1630 | | |
| |||
1814 | 1825 | | |
1815 | 1826 | | |
1816 | 1827 | | |
1817 | | - | |
| 1828 | + | |
1818 | 1829 | | |
1819 | 1830 | | |
1820 | 1831 | | |
| |||
0 commit comments