Deleted Added
full compact
mixer.h (139749) mixer.h (160385)
1/*-
2 * Copyright (c) 1999 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, 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 <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, 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/mixer.h 139749 2005-01-06 01:43:34Z imp $
26 * $FreeBSD: head/sys/dev/sound/pcm/mixer.h 160385 2006-07-15 20:11:16Z netchild $
27 */
28
29int mixer_init(device_t dev, kobj_class_t cls, void *devinfo);
30int mixer_uninit(device_t dev);
31int mixer_reinit(device_t dev);
32int mixer_ioctl(struct cdev *i_dev, u_long cmd, caddr_t arg, int mode, struct thread *td);
33
34int mixer_hwvol_init(device_t dev);

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

42void *mix_getdevinfo(struct snd_mixer *m);
43
44/*
45 * this is a kludge to allow hiding of the struct snd_mixer definition
46 * 512 should be enough for all architectures
47 */
48#define MIXER_SIZE (512 + sizeof(struct kobj))
49
27 */
28
29int mixer_init(device_t dev, kobj_class_t cls, void *devinfo);
30int mixer_uninit(device_t dev);
31int mixer_reinit(device_t dev);
32int mixer_ioctl(struct cdev *i_dev, u_long cmd, caddr_t arg, int mode, struct thread *td);
33
34int mixer_hwvol_init(device_t dev);

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

42void *mix_getdevinfo(struct snd_mixer *m);
43
44/*
45 * this is a kludge to allow hiding of the struct snd_mixer definition
46 * 512 should be enough for all architectures
47 */
48#define MIXER_SIZE (512 + sizeof(struct kobj))
49
50#define MIXER_DECLARE(name) DEFINE_CLASS(name, name ## _methods, MIXER_SIZE)
50#define MIXER_DECLARE(name) static DEFINE_CLASS(name, name ## _methods, MIXER_SIZE)