Deleted Added
sdiff udiff text old ( 74763 ) new ( 77269 )
full compact
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 74763 2001-03-24 23:10:29Z cg $
28 */
29
30/*
31 * first, include kernel header files.
32 */
33
34#ifndef _OS_H_
35#define _OS_H_

--- 57 unchanged lines hidden (view full) ---

93struct snd_mixer;
94
95#include <dev/sound/pcm/buffer.h>
96#include <dev/sound/pcm/channel.h>
97#include <dev/sound/pcm/feeder.h>
98#include <dev/sound/pcm/mixer.h>
99#include <dev/sound/pcm/dsp.h>
100
101#define SND_STATUSLEN 64
102/* descriptor of audio device */
103struct snddev_info {
104 struct pcm_channel *play, *rec, **aplay, **arec, *fakechan;
105 int *ref;
106 unsigned playcount, reccount, chancount, maxchans;
107 struct snd_mixer *mixer;
108 unsigned flags;
109 void *devinfo;
110 device_t dev;
111 char status[SND_STATUSLEN];
112 struct sysctl_ctx_list sysctl_tree;
113 struct sysctl_oid *sysctl_tree_top;
114 struct mtx mutex;

--- 73 unchanged lines hidden (view full) ---

188#define BVDDB(x) if (bootverbose) x
189
190#ifndef DEB
191#define DEB(x)
192#endif
193
194SYSCTL_DECL(_hw_snd);
195
196int pcm_addchan(device_t dev, int dir, kobj_class_t cls, void *devinfo);
197int pcm_register(device_t dev, void *devinfo, int numplay, int numrec);
198int pcm_unregister(device_t dev);
199int pcm_setstatus(device_t dev, char *str);
200u_int32_t pcm_getflags(device_t dev);
201void pcm_setflags(device_t dev, u_int32_t val);
202void *pcm_getdevinfo(device_t dev);
203

--- 18 unchanged lines hidden ---