Lines Matching refs:num_values

44     unsigned int num_values;  member
52 unsigned int num_values; member
138 for (j = 0; j < path->setting[i].num_values; j++)
141 for (j = 0; j < path->setting[i].num_values; j++)
144 for (j = 0; j < path->setting[i].num_values; j++)
280 path->setting[path_index].num_values = setting->num_values; in path_add_setting()
284 path->setting[path_index].value.ptr = calloc(setting->num_values, value_sz); in path_add_setting()
287 setting->num_values * value_sz); in path_add_setting()
297 unsigned int num_values; in path_add_value() local
302 num_values = mixer_ctl_get_num_values(ctl); in path_add_value()
303 if (mixer_value->index >= (int)num_values) { in path_add_value()
324 path->setting[path_index].num_values = num_values; in path_add_value()
328 path->setting[path_index].value.ptr = calloc(num_values, value_sz); in path_add_value()
340 for (i = 0; i < num_values; i++) in path_add_value()
343 for (i = 0; i < num_values; i++) in path_add_value()
346 for (i = 0; i < num_values; i++) in path_add_value()
389 path->setting[i].num_values * value_sz); in path_apply()
412 ar->mixer_state[ctl_index].num_values * value_sz); in path_reset()
422 unsigned int num_values = mixer_ctl_get_num_enums(ctl); in mixer_enum_string_to_value() local
431 for (i = 0; i < num_values; i++) { in mixer_enum_string_to_value()
435 if (i == num_values) { in mixer_enum_string_to_value()
528 if (id < ar->mixer_state[ctl_index].num_values) in start_tag()
540 for (i = 0; i < ar->mixer_state[ctl_index].num_values; i++) in start_tag()
576 unsigned int num_values; in alloc_mixer_state() local
587 num_values = mixer_ctl_get_num_values(ctl); in alloc_mixer_state()
590 ar->mixer_state[i].num_values = num_values; in alloc_mixer_state()
599 ar->mixer_state[i].old_value.ptr = calloc(num_values, value_sz); in alloc_mixer_state()
600 ar->mixer_state[i].new_value.ptr = calloc(num_values, value_sz); in alloc_mixer_state()
601 ar->mixer_state[i].reset_value.ptr = calloc(num_values, value_sz); in alloc_mixer_state()
606 mixer_ctl_get_array(ctl, ar->mixer_state[i].old_value.ptr, num_values); in alloc_mixer_state()
609 num_values * value_sz); in alloc_mixer_state()
642 unsigned int num_values = ar->mixer_state[i].num_values; in audio_route_update_mixer() local
655 for (j = 0; j < num_values; j++) { in audio_route_update_mixer()
662 for (j = 0; j < num_values; j++) { in audio_route_update_mixer()
670 for (j = 0; j < num_values; j++) { in audio_route_update_mixer()
681 mixer_ctl_set_array(ctl, ar->mixer_state[i].new_value.ptr, num_values); in audio_route_update_mixer()
685 num_values * value_sz); in audio_route_update_mixer()
705 ar->mixer_state[i].num_values * value_sz); in save_mixer_state()
723 ar->mixer_state[i].num_values * value_sz); in audio_route_reset()
808 for (j = 0; j < ms->num_values; j++) { in audio_route_update_path()
811 mixer_ctl_set_array(ms->ctl, ms->new_value.bytes, ms->num_values); in audio_route_update_path()
812 memcpy(ms->old_value.bytes, ms->new_value.bytes, ms->num_values * value_sz); in audio_route_update_path()
819 ms->num_values * value_sz); in audio_route_update_path()
823 mixer_ctl_set_array(ms->ctl, ms->new_value.integer, ms->num_values); in audio_route_update_path()
824 memcpy(ms->old_value.integer, ms->new_value.integer, ms->num_values * value_sz); in audio_route_update_path()