native OSS_GETVERSION ioctl doesn't really work

Juergen Lock nox at
Sat Jan 9 22:17:41 UTC 2010

While fixing qemu for the upcoming 0.12.1 (or .2) qemu-devel port
I discovered that the OSS_GETVERSION ioctl added by r164613 in 2006,
is only implemented for the mixer device (other than in the Linuxolator),
and on top of that that code is never reached because OSS_GETVERSION
is defined as an _IOR ('M', ...), which are all handled by an
	if ((cmd & MIXER_READ(0)) == MIXER_READ(0)) {
and so even if actually done on a mixer device the ioctl ends up failing
with ENXIO.

 JFY... :)

PS: I guess I can try to make a patch, but only if its needed :)

More information about the freebsd-multimedia mailing list