diff options
author | Alexander Motin <mav@FreeBSD.org> | 2010-01-12 20:10:40 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2010-01-12 20:10:40 +0000 |
commit | b7d561a3f19b91be3b293e16fb6af55387e4336b (patch) | |
tree | 5ef734493b4d36cf75291dc045f55eb69bc21a2b /sys/dev/sound | |
parent | d6b230d20a1d0a2c614261de5e2058d4d10b43bc (diff) | |
download | src-b7d561a3f19b91be3b293e16fb6af55387e4336b.tar.gz src-b7d561a3f19b91be3b293e16fb6af55387e4336b.zip |
Make OSS_GETVERSION ioctl supported also for DSP devices,
same as 4Front and Linux do.
MFC after: 1 month
Notes
Notes:
svn path=/head/; revision=202170
Diffstat (limited to 'sys/dev/sound')
-rw-r--r-- | sys/dev/sound/pcm/dsp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c index 93a3acf2a0a2..d0ebfad00710 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); |