Lines Matching defs:err
100 int err;
102 if ((err = snd_mixer_open(mixer, 0)) < 0) {
103 ALOGE("Unable to open mixer: %s", snd_strerror(err));
104 return err;
107 if ((err = snd_mixer_attach(*mixer, name)) < 0) {
109 name, snd_strerror(err));
111 if ((err = snd_mixer_attach(*mixer, "hw:00")) < 0) {
113 snd_strerror(err));
117 return err;
121 if ((err = snd_mixer_selem_register(*mixer, NULL, NULL)) < 0) {
122 ALOGE("Unable to register mixer elements: %s", snd_strerror(err));
125 return err;
129 if ((err = snd_mixer_load(*mixer)) < 0) {
130 ALOGE("Unable to load mixer elements: %s", snd_strerror(err));
133 return err;
162 int err;
361 int err = snd_mixer_selem_set_capture_switch_all (info->elem, static_cast<int>(!state));
362 if (err < 0) {
402 int err = snd_mixer_selem_set_playback_switch_all (info->elem, static_cast<int>(!state));
403 if (err < 0) {