Deleted Added
full compact
sound.h (142716) sound.h (148606)
1/*-
2 * Copyright (c) 1999 Cameron Grant <cg@freebsd.org>
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 <cg@freebsd.org>
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 142716 2005-02-27 22:16:30Z phk $
27 * $FreeBSD: head/sys/dev/sound/pcm/sound.h 148606 2005-07-31 16:16:22Z netchild $
28 */
29
30/*
31 * first, include kernel header files.
32 */
33
34#ifndef _OS_H_
35#define _OS_H_

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

139
140/* many variables should be reduced to a range. Here define a macro */
141#define RANGE(var, low, high) (var) = \
142 (((var)<(low))? (low) : ((var)>(high))? (high) : (var))
143#define DSP_BUFFSIZE (8192)
144
145/* make figuring out what a format is easier. got AFMT_STEREO already */
146#define AFMT_32BIT (AFMT_S32_LE | AFMT_S32_BE | AFMT_U32_LE | AFMT_U32_BE)
28 */
29
30/*
31 * first, include kernel header files.
32 */
33
34#ifndef _OS_H_
35#define _OS_H_

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

139
140/* many variables should be reduced to a range. Here define a macro */
141#define RANGE(var, low, high) (var) = \
142 (((var)<(low))? (low) : ((var)>(high))? (high) : (var))
143#define DSP_BUFFSIZE (8192)
144
145/* make figuring out what a format is easier. got AFMT_STEREO already */
146#define AFMT_32BIT (AFMT_S32_LE | AFMT_S32_BE | AFMT_U32_LE | AFMT_U32_BE)
147#define AFMT_24BIT (AFMT_S24_LE | AFMT_S24_BE | AFMT_U24_LE | AFMT_U24_BE)
147#define AFMT_16BIT (AFMT_S16_LE | AFMT_S16_BE | AFMT_U16_LE | AFMT_U16_BE)
148#define AFMT_8BIT (AFMT_U8 | AFMT_S8)
148#define AFMT_16BIT (AFMT_S16_LE | AFMT_S16_BE | AFMT_U16_LE | AFMT_U16_BE)
149#define AFMT_8BIT (AFMT_U8 | AFMT_S8)
149#define AFMT_SIGNED (AFMT_S16_LE | AFMT_S16_BE | AFMT_S8)
150#define AFMT_BIGENDIAN (AFMT_S16_BE | AFMT_U16_BE)
150#define AFMT_SIGNED (AFMT_S32_LE | AFMT_S32_BE | AFMT_S24_LE | AFMT_S24_BE | \
151 AFMT_S16_LE | AFMT_S16_BE | AFMT_S8)
152#define AFMT_BIGENDIAN (AFMT_S32_BE | AFMT_U32_BE | AFMT_S24_BE | AFMT_U24_BE | \
153 AFMT_S16_BE | AFMT_U16_BE)
151
152struct pcm_channel *fkchan_setup(device_t dev);
153int fkchan_kill(struct pcm_channel *c);
154
155#define SND_MAXVCHANS 255
156
157/*
158 * Minor numbers for the sound driver.

--- 156 unchanged lines hidden ---
154
155struct pcm_channel *fkchan_setup(device_t dev);
156int fkchan_kill(struct pcm_channel *c);
157
158#define SND_MAXVCHANS 255
159
160/*
161 * Minor numbers for the sound driver.

--- 156 unchanged lines hidden ---