Deleted Added
full compact
snapper.c (193640) snapper.c (193694)
1/*-
2 * Copyright 2008 by Marco Trillo. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
18 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
20 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
21 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 *
1/*-
2 * Copyright 2008 by Marco Trillo. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
18 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
20 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
21 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 *
25 * $FreeBSD: head/sys/dev/sound/macio/snapper.c 193640 2009-06-07 19:12:08Z ariff $
25 * $FreeBSD: head/sys/dev/sound/macio/snapper.c 193694 2009-06-08 08:10:52Z ariff $
26 */
27/*-
28 * Copyright (c) 2002, 2003 Tsubai Masanari. All rights reserved.
29 *
30 * Redistribution and use in source and binary forms, with or without
31 * modification, are permitted provided that the following conditions
32 * are met:
33 * 1. Redistributions of source code must retain the above copyright

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

91{
92 device_t sc_dev;
93 uint32_t sc_addr;
94};
95
96static int snapper_probe(device_t);
97static int snapper_attach(device_t);
98static int snapper_init(struct snd_mixer *m);
26 */
27/*-
28 * Copyright (c) 2002, 2003 Tsubai Masanari. All rights reserved.
29 *
30 * Redistribution and use in source and binary forms, with or without
31 * modification, are permitted provided that the following conditions
32 * are met:
33 * 1. Redistributions of source code must retain the above copyright

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

91{
92 device_t sc_dev;
93 uint32_t sc_addr;
94};
95
96static int snapper_probe(device_t);
97static int snapper_attach(device_t);
98static int snapper_init(struct snd_mixer *m);
99static void snapper_uninit(struct snd_mixer *m);
99static int snapper_uninit(struct snd_mixer *m);
100static int snapper_reinit(struct snd_mixer *m);
101static int snapper_set(struct snd_mixer *m, unsigned dev, unsigned left,
102 unsigned right);
103static u_int32_t snapper_setrecsrc(struct snd_mixer *m, u_int32_t src);
104
105static device_method_t snapper_methods[] = {
106 /* Device interface. */
107 DEVMETHOD(device_probe, snapper_probe),

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

418 snapper_write(sc, SNAPPER_ACR, snapper_initdata.ACR);
419
420 x |= SOUND_MASK_VOLUME;
421 mix_setdevs(m, x);
422
423 return (0);
424}
425
100static int snapper_reinit(struct snd_mixer *m);
101static int snapper_set(struct snd_mixer *m, unsigned dev, unsigned left,
102 unsigned right);
103static u_int32_t snapper_setrecsrc(struct snd_mixer *m, u_int32_t src);
104
105static device_method_t snapper_methods[] = {
106 /* Device interface. */
107 DEVMETHOD(device_probe, snapper_probe),

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

418 snapper_write(sc, SNAPPER_ACR, snapper_initdata.ACR);
419
420 x |= SOUND_MASK_VOLUME;
421 mix_setdevs(m, x);
422
423 return (0);
424}
425
426static void
426static int
427snapper_uninit(struct snd_mixer *m)
428{
427snapper_uninit(struct snd_mixer *m)
428{
429 return;
429 return (0);
430}
431
432static int
433snapper_reinit(struct snd_mixer *m)
434{
435 return (0);
436}
437

--- 55 unchanged lines hidden ---
430}
431
432static int
433snapper_reinit(struct snd_mixer *m)
434{
435 return (0);
436}
437

--- 55 unchanged lines hidden ---