summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/dsp.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2010-01-12 20:10:40 +0000
committermav <mav@FreeBSD.org>2010-01-12 20:10:40 +0000
commit7c7e4e582fce3efbb6804881a1f040025c87f579 (patch)
tree5ef734493b4d36cf75291dc045f55eb69bc21a2b /sys/dev/sound/pcm/dsp.c
parent52387cccbf087777518811606d1ae160dc920419 (diff)
downloadFreeBSD-src-7c7e4e582fce3efbb6804881a1f040025c87f579.zip
FreeBSD-src-7c7e4e582fce3efbb6804881a1f040025c87f579.tar.gz
Make OSS_GETVERSION ioctl supported also for DSP devices,
same as 4Front and Linux do. MFC after: 1 month
Diffstat (limited to 'sys/dev/sound/pcm/dsp.c')
-rw-r--r--sys/dev/sound/pcm/dsp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c
index 93a3acf..d0ebfad 100644
--- a/sys/dev/sound/pcm/dsp.c
+++ b/sys/dev/sound/pcm/dsp.c
@@ -1069,6 +1069,10 @@ dsp_ioctl(struct cdev *i_dev, u_long cmd, caddr_t arg, int mode,
chn = NULL;
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);
if (ret != -1) {
PCM_GIANT_EXIT(d);
OpenPOWER on IntegriCloud