Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jan 2010 22:59:28 +0100
From:      Juergen Lock <nox@jelal.kn-bremen.de>
To:        freebsd-multimedia@FreeBSD.org
Cc:        mav@FreeBSD.org, netchild@FreeBSD.org, Ryan Beasley <ryanb@goddamnbastard.org>
Subject:   native OSS_GETVERSION ioctl doesn't really work
Message-ID:  <20100109215928.GA93188@triton8.kn-bremen.de>

next in thread | raw e-mail | index | archive | help
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,
	http://svn.freebsd.org/viewvc/base?view=revision&revision=164613
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)) {
		...
here,
	http://fxr.watson.org/fxr/source/dev/sound/pcm/mixer.c#L1255
and so even if actually done on a mixer device the ioctl ends up failing
with ENXIO.

 JFY... :)
	Juergen

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100109215928.GA93188>