Home | History | Annotate | Download | only in alsa_sound

Lines Matching refs:mixer

62         {dev, "alsa.mixer.playback." name, out, NULL},\
63 {dev, "alsa.mixer.capture." name, in, NULL}\
98 static int initMixer (snd_mixer_t **mixer, const char *name)
102 if ((err = snd_mixer_open(mixer, 0)) < 0) {
103 ALOGE("Unable to open mixer: %s", snd_strerror(err));
107 if ((err = snd_mixer_attach(*mixer, name)) < 0) {
108 ALOGW("Unable to attach mixer to device %s: %s",
111 if ((err = snd_mixer_attach(*mixer, "hw:00")) < 0) {
112 ALOGE("Unable to attach mixer to device default: %s",
115 snd_mixer_close (*mixer);
116 *mixer = NULL;
121 if ((err = snd_mixer_selem_register(*mixer, NULL, NULL)) < 0) {
122 ALOGE("Unable to register mixer elements: %s", snd_strerror(err));
123 snd_mixer_close (*mixer);
124 *mixer = NULL;
128 // Get the mixer controls from the kernel
129 if ((err = snd_mixer_load(*mixer)) < 0) {
130 ALOGE("Unable to load mixer elements: %s", snd_strerror(err));
131 snd_mixer_close (*mixer);
132 *mixer = NULL;
207 ALOGV("Mixer: master '%s' %s.", info->name, info->elem ? "found" : "not found");
243 ALOGV("Mixer: route '%s' %s.", info->name, info->elem ? "found" : "not found");
246 ALOGV("mixer initialized.");
264 ALOGV("mixer destroyed.");
363 ALOGE("Unable to %s capture mixer switch %s",
404 ALOGE("Unable to %s playback mixer switch %s",