summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/sound.h
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2001-09-05 16:28:41 +0000
committercg <cg@FreeBSD.org>2001-09-05 16:28:41 +0000
commit9d8a805762329a53d281cceb6a882df9f8f81326 (patch)
tree9b366877ef6fe361dc6f34aa24fa1b89089581b9 /sys/dev/sound/pcm/sound.h
parent5f2415a1e944afe0b68330f6a37b04b185af81d8 (diff)
downloadFreeBSD-src-9d8a805762329a53d281cceb6a882df9f8f81326.zip
FreeBSD-src-9d8a805762329a53d281cceb6a882df9f8f81326.tar.gz
add a method for recording of specific channels for devices with more than
one hardware record channel. new devices, /dev/dsprX.Y where X is unit number and Y is channel index.
Diffstat (limited to 'sys/dev/sound/pcm/sound.h')
-rw-r--r--sys/dev/sound/pcm/sound.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/sound.h b/sys/dev/sound/pcm/sound.h
index 6cc6371..751b848 100644
--- a/sys/dev/sound/pcm/sound.h
+++ b/sys/dev/sound/pcm/sound.h
@@ -191,6 +191,7 @@ int fkchan_kill(struct pcm_channel *c);
#define SND_DEV_SNDPROC 9 /* /dev/sndproc for programmable devices */
#define SND_DEV_PSS SND_DEV_SNDPROC /* ? */
#define SND_DEV_NORESET 10
+#define SND_DEV_DSPREC 11 /* recording channels */
#define DSP_DEFAULT_SPEED 8000
@@ -220,7 +221,7 @@ struct sysctl_oid *snd_sysctl_tree_top(device_t dev);
void pcm_lock(struct snddev_info *d);
void pcm_unlock(struct snddev_info *d);
struct pcm_channel *pcm_getfakechan(struct snddev_info *d);
-struct pcm_channel *pcm_chnalloc(struct snddev_info *d, int direction, pid_t pid);
+struct pcm_channel *pcm_chnalloc(struct snddev_info *d, int direction, pid_t pid, int chnum);
int pcm_chnrelease(struct pcm_channel *c);
int pcm_chnref(struct pcm_channel *c, int ref);
int pcm_inprog(struct snddev_info *d, int delta);
OpenPOWER on IntegriCloud