allow (broken) apps to use mixer ioctls on dsp devices. eg: vmware

Submitted by:	"Vladimir N. Silyaev" <vsilyaev@mindspring.com>
This commit is contained in:
Cameron Grant 1999-12-20 00:56:51 +00:00
parent 126e9198eb
commit 1ad869dbc6

View File

@ -338,7 +338,10 @@ sndioctl(dev_t i_dev, u_long cmd, caddr_t arg, int mode, struct proc * p)
case SND_DEV_AUDIO:
case SND_DEV_DSP:
case SND_DEV_DSP16:
return dsp_ioctl(d, chan, cmd, arg);
if (IOCGROUP(cmd) == 'M')
return mixer_ioctl(d, cmd, arg);
else
return dsp_ioctl(d, chan, cmd, arg);
default:
return ENXIO;