mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
The SNDCTL_DSP_NONBLOCK ioctl doesn't take an argument, from
what I can tell by browsing the Internet (Linux, OSS, etc.).
This commit is contained in:
parent
c24384096d
commit
f77472e6dc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162775
@ -696,11 +696,11 @@ dsp_ioctl(struct cdev *i_dev, u_long cmd, caddr_t arg, int mode, struct thread *
|
||||
DEB( printf("FIOASYNC\n") ; )
|
||||
break;
|
||||
|
||||
case SNDCTL_DSP_NONBLOCK:
|
||||
case SNDCTL_DSP_NONBLOCK: /* set non-blocking i/o */
|
||||
case FIONBIO: /* set/clear non-blocking i/o */
|
||||
if (rdch) {
|
||||
CHN_LOCK(rdch);
|
||||
if (*arg_i)
|
||||
if (cmd == SNDCTL_DSP_NONBLOCK || *arg_i)
|
||||
rdch->flags |= CHN_F_NBIO;
|
||||
else
|
||||
rdch->flags &= ~CHN_F_NBIO;
|
||||
@ -708,7 +708,7 @@ dsp_ioctl(struct cdev *i_dev, u_long cmd, caddr_t arg, int mode, struct thread *
|
||||
}
|
||||
if (wrch) {
|
||||
CHN_LOCK(wrch);
|
||||
if (*arg_i)
|
||||
if (cmd == SNDCTL_DSP_NONBLOCK || *arg_i)
|
||||
wrch->flags |= CHN_F_NBIO;
|
||||
else
|
||||
wrch->flags &= ~CHN_F_NBIO;
|
||||
|
Loading…
Reference in New Issue
Block a user