Deleted Added
full compact
mixer.c (177198) mixer.c (227255)
1/*
2 * This is an example of a mixer program for Linux
3 *
4 * updated 1/1/93 to add stereo, level query, broken
5 * devmask kludge - cmetz@thor.tjhsst.edu
6 *
7 * (C) Craig Metz and Hannu Savolainen 1993.
8 *
9 * You may do anything you wish with this program.
10 *
11 * ditto for my modifications (John-Mark Gurney, 1997)
12 */
13
14#include <sys/cdefs.h>
1/*
2 * This is an example of a mixer program for Linux
3 *
4 * updated 1/1/93 to add stereo, level query, broken
5 * devmask kludge - cmetz@thor.tjhsst.edu
6 *
7 * (C) Craig Metz and Hannu Savolainen 1993.
8 *
9 * You may do anything you wish with this program.
10 *
11 * ditto for my modifications (John-Mark Gurney, 1997)
12 */
13
14#include <sys/cdefs.h>
15__FBSDID("$FreeBSD: head/usr.sbin/mixer/mixer.c 177198 2008-03-15 01:36:20Z jkim $");
15__FBSDID("$FreeBSD: head/usr.sbin/mixer/mixer.c 227255 2011-11-06 19:02:13Z ed $");
16
17#include <err.h>
18#include <fcntl.h>
19#include <libgen.h>
20#include <limits.h>
21#include <stdio.h>
22#include <string.h>
23#include <stdlib.h>
24#include <unistd.h>
25#include <sys/soundcard.h>
26
16
17#include <err.h>
18#include <fcntl.h>
19#include <libgen.h>
20#include <limits.h>
21#include <stdio.h>
22#include <string.h>
23#include <stdlib.h>
24#include <unistd.h>
25#include <sys/soundcard.h>
26
27const char *names[SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_NAMES;
27static const char *names[SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_NAMES;
28
29static void usage(int devmask, int recmask);
30static int res_name(const char *name, int mask);
31static void print_recsrc(int recsrc, int recmask, int sflag);
32
33static void
34usage(int devmask, int recmask)
35{

--- 296 unchanged lines hidden ---
28
29static void usage(int devmask, int recmask);
30static int res_name(const char *name, int mask);
31static void print_recsrc(int recsrc, int recmask, int sflag);
32
33static void
34usage(int devmask, int recmask)
35{

--- 296 unchanged lines hidden ---