Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 May 2020 19:57:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 246231] dev/sound: SNDCTL_AUDIOINFO is actually SNDCTL_ENGINEINFO
Message-ID:  <bug-246231-227-fREJD9ts8a@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-246231-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-246231-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246231

--- Comment #1 from Kevin Zheng <kevinz5000@gmail.com> ---
It looks like the ioctl handler is the same for both AUDIOINFO and ENGINEIN=
FO.

I think I will try renaming the existing audioinfo handler to engineinfo, a=
nd
write a new audioinfo handler that grabs some info from sndstat. This will
involve making a few static sndstat structures public -- this the right way=
 to
go about it?

This will give usable devices (/dev/dsp0 instead of /dev/dsp0.p0) and fill =
in
the device handler (ai->handler) with a name from sndstat. We have a problem
that the names from sndstat aren't unique, but this is better than having no
handler, which some applications rely on to identify devices.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246231-227-fREJD9ts8a>