Lines Matching refs:ctl_index
52 unsigned int ctl_index; member
59 unsigned int ctl_index; member
122 unsigned int ctl_index) in index_to_ctl() argument
124 return ar->mixer_state[ctl_index].ctl; in index_to_ctl()
135 struct mixer_ctl *ctl = index_to_ctl(ar, path->setting[i].ctl_index);
224 unsigned int ctl_index) in find_ctl_index_in_path() argument
229 if (path->setting[i].ctl_index == ctl_index) in find_ctl_index_in_path()
268 if (find_ctl_index_in_path(path, setting->ctl_index) != -1) { in path_add_setting()
269 struct mixer_ctl *ctl = index_to_ctl(ar, setting->ctl_index); in path_add_setting()
285 path->setting[path_index].ctl_index = setting->ctl_index; in path_add_setting()
308 ctl = index_to_ctl(ar, mixer_value->ctl_index); in path_add_value()
316 path_index = find_ctl_index_in_path(path, mixer_value->ctl_index); in path_add_value()
330 path->setting[path_index].ctl_index = mixer_value->ctl_index; in path_add_value()
384 unsigned int ctl_index; in path_apply() local
390 ctl_index = path->setting[i].ctl_index; in path_apply()
391 ctl = index_to_ctl(ar, ctl_index); in path_apply()
396 memcpy(ar->mixer_state[ctl_index].new_value.ptr, path->setting[i].value.ptr, in path_apply()
406 unsigned int ctl_index; in path_reset() local
412 ctl_index = path->setting[i].ctl_index; in path_reset()
413 ctl = index_to_ctl(ar, ctl_index); in path_reset()
419 memcpy(ar->mixer_state[ctl_index].new_value.ptr, in path_reset()
420 ar->mixer_state[ctl_index].reset_value.ptr, in path_reset()
421 ar->mixer_state[ctl_index].num_values * value_sz); in path_reset()
461 unsigned int ctl_index; in start_tag() local
525 for (ctl_index = 0; ctl_index < ar->num_mixer_ctls; ctl_index++) { in start_tag()
526 if (ar->mixer_state[ctl_index].ctl == ctl) in start_tag()
539 if (id < ar->mixer_state[ctl_index].num_values) in start_tag()
541 ar->mixer_state[ctl_index].new_value.bytes[id] = value; in start_tag()
543 ar->mixer_state[ctl_index].new_value.enumerated[id] = value; in start_tag()
545 ar->mixer_state[ctl_index].new_value.integer[id] = value; in start_tag()
551 for (i = 0; i < ar->mixer_state[ctl_index].num_values; i++) in start_tag()
553 ar->mixer_state[ctl_index].new_value.bytes[i] = value; in start_tag()
555 ar->mixer_state[ctl_index].new_value.enumerated[i] = value; in start_tag()
557 ar->mixer_state[ctl_index].new_value.integer[i] = value; in start_tag()
562 mixer_value.ctl_index = ctl_index; in start_tag()
803 unsigned int ctl_index; in audio_route_update_path() local
806 ctl_index = path->setting[reverse ? path->length - 1 - i : i].ctl_index; in audio_route_update_path()
808 struct mixer_state * ms = &ar->mixer_state[ctl_index]; in audio_route_update_path()