Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/mixer/mixer.c
Show All 24 Lines | |||||
#include <err.h> | #include <err.h> | ||||
#include <errno.h> | #include <errno.h> | ||||
#include <mixer.h> | #include <mixer.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <unistd.h> | #include <unistd.h> | ||||
#define C_VOL 0 | enum { | ||||
#define C_MUT 1 | C_VOL = 0, | ||||
#define C_SRC 2 | C_MUT, | ||||
C_SRC, | |||||
}; | |||||
static void usage(void) __dead2; | static void usage(void) __dead2; | ||||
static void initctls(struct mixer *); | static void initctls(struct mixer *); | ||||
static void printall(struct mixer *, int); | static void printall(struct mixer *, int); | ||||
static void printminfo(struct mixer *, int); | static void printminfo(struct mixer *, int); | ||||
static void printdev(struct mixer *, int); | static void printdev(struct mixer *, int); | ||||
static void printrecsrc(struct mixer *, int); /* XXX: change name */ | static void printrecsrc(struct mixer *, int); /* XXX: change name */ | ||||
/* Control handlers */ | /* Control handlers */ | ||||
▲ Show 20 Lines • Show All 454 Lines • Show Last 20 Lines |