Lines Matching refs:num_values
50 unsigned int num_values; member
59 unsigned int num_values; member
152 for (j = 0; j < path->setting[i].num_values; j++)
155 for (j = 0; j < path->setting[i].num_values; j++)
158 for (j = 0; j < path->setting[i].num_values; j++)
300 path->setting[path_index].num_values = setting->num_values; in path_add_setting()
304 path->setting[path_index].value.ptr = calloc(setting->num_values, value_sz); in path_add_setting()
307 setting->num_values * value_sz); in path_add_setting()
317 unsigned int num_values; in path_add_value() local
322 num_values = mixer_ctl_get_num_values(ctl); in path_add_value()
323 if (mixer_value->index >= (int)num_values) { in path_add_value()
344 path->setting[path_index].num_values = num_values; in path_add_value()
348 path->setting[path_index].value.ptr = calloc(num_values, value_sz); in path_add_value()
360 for (i = 0; i < num_values; i++) in path_add_value()
363 for (i = 0; i < num_values; i++) in path_add_value()
366 for (i = 0; i < num_values; i++) in path_add_value()
369 for (i = 0; i < num_values; i++) in path_add_value()
413 path->setting[i].num_values * value_sz); in path_apply()
437 ar->mixer_state[ctl_index].num_values * value_sz); in path_reset()
447 unsigned int num_values = mixer_ctl_get_num_enums(ctl); in mixer_enum_string_to_value() local
456 for (i = 0; i < num_values; i++) { in mixer_enum_string_to_value()
460 if (i == num_values) { in mixer_enum_string_to_value()
539 unsigned int num_values = mixer_ctl_get_num_values(ctl); in start_tag() local
540 value_array = calloc(num_values, sizeof(long)); in start_tag()
545 for (i = 0; i < num_values; i++) { in start_tag()
549 num_values, i, attr_name); in start_tag()
591 if (id < ar->mixer_state[ctl_index].num_values) in start_tag()
605 for (i = 0; i < ar->mixer_state[ctl_index].num_values; i++) in start_tag()
651 unsigned int num_values; in alloc_mixer_state() local
662 num_values = mixer_ctl_get_num_values(ctl); in alloc_mixer_state()
665 ar->mixer_state[i].num_values = num_values; in alloc_mixer_state()
675 ar->mixer_state[i].old_value.ptr = calloc(num_values, value_sz); in alloc_mixer_state()
676 ar->mixer_state[i].new_value.ptr = calloc(num_values, value_sz); in alloc_mixer_state()
677 ar->mixer_state[i].reset_value.ptr = calloc(num_values, value_sz); in alloc_mixer_state()
682 mixer_ctl_get_array(ctl, ar->mixer_state[i].old_value.ptr, num_values); in alloc_mixer_state()
685 num_values * value_sz); in alloc_mixer_state()
718 unsigned int num_values = ar->mixer_state[i].num_values; in audio_route_update_mixer() local
731 for (j = 0; j < num_values; j++) { in audio_route_update_mixer()
738 for (j = 0; j < num_values; j++) { in audio_route_update_mixer()
746 for (j = 0; j < num_values; j++) { in audio_route_update_mixer()
757 mixer_ctl_set_array(ctl, ar->mixer_state[i].new_value.ptr, num_values); in audio_route_update_mixer()
761 num_values * value_sz); in audio_route_update_mixer()
781 ar->mixer_state[i].num_values * value_sz); in save_mixer_state()
799 ar->mixer_state[i].num_values * value_sz); in audio_route_reset()
891 for (j = 0; j < ms->num_values; j++) { in audio_route_update_path()
899 ms->num_values * value_sz); in audio_route_update_path()
902 mixer_ctl_set_array(ms->ctl, ms->new_value.bytes, ms->num_values); in audio_route_update_path()
903 memcpy(ms->old_value.bytes, ms->new_value.bytes, ms->num_values * value_sz); in audio_route_update_path()
913 ms->num_values * value_sz); in audio_route_update_path()
918 ms->num_values * value_sz); in audio_route_update_path()
927 ms->num_values * value_sz); in audio_route_update_path()
930 mixer_ctl_set_array(ms->ctl, ms->new_value.integer, ms->num_values); in audio_route_update_path()
931 memcpy(ms->old_value.integer, ms->new_value.integer, ms->num_values * value_sz); in audio_route_update_path()