Lines Matching refs:elem
61 static int elem_callback(snd_mixer_elem_t *elem ATTRIBUTE_UNUSED, unsigned int mask)
76 static int mixer_callback(snd_mixer_t *mixer ATTRIBUTE_UNUSED, unsigned int mask, snd_mixer_elem_t *elem)
79 snd_mixer_elem_set_callback(elem, elem_callback);
233 snd_mixer_selem_get_id(controls[focus_control_index].elem, current_selem_id);
260 err = snd_mixer_selem_get_enum_item(control->elem, i, &index);
267 items = snd_mixer_selem_get_enum_items(control->elem);
276 snd_mixer_selem_set_enum_item(control->elem, i, new_index);
287 items = snd_mixer_selem_get_enum_items(control->elem);
290 err = snd_mixer_selem_get_enum_item(control->elem, 0, &index);
302 snd_mixer_selem_set_enum_item(control->elem, i, new_index);
316 set_func(control->elem, control->volume_channels[0], value / 100.0, 0);
318 set_func(control->elem, control->volume_channels[1], value / 100.0, 0);
347 left = get_func(control->elem, control->volume_channels[0]);
349 right = get_func(control->elem, control->volume_channels[1]);
353 set_func(control->elem, control->volume_channels[0], left, dir);
357 set_func(control->elem, control->volume_channels[1], right, dir);
418 err = get_func(control->elem, channel_ids[0], &left);
423 err = get_func(control->elem, channel_ids[1], &right);
428 set_func(control->elem, channel_ids[0], !left);
430 set_func(control->elem, channel_ids[1], !right);
453 left = get_normalized_playback_volume(control->elem, control->volume_channels[0]);
454 right = get_normalized_playback_volume(control->elem, control->volume_channels[1]);
456 left = get_normalized_capture_volume(control->elem, control->volume_channels[0]);
457 right = get_normalized_capture_volume(control->elem, control->volume_channels[1]);
461 set_normalized_playback_volume(control->elem, control->volume_channels[0], left, 0);
462 set_normalized_playback_volume(control->elem, control->volume_channels[1], left, 0);
464 set_normalized_capture_volume(control->elem, control->volume_channels[0], left, 0);
465 set_normalized_capture_volume(control->elem, control->volume_channels[1], left, 0);
538 (snd_mixer_selem_get_enum_item(control->elem, 0, &index) >= 0)) {