sound.h (82180) | sound.h (83089) |
---|---|
1/* 2 * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk> 3 * Copyright by Hannu Savolainen 1995 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/* 2 * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk> 3 * Copyright by Hannu Savolainen 1995 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/sound/pcm/sound.h 82180 2001-08-23 11:30:52Z cg $ | 27 * $FreeBSD: head/sys/dev/sound/pcm/sound.h 83089 2001-09-05 16:28:41Z cg $ |
28 */ 29 30/* 31 * first, include kernel header files. 32 */ 33 34#ifndef _OS_H_ 35#define _OS_H_ --- 150 unchanged lines hidden (view full) --- 186#define SND_DEV_AUDIO 4 /* Sparc compatible /dev/audio */ 187#define SND_DEV_DSP16 5 /* Like /dev/dsp but 16 bits/sample */ 188#define SND_DEV_STATUS 6 /* /dev/sndstat */ 189 /* #7 not in use now. */ 190#define SND_DEV_SEQ2 8 /* /dev/sequencer, level 2 interface */ 191#define SND_DEV_SNDPROC 9 /* /dev/sndproc for programmable devices */ 192#define SND_DEV_PSS SND_DEV_SNDPROC /* ? */ 193#define SND_DEV_NORESET 10 | 28 */ 29 30/* 31 * first, include kernel header files. 32 */ 33 34#ifndef _OS_H_ 35#define _OS_H_ --- 150 unchanged lines hidden (view full) --- 186#define SND_DEV_AUDIO 4 /* Sparc compatible /dev/audio */ 187#define SND_DEV_DSP16 5 /* Like /dev/dsp but 16 bits/sample */ 188#define SND_DEV_STATUS 6 /* /dev/sndstat */ 189 /* #7 not in use now. */ 190#define SND_DEV_SEQ2 8 /* /dev/sequencer, level 2 interface */ 191#define SND_DEV_SNDPROC 9 /* /dev/sndproc for programmable devices */ 192#define SND_DEV_PSS SND_DEV_SNDPROC /* ? */ 193#define SND_DEV_NORESET 10 |
194#define SND_DEV_DSPREC 11 /* recording channels */ |
|
194 195#define DSP_DEFAULT_SPEED 8000 196 197#define ON 1 198#define OFF 0 199 200extern int snd_unit; 201extern devclass_t pcm_devclass; --- 13 unchanged lines hidden (view full) --- 215SYSCTL_DECL(_hw_snd); 216 217struct sysctl_ctx_list *snd_sysctl_tree(device_t dev); 218struct sysctl_oid *snd_sysctl_tree_top(device_t dev); 219 220void pcm_lock(struct snddev_info *d); 221void pcm_unlock(struct snddev_info *d); 222struct pcm_channel *pcm_getfakechan(struct snddev_info *d); | 195 196#define DSP_DEFAULT_SPEED 8000 197 198#define ON 1 199#define OFF 0 200 201extern int snd_unit; 202extern devclass_t pcm_devclass; --- 13 unchanged lines hidden (view full) --- 216SYSCTL_DECL(_hw_snd); 217 218struct sysctl_ctx_list *snd_sysctl_tree(device_t dev); 219struct sysctl_oid *snd_sysctl_tree_top(device_t dev); 220 221void pcm_lock(struct snddev_info *d); 222void pcm_unlock(struct snddev_info *d); 223struct pcm_channel *pcm_getfakechan(struct snddev_info *d); |
223struct pcm_channel *pcm_chnalloc(struct snddev_info *d, int direction, pid_t pid); | 224struct pcm_channel *pcm_chnalloc(struct snddev_info *d, int direction, pid_t pid, int chnum); |
224int pcm_chnrelease(struct pcm_channel *c); 225int pcm_chnref(struct pcm_channel *c, int ref); 226int pcm_inprog(struct snddev_info *d, int delta); 227 228struct pcm_channel *pcm_chn_create(struct snddev_info *d, struct pcm_channel *parent, kobj_class_t cls, int dir, void *devinfo); 229int pcm_chn_destroy(struct pcm_channel *ch); 230int pcm_chn_add(struct snddev_info *d, struct pcm_channel *ch, int mkdev); 231int pcm_chn_remove(struct snddev_info *d, struct pcm_channel *ch, int rmdev); --- 48 unchanged lines hidden --- | 225int pcm_chnrelease(struct pcm_channel *c); 226int pcm_chnref(struct pcm_channel *c, int ref); 227int pcm_inprog(struct snddev_info *d, int delta); 228 229struct pcm_channel *pcm_chn_create(struct snddev_info *d, struct pcm_channel *parent, kobj_class_t cls, int dir, void *devinfo); 230int pcm_chn_destroy(struct pcm_channel *ch); 231int pcm_chn_add(struct snddev_info *d, struct pcm_channel *ch, int mkdev); 232int pcm_chn_remove(struct snddev_info *d, struct pcm_channel *ch, int rmdev); --- 48 unchanged lines hidden --- |