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