From 1ad869dbc6140083a23bcc91640b0810740a2532 Mon Sep 17 00:00:00 2001 From: Cameron Grant Date: Mon, 20 Dec 1999 00:56:51 +0000 Subject: [PATCH] allow (broken) apps to use mixer ioctls on dsp devices. eg: vmware Submitted by: "Vladimir N. Silyaev" --- sys/dev/sound/pcm/sound.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index 1d26f45e1350..db3107163bfa 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -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;