Lines Matching full:mixer
34 #include "mixer.h"
36 #define BASEPATH "/dev/mixer"
57 * Open a mixer device in `/dev/mixerN`, where N is the number of the mixer.
59 * mixer for pcm0, and so on.
61 * @param name path to mixer device. NULL or "/dev/mixer" for the
62 * the default mixer (i.e `hw.snd.default_unit`).
64 struct mixer *
67 struct mixer *m = NULL; in mixer_open()
72 if ((m = calloc(1, sizeof(struct mixer))) == NULL) in mixer_open()
76 /* `name` does not start with "/dev/mixer". */ in mixer_open()
80 /* `name` is "/dev/mixer" so, we'll use the default unit. */ in mixer_open()
143 * Free resources and close the mixer.
146 mixer_close(struct mixer *m) in mixer_close()
165 * Select a mixer device. The mixer structure keeps a list of all the devices
166 * the mixer has, but only one can be manipulated at a time -- this is what
167 * the `dev` in the mixer structure field is for. Each time a device is to be
173 mixer_get_dev(struct mixer *m, int dev) in mixer_get_dev()
196 mixer_get_dev_byname(struct mixer *m, const char *name) in mixer_get_dev_byname()
210 * Add a mixer control to a device.
261 * Remove a mixer control from a device.
282 * Get a mixer control by id.
299 * Get a mixer control by name.
316 * Change the mixer's left and right volume. The allowed volume values are
325 mixer_set_vol(struct mixer *m, mix_volume_t vol) in mixer_set_vol()
351 mixer_set_mute(struct mixer *m, int opt) in mixer_set_mute()
385 mixer_mod_recsrc(struct mixer *m, int opt) in mixer_mod_recsrc()
417 * Get default audio card's number. This is used to open the default mixer
418 * and set the mixer structure's `f_default` flag.
434 * Change the default audio card. This is normally _not_ a mixer feature, but
441 mixer_set_dunit(struct mixer *m, int unit) in mixer_set_dunit()
479 struct mixer *m; in mixer_get_nmixers()
483 * Open a dummy mixer because we need the `fd` field for the in mixer_get_nmixers()
498 * Get the full path to a mixer device.