freebsd-skq/sys/dev/sound
hselasky 4a8d8f7fba To support userspace audio daemons like Virtual OSS, /dev/sndstat is
made writeable by the root user. Userspace audio daemons can add or
update an entry in /dev/sndstat by doing a single system write call to
any /dev/sndstat file descriptor handle. When the audio daemon closes the
file handle or is killed the entry disappears.

While at it, cleanup the sound status code a bit:
- keep the device list sorted to avoid sorting the list every time a
  /dev/sndstat read request is made.
- factor out locking into a pair of locking macros.
- use the sound status lock to protect all per file handle states,
  when generating the output for /dev/sndstat and when removing or
  adding sound status devices. This way sndstat_acquire() and
  sndstat_release() become superfluous and can be removed.

Reviewed by:		mav @
Differential Revision:	https://reviews.freebsd.org/D5191
2016-02-09 17:09:14 +00:00
..
isa Convert rman to use rman_res_t instead of u_long 2016-01-27 02:23:54 +00:00
macio
midi - Plugging a memory leak when malloc() failed during initialisation; 2015-10-24 19:40:03 +00:00
pci Convert rman to use rman_res_t instead of u_long 2016-01-27 02:23:54 +00:00
pcm To support userspace audio daemons like Virtual OSS, /dev/sndstat is 2016-02-09 17:09:14 +00:00
sbus
usb Create a USB_PNP_INFO and use it to export the existing PNP 2015-12-11 05:28:00 +00:00
chip.h
clone.c
clone.h
driver.c
unit.c
unit.h
version.h