Lines Matching refs:num_values

44     unsigned int num_values;  member
53 unsigned int num_values; member
139 for (j = 0; j < path->setting[i].num_values; j++)
142 for (j = 0; j < path->setting[i].num_values; j++)
145 for (j = 0; j < path->setting[i].num_values; j++)
287 path->setting[path_index].num_values = setting->num_values; in path_add_setting()
291 path->setting[path_index].value.ptr = calloc(setting->num_values, value_sz); in path_add_setting()
294 setting->num_values * value_sz); in path_add_setting()
304 unsigned int num_values; in path_add_value() local
309 num_values = mixer_ctl_get_num_values(ctl); in path_add_value()
310 if (mixer_value->index >= (int)num_values) { in path_add_value()
331 path->setting[path_index].num_values = num_values; in path_add_value()
335 path->setting[path_index].value.ptr = calloc(num_values, value_sz); in path_add_value()
347 for (i = 0; i < num_values; i++) in path_add_value()
350 for (i = 0; i < num_values; i++) in path_add_value()
353 for (i = 0; i < num_values; i++) in path_add_value()
397 path->setting[i].num_values * value_sz); in path_apply()
421 ar->mixer_state[ctl_index].num_values * value_sz); in path_reset()
431 unsigned int num_values = mixer_ctl_get_num_enums(ctl); in mixer_enum_string_to_value() local
440 for (i = 0; i < num_values; i++) { in mixer_enum_string_to_value()
444 if (i == num_values) { in mixer_enum_string_to_value()
539 if (id < ar->mixer_state[ctl_index].num_values) in start_tag()
551 for (i = 0; i < ar->mixer_state[ctl_index].num_values; i++) in start_tag()
588 unsigned int num_values; in alloc_mixer_state() local
599 num_values = mixer_ctl_get_num_values(ctl); in alloc_mixer_state()
602 ar->mixer_state[i].num_values = num_values; in alloc_mixer_state()
612 ar->mixer_state[i].old_value.ptr = calloc(num_values, value_sz); in alloc_mixer_state()
613 ar->mixer_state[i].new_value.ptr = calloc(num_values, value_sz); in alloc_mixer_state()
614 ar->mixer_state[i].reset_value.ptr = calloc(num_values, value_sz); in alloc_mixer_state()
619 mixer_ctl_get_array(ctl, ar->mixer_state[i].old_value.ptr, num_values); in alloc_mixer_state()
622 num_values * value_sz); in alloc_mixer_state()
655 unsigned int num_values = ar->mixer_state[i].num_values; in audio_route_update_mixer() local
668 for (j = 0; j < num_values; j++) { in audio_route_update_mixer()
675 for (j = 0; j < num_values; j++) { in audio_route_update_mixer()
683 for (j = 0; j < num_values; j++) { in audio_route_update_mixer()
694 mixer_ctl_set_array(ctl, ar->mixer_state[i].new_value.ptr, num_values); in audio_route_update_mixer()
698 num_values * value_sz); in audio_route_update_mixer()
718 ar->mixer_state[i].num_values * value_sz); in save_mixer_state()
736 ar->mixer_state[i].num_values * value_sz); in audio_route_reset()
823 for (j = 0; j < ms->num_values; j++) { in audio_route_update_path()
831 ms->num_values * value_sz); in audio_route_update_path()
834 mixer_ctl_set_array(ms->ctl, ms->new_value.bytes, ms->num_values); in audio_route_update_path()
835 memcpy(ms->old_value.bytes, ms->new_value.bytes, ms->num_values * value_sz); in audio_route_update_path()
845 ms->num_values * value_sz); in audio_route_update_path()
850 ms->num_values * value_sz); in audio_route_update_path()
859 ms->num_values * value_sz); in audio_route_update_path()
862 mixer_ctl_set_array(ms->ctl, ms->new_value.integer, ms->num_values); in audio_route_update_path()
863 memcpy(ms->old_value.integer, ms->new_value.integer, ms->num_values * value_sz); in audio_route_update_path()