channel.h (59577) | channel.h (60958) |
---|---|
1/* 2 * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/* 2 * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/sound/pcm/channel.h 59577 2000-04-23 18:09:18Z cg $ | 26 * $FreeBSD: head/sys/dev/sound/pcm/channel.h 60958 2000-05-26 21:15:47Z cg $ |
27 */ 28 29int chn_reinit(pcm_channel *c); 30int chn_write(pcm_channel *c, struct uio *buf); 31int chn_read(pcm_channel *c, struct uio *buf); 32int chn_sync(pcm_channel *c, int threshold); 33int chn_flush(pcm_channel *c); 34int chn_poll(pcm_channel *c, int ev, struct proc *p); --- 23 unchanged lines hidden (view full) --- 58 59extern pcm_feeder feeder_root; 60 61#define PCMDIR_PLAY 1 62#define PCMDIR_REC -1 63 64#define PCMTRIG_START 1 65#define PCMTRIG_EMLDMAWR 2 | 27 */ 28 29int chn_reinit(pcm_channel *c); 30int chn_write(pcm_channel *c, struct uio *buf); 31int chn_read(pcm_channel *c, struct uio *buf); 32int chn_sync(pcm_channel *c, int threshold); 33int chn_flush(pcm_channel *c); 34int chn_poll(pcm_channel *c, int ev, struct proc *p); --- 23 unchanged lines hidden (view full) --- 58 59extern pcm_feeder feeder_root; 60 61#define PCMDIR_PLAY 1 62#define PCMDIR_REC -1 63 64#define PCMTRIG_START 1 65#define PCMTRIG_EMLDMAWR 2 |
66#define PCMTRIG_EMLDMARD 3 |
|
66#define PCMTRIG_STOP 0 67#define PCMTRIG_ABORT -1 68 69#define CHN_F_READING 0x00000001 /* have a pending read */ 70#define CHN_F_WRITING 0x00000002 /* have a pending write */ 71#define CHN_F_CLOSING 0x00000004 /* a pending close */ 72#define CHN_F_ABORTING 0x00000008 /* a pending abort */ 73#define CHN_F_PENDING_IO (CHN_F_READING | CHN_F_WRITING) --- 23 unchanged lines hidden --- | 67#define PCMTRIG_STOP 0 68#define PCMTRIG_ABORT -1 69 70#define CHN_F_READING 0x00000001 /* have a pending read */ 71#define CHN_F_WRITING 0x00000002 /* have a pending write */ 72#define CHN_F_CLOSING 0x00000004 /* a pending close */ 73#define CHN_F_ABORTING 0x00000008 /* a pending abort */ 74#define CHN_F_PENDING_IO (CHN_F_READING | CHN_F_WRITING) --- 23 unchanged lines hidden --- |