Be much more forgiving towards applications that requesting ioctls
that should be a no-op (for example, requesting SYNC on record path). The standards does not indicate that such requests are illegal, so just return it as success instead of EINVAL. Approved by: re (mux)
This commit is contained in:
parent
09828ba947
commit
a5b0e31251
@ -1100,8 +1100,7 @@ dsp_ioctl(struct cdev *i_dev, u_long cmd, caddr_t arg, int mode, struct thread *
|
||||
CHN_LOCK(wrch);
|
||||
chn_sync(wrch, 0);
|
||||
CHN_UNLOCK(wrch);
|
||||
} else
|
||||
ret = EINVAL;
|
||||
}
|
||||
break;
|
||||
|
||||
case SNDCTL_DSP_SPEED:
|
||||
@ -1446,8 +1445,7 @@ dsp_ioctl(struct cdev *i_dev, u_long cmd, caddr_t arg, int mode, struct thread *
|
||||
wrch->flags &= ~CHN_F_NOTRIGGER;
|
||||
chn_start(wrch, 1);
|
||||
CHN_UNLOCK(wrch);
|
||||
} else
|
||||
ret = EINVAL;
|
||||
}
|
||||
break;
|
||||
|
||||
case SNDCTL_DSP_SETDUPLEX:
|
||||
|
Loading…
x
Reference in New Issue
Block a user