ds1.c (65647) | ds1.c (66012) |
---|---|
1/* 2 * Copyright (c) 2000 Cameron Grant <cg@freebsd.org> 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, WHETHERIN 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 THEPOSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/* 2 * Copyright (c) 2000 Cameron Grant <cg@freebsd.org> 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, WHETHERIN 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 THEPOSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/sound/pci/ds1.c 65647 2000-09-09 21:31:06Z cg $ | 26 * $FreeBSD: head/sys/dev/sound/pci/ds1.c 66012 2000-09-17 23:46:32Z cg $ |
27 */ 28 29#include <dev/sound/pcm/sound.h> 30#include <dev/sound/pcm/ac97.h> 31 32#include <pci/pcireg.h> 33#include <pci/pcivar.h> 34 --- 115 unchanged lines hidden (view full) --- 150/* -------------------------------------------------------------------- */ 151 152/* 153 * prototypes 154 */ 155 156/* channel interface */ 157static void *ds1pchan_init(void *devinfo, snd_dbuf *b, pcm_channel *c, int dir); | 27 */ 28 29#include <dev/sound/pcm/sound.h> 30#include <dev/sound/pcm/ac97.h> 31 32#include <pci/pcireg.h> 33#include <pci/pcivar.h> 34 --- 115 unchanged lines hidden (view full) --- 150/* -------------------------------------------------------------------- */ 151 152/* 153 * prototypes 154 */ 155 156/* channel interface */ 157static void *ds1pchan_init(void *devinfo, snd_dbuf *b, pcm_channel *c, int dir); |
158static int ds1pchan_setdir(void *data, int dir); | |
159static int ds1pchan_setformat(void *data, u_int32_t format); 160static int ds1pchan_setspeed(void *data, u_int32_t speed); 161static int ds1pchan_setblocksize(void *data, u_int32_t blocksize); 162static int ds1pchan_trigger(void *data, int go); 163static int ds1pchan_getptr(void *data); 164static pcmchan_caps *ds1pchan_getcaps(void *data); 165 166static void *ds1rchan_init(void *devinfo, snd_dbuf *b, pcm_channel *c, int dir); | 158static int ds1pchan_setformat(void *data, u_int32_t format); 159static int ds1pchan_setspeed(void *data, u_int32_t speed); 160static int ds1pchan_setblocksize(void *data, u_int32_t blocksize); 161static int ds1pchan_trigger(void *data, int go); 162static int ds1pchan_getptr(void *data); 163static pcmchan_caps *ds1pchan_getcaps(void *data); 164 165static void *ds1rchan_init(void *devinfo, snd_dbuf *b, pcm_channel *c, int dir); |
167static int ds1rchan_setdir(void *data, int dir); | |
168static int ds1rchan_setformat(void *data, u_int32_t format); 169static int ds1rchan_setspeed(void *data, u_int32_t speed); 170static int ds1rchan_setblocksize(void *data, u_int32_t blocksize); 171static int ds1rchan_trigger(void *data, int go); 172static int ds1rchan_getptr(void *data); 173static pcmchan_caps *ds1rchan_getcaps(void *data); 174 175/* talk to the codec - called from ac97.c */ --- 899 unchanged lines hidden --- | 166static int ds1rchan_setformat(void *data, u_int32_t format); 167static int ds1rchan_setspeed(void *data, u_int32_t speed); 168static int ds1rchan_setblocksize(void *data, u_int32_t blocksize); 169static int ds1rchan_trigger(void *data, int go); 170static int ds1rchan_getptr(void *data); 171static pcmchan_caps *ds1rchan_getcaps(void *data); 172 173/* talk to the codec - called from ac97.c */ --- 899 unchanged lines hidden --- |