Deleted Added
full compact
sound.h (193979) sound.h (274035)
1/*-
2 * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org>
3 * Copyright (c) 1999 Cameron Grant <cg@FreeBSD.org>
4 * Copyright (c) 1995 Hannu Savolainen
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org>
3 * Copyright (c) 1999 Cameron Grant <cg@FreeBSD.org>
4 * Copyright (c) 1995 Hannu Savolainen
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/dev/sound/pcm/sound.h 193979 2009-06-11 09:06:09Z ariff $
28 * $FreeBSD: head/sys/dev/sound/pcm/sound.h 274035 2014-11-03 11:11:45Z bapt $
29 */
30
31/*
32 * first, include kernel header files.
33 */
34
35#ifndef _OS_H_
36#define _OS_H_

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

48#include <sys/module.h>
49#include <sys/conf.h>
50#include <sys/file.h>
51#include <sys/uio.h>
52#include <sys/syslog.h>
53#include <sys/errno.h>
54#include <sys/malloc.h>
55#include <sys/bus.h>
29 */
30
31/*
32 * first, include kernel header files.
33 */
34
35#ifndef _OS_H_
36#define _OS_H_

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

48#include <sys/module.h>
49#include <sys/conf.h>
50#include <sys/file.h>
51#include <sys/uio.h>
52#include <sys/syslog.h>
53#include <sys/errno.h>
54#include <sys/malloc.h>
55#include <sys/bus.h>
56#if __FreeBSD_version < 500000
57#include <sys/buf.h>
58#endif
59#include <machine/resource.h>
60#include <machine/bus.h>
61#include <sys/rman.h>
62#include <sys/limits.h>
63#include <sys/mman.h>
64#include <sys/poll.h>
65#include <sys/sbuf.h>
66#include <sys/soundcard.h>

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

115
116#define PCMMAXCLONE PCMMAXCHAN
117
118#define PCMUNIT(x) (snd_unit2u(dev2unit(x)))
119#define PCMDEV(x) (snd_unit2d(dev2unit(x)))
120#define PCMCHAN(x) (snd_unit2c(dev2unit(x)))
121
122/* XXX unit2minor compat */
56#include <machine/resource.h>
57#include <machine/bus.h>
58#include <sys/rman.h>
59#include <sys/limits.h>
60#include <sys/mman.h>
61#include <sys/poll.h>
62#include <sys/sbuf.h>
63#include <sys/soundcard.h>

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

112
113#define PCMMAXCLONE PCMMAXCHAN
114
115#define PCMUNIT(x) (snd_unit2u(dev2unit(x)))
116#define PCMDEV(x) (snd_unit2d(dev2unit(x)))
117#define PCMCHAN(x) (snd_unit2c(dev2unit(x)))
118
119/* XXX unit2minor compat */
123#if __FreeBSD_version >= 800062
124#define PCMMINOR(x) (x)
120#define PCMMINOR(x) (x)
125#else
126#define PCMMINOR(x) unit2minor(x)
127#endif
128
129/*
130 * By design, limit possible channels for each direction.
131 */
132#define SND_MAXHWCHAN 256
133#define SND_MAXVCHANS SND_MAXHWCHAN
134
135#define SD_F_SIMPLEX 0x00000001

--- 494 unchanged lines hidden ---
121
122/*
123 * By design, limit possible channels for each direction.
124 */
125#define SND_MAXHWCHAN 256
126#define SND_MAXVCHANS SND_MAXHWCHAN
127
128#define SD_F_SIMPLEX 0x00000001

--- 494 unchanged lines hidden ---