Lines Matching refs:elem
442 snd_mixer_elem_t* elem = snd_mixer_find_selem(handle, sid);
443 if (!elem) {
449 return elem;
452 bool AudioMixerAlsa::GetElementVolume_Locked(snd_mixer_elem_t* elem,
456 elem, static_cast<snd_mixer_selem_channel_id_t>(0), &long_vol);
467 bool AudioMixerAlsa::SetElementVolume_Locked(snd_mixer_elem_t* elem,
474 snd_mixer_selem_get_playback_volume_range(elem, &vol_lo, &vol_hi);
487 snd_mixer_selem_get_playback_dB_range(elem, &db_lo_int, &db_hi_int);
505 alsa_result = snd_mixer_selem_set_playback_volume_all(elem, value);
512 VLOG(1) << "Set volume " << snd_mixer_selem_get_name(elem)
519 elem, static_cast<snd_mixer_selem_channel_id_t>(0), &volume);
527 VLOG(1) << "Actual volume " << snd_mixer_selem_get_name(elem)
533 elem) const {
536 elem, static_cast<snd_mixer_selem_channel_id_t>(0), &enabled);
545 void AudioMixerAlsa::SetElementMuted_Locked(snd_mixer_elem_t* elem, bool mute) {
547 int alsa_result = snd_mixer_selem_set_playback_switch_all(elem, enabled);
552 VLOG(1) << "Set playback switch " << snd_mixer_selem_get_name(elem)