Deleted Added
full compact
tumbler.c (193640) tumbler.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/tumbler.c 193640 2009-06-07 19:12:08Z ariff $
25 * $FreeBSD: head/sys/dev/sound/macio/tumbler.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 tumbler_probe(device_t);
97static int tumbler_attach(device_t);
98static int tumbler_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 tumbler_probe(device_t);
97static int tumbler_attach(device_t);
98static int tumbler_init(struct snd_mixer *m);
99static void tumbler_uninit(struct snd_mixer *m);
99static int tumbler_uninit(struct snd_mixer *m);
100static int tumbler_reinit(struct snd_mixer *m);
101static int tumbler_set(struct snd_mixer *m, unsigned dev, unsigned left,
102 unsigned right);
103static u_int32_t tumbler_setrecsrc(struct snd_mixer *m, u_int32_t src);
104
105static device_method_t tumbler_methods[] = {
106 /* Device interface. */
107 DEVMETHOD(device_probe, tumbler_probe),

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

364 tumbler_write(sc, TUMBLER_MIXER2, tumbler_initdata.MIXER2);
365
366 x |= SOUND_MASK_VOLUME;
367 mix_setdevs(m, x);
368
369 return (0);
370}
371
100static int tumbler_reinit(struct snd_mixer *m);
101static int tumbler_set(struct snd_mixer *m, unsigned dev, unsigned left,
102 unsigned right);
103static u_int32_t tumbler_setrecsrc(struct snd_mixer *m, u_int32_t src);
104
105static device_method_t tumbler_methods[] = {
106 /* Device interface. */
107 DEVMETHOD(device_probe, tumbler_probe),

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

364 tumbler_write(sc, TUMBLER_MIXER2, tumbler_initdata.MIXER2);
365
366 x |= SOUND_MASK_VOLUME;
367 mix_setdevs(m, x);
368
369 return (0);
370}
371
372static void
372static int
373tumbler_uninit(struct snd_mixer *m)
374{
373tumbler_uninit(struct snd_mixer *m)
374{
375 return;
375 return (0);
376}
377
378static int
379tumbler_reinit(struct snd_mixer *m)
380{
381 return (0);
382}
383

--- 55 unchanged lines hidden ---
376}
377
378static int
379tumbler_reinit(struct snd_mixer *m)
380{
381 return (0);
382}
383

--- 55 unchanged lines hidden ---