Home | History | Annotate | Download | only in alsa_sound

Lines Matching refs:elem

83         elem(0),
90 snd_mixer_elem_t *elem;
180 for (snd_mixer_elem_t *elem = snd_mixer_first_elem(mMixer[i]);
181 elem;
182 elem = snd_mixer_elem_next(elem)) {
184 if (!snd_mixer_selem_is_active(elem))
187 snd_mixer_selem_get_id(elem, sid);
192 if (info->elem == NULL &&
194 hasVolume[i] (elem)) {
196 info->elem = elem;
197 getVolumeRange[i] (elem, &info->min, &info->max);
199 setVol[i] (elem, info->volume);
201 snd_mixer_selem_has_playback_switch (elem))
202 snd_mixer_selem_set_playback_switch_all (elem, 1);
207 ALOGV("Mixer: master '%s' %s.", info->name, info->elem ? "found" : "not found");
217 for (snd_mixer_elem_t *elem = snd_mixer_first_elem(mMixer[i]);
218 elem;
219 elem = snd_mixer_elem_next(elem)) {
221 if (!snd_mixer_selem_is_active(elem))
224 snd_mixer_selem_get_id(elem, sid);
229 if (info->elem == NULL &&
231 hasVolume[i] (elem)) {
233 info->elem = elem;
234 getVolumeRange[i] (elem, &info->min, &info->max);
236 setVol[i] (elem, info->volume);
238 snd_mixer_selem_has_playback_switch (elem))
239 snd_mixer_selem_set_playback_switch_all (elem, 1);
243 ALOGV("Mixer: route '%s' %s.", info->name, info->elem ? "found" : "not found");
270 if (!info || !info->elem) return INVALID_OPERATION;
281 snd_mixer_selem_set_playback_volume_all (info->elem, vol);
289 if (!info || !info->elem) return INVALID_OPERATION;
300 snd_mixer_selem_set_capture_volume_all (info->elem, vol);
311 if (!info || !info->elem) return INVALID_OPERATION;
322 snd_mixer_selem_set_playback_volume_all (info->elem, vol);
334 if (!info || !info->elem) return INVALID_OPERATION;
345 snd_mixer_selem_set_capture_volume_all (info->elem, vol);
357 if (!info || !info->elem) return INVALID_OPERATION;
359 if (snd_mixer_selem_has_capture_switch (info->elem)) {
361 int err = snd_mixer_selem_set_capture_switch_all (info->elem, static_cast<int>(!state));
383 if (!info || !info->elem) return INVALID_OPERATION;
398 if (!info || !info->elem) return INVALID_OPERATION;
400 if (snd_mixer_selem_has_playback_switch (info->elem)) {
402 int err = snd_mixer_selem_set_playback_switch_all (info->elem, static_cast<int>(!state));
424 if (!info || !info->elem) return INVALID_OPERATION;