diff options
author | Ka Ho Ng <khng@FreeBSD.org> | 2021-03-17 10:51:58 +0000 |
---|---|---|
committer | Ka Ho Ng <khng@FreeBSD.org> | 2021-03-17 11:05:43 +0000 |
commit | c96151d33509655efb7fb26768cb56a041c176f1 (patch) | |
tree | 2ce59a89aeb8410db838b3ba63d90523bed2df9d /sys/dev/sound/pcm/sound.h | |
parent | 096a84721670d388e432a1f7399251e4b20714f1 (diff) | |
download | src-c96151d33509655efb7fb26768cb56a041c176f1.tar.gz src-c96151d33509655efb7fb26768cb56a041c176f1.zip |
Implement sndstat nvlist-based enumeration ioctls.
These ioctl commands aim to provide easier ways for user space
applications to enumerate existing audio devices and the node they can
potentially use.
The exchange of device lists between user space and kernel is done on
nv(9). Some ioctl commands are added to /dev/sndstat node:
- SNDSTAT_REFRESH_DEVS
- SNDSTAT_GET_DEVS
- SNDSTAT_ADD_USER_DEVS
- SNDSTAT_FLUSH_USER_DEVS
Bump __FreeBSD_version to reflect the addition of the ioctls.
Sponsored by: The FreeBSD Foundation
Reviewed by: hselasky
Approved by: philip (mentor)
Differential Revision: https://reviews.freebsd.org/D26884
Diffstat (limited to 'sys/dev/sound/pcm/sound.h')
-rw-r--r-- | sys/dev/sound/pcm/sound.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/sound.h b/sys/dev/sound/pcm/sound.h index cdae5e837cdc..7b4a4d3a46ca 100644 --- a/sys/dev/sound/pcm/sound.h +++ b/sys/dev/sound/pcm/sound.h @@ -64,6 +64,7 @@ #include <sys/poll.h> #include <sys/sbuf.h> #include <sys/soundcard.h> +#include <sys/sndstat.h> #include <sys/sysctl.h> #include <sys/kobj.h> #include <vm/vm.h> |