[Bug 246231] dev/sound: SNDCTL_AUDIOINFO is actually SNDCTL_ENGINEINFO

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu May 7 19:57:23 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246231

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

I think I will try renaming the existing audioinfo handler to engineinfo, and
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.

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


More information about the freebsd-bugs mailing list