Lines Matching refs:ctl_index

51     unsigned int ctl_index;  member
58 unsigned int ctl_index; member
121 unsigned int ctl_index) in index_to_ctl() argument
123 return ar->mixer_state[ctl_index].ctl; in index_to_ctl()
134 struct mixer_ctl *ctl = index_to_ctl(ar, path->setting[i].ctl_index);
218 unsigned int ctl_index) in find_ctl_index_in_path() argument
223 if (path->setting[i].ctl_index == ctl_index) in find_ctl_index_in_path()
262 if (find_ctl_index_in_path(path, setting->ctl_index) != -1) { in path_add_setting()
263 struct mixer_ctl *ctl = index_to_ctl(ar, setting->ctl_index); in path_add_setting()
279 path->setting[path_index].ctl_index = setting->ctl_index; in path_add_setting()
302 ctl = index_to_ctl(ar, mixer_value->ctl_index); in path_add_value()
310 path_index = find_ctl_index_in_path(path, mixer_value->ctl_index); in path_add_value()
324 path->setting[path_index].ctl_index = mixer_value->ctl_index; in path_add_value()
378 unsigned int ctl_index; in path_apply() local
383 ctl_index = path->setting[i].ctl_index; in path_apply()
384 ctl = index_to_ctl(ar, ctl_index); in path_apply()
389 memcpy(ar->mixer_state[ctl_index].new_value.ptr, path->setting[i].value.ptr, in path_apply()
399 unsigned int ctl_index; in path_reset() local
404 ctl_index = path->setting[i].ctl_index; in path_reset()
405 ctl = index_to_ctl(ar, ctl_index); in path_reset()
411 memcpy(ar->mixer_state[ctl_index].new_value.ptr, in path_reset()
412 ar->mixer_state[ctl_index].reset_value.ptr, in path_reset()
413 ar->mixer_state[ctl_index].num_values * value_sz); in path_reset()
442 unsigned int ctl_index; in start_tag() local
500 for (ctl_index = 0; ctl_index < ar->num_mixer_ctls; ctl_index++) { in start_tag()
501 if (ar->mixer_state[ctl_index].ctl == ctl) in start_tag()
514 if (id < ar->mixer_state[ctl_index].num_values) in start_tag()
516 ar->mixer_state[ctl_index].new_value.bytes[id] = value; in start_tag()
518 ar->mixer_state[ctl_index].new_value.enumerated[id] = value; in start_tag()
520 ar->mixer_state[ctl_index].new_value.integer[id] = value; in start_tag()
526 for (i = 0; i < ar->mixer_state[ctl_index].num_values; i++) in start_tag()
528 ar->mixer_state[ctl_index].new_value.bytes[i] = value; in start_tag()
530 ar->mixer_state[ctl_index].new_value.enumerated[i] = value; in start_tag()
532 ar->mixer_state[ctl_index].new_value.integer[i] = value; in start_tag()
537 mixer_value.ctl_index = ctl_index; in start_tag()
780 unsigned int ctl_index; in audio_route_update_path() local
783 ctl_index = path->setting[i].ctl_index; in audio_route_update_path()
785 struct mixer_state * ms = &ar->mixer_state[ctl_index]; in audio_route_update_path()