mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-22 16:44:32 +01:00
stop playing if we underrun; if there is more data to come, the next write
will restart
This commit is contained in:
parent
a281594c29
commit
529863cb71
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54849
@ -347,6 +347,8 @@ chn_wrintr(pcm_channel *c)
|
||||
DEB(printf("cannot start wr-dma flags 0x%08x rp %d rl %d\n",
|
||||
c->flags, b->rp, b->rl));
|
||||
if (b->dl) { /* DMA was active */
|
||||
chn_trigger(c, PCMTRIG_STOP);
|
||||
b->dl = 0;
|
||||
b->underflow = 1; /* set underflow flag */
|
||||
chn_clearbuf(c, b->bufsize); /* and clear all DMA buffer */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user