mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 09:02:44 +00:00
Make OSS_GETVERSION ioctl supported also for DSP devices,
same as 4Front and Linux do. MFC after: 1 month
This commit is contained in:
parent
d6b230d20a
commit
b7d561a3f1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202170
@ -1069,6 +1069,10 @@ dsp_ioctl(struct cdev *i_dev, u_long cmd, caddr_t arg, int mode,
|
|||||||
chn = NULL;
|
chn = NULL;
|
||||||
|
|
||||||
if (IOCGROUP(cmd) == 'M') {
|
if (IOCGROUP(cmd) == 'M') {
|
||||||
|
if (cmd == OSS_GETVERSION) {
|
||||||
|
*arg_i = SOUND_VERSION;
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
ret = dsp_ioctl_channel(i_dev, PCM_VOLCH(i_dev), cmd, arg);
|
ret = dsp_ioctl_channel(i_dev, PCM_VOLCH(i_dev), cmd, arg);
|
||||||
if (ret != -1) {
|
if (ret != -1) {
|
||||||
PCM_GIANT_EXIT(d);
|
PCM_GIANT_EXIT(d);
|
||||||
|
Loading…
Reference in New Issue
Block a user