mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Fix audio playback aborted with SNDCTL_DSP_SETTRIGGER, affecting
PortAudio version 19. PR: kern/118395 Submitted by: Henrik Gulbrandsen <henrik at gulbra dot net> MFC after: 3 days
This commit is contained in:
parent
6ed4cfc05d
commit
84793af6a9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174220
@ -409,7 +409,7 @@ chn_write(struct pcm_channel *c, struct uio *buf)
|
||||
sndbuf_acquire(bs, NULL, t);
|
||||
}
|
||||
ret = 0;
|
||||
if (CHN_STOPPED(c)) {
|
||||
if (CHN_STOPPED(c) && !(c->flags & CHN_F_NOTRIGGER)) {
|
||||
ret = chn_start(c, 0);
|
||||
if (ret != 0)
|
||||
c->flags |= CHN_F_DEAD;
|
||||
@ -520,7 +520,7 @@ chn_read(struct pcm_channel *c, struct uio *buf)
|
||||
|
||||
CHN_LOCKASSERT(c);
|
||||
|
||||
if (CHN_STOPPED(c)) {
|
||||
if (CHN_STOPPED(c) && !(c->flags & CHN_F_NOTRIGGER)) {
|
||||
ret = chn_start(c, 0);
|
||||
if (ret != 0) {
|
||||
c->flags |= CHN_F_DEAD;
|
||||
|
Loading…
Reference in New Issue
Block a user