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);
217 unsigned int ctl_index) in find_ctl_index_in_path() argument
222 if (path->setting[i].ctl_index == ctl_index) in find_ctl_index_in_path()
261 if (find_ctl_index_in_path(path, setting->ctl_index) != -1) { in path_add_setting()
262 struct mixer_ctl *ctl = index_to_ctl(ar, setting->ctl_index); in path_add_setting()
278 path->setting[path_index].ctl_index = setting->ctl_index; in path_add_setting()
301 ctl = index_to_ctl(ar, mixer_value->ctl_index); in path_add_value()
309 path_index = find_ctl_index_in_path(path, mixer_value->ctl_index); in path_add_value()
323 path->setting[path_index].ctl_index = mixer_value->ctl_index; in path_add_value()
377 unsigned int ctl_index; in path_apply() local
382 ctl_index = path->setting[i].ctl_index; in path_apply()
383 ctl = index_to_ctl(ar, ctl_index); in path_apply()
388 memcpy(ar->mixer_state[ctl_index].new_value.ptr, path->setting[i].value.ptr, in path_apply()
398 unsigned int ctl_index; in path_reset() local
403 ctl_index = path->setting[i].ctl_index; in path_reset()
404 ctl = index_to_ctl(ar, ctl_index); in path_reset()
410 memcpy(ar->mixer_state[ctl_index].new_value.ptr, in path_reset()
411 ar->mixer_state[ctl_index].reset_value.ptr, in path_reset()
412 ar->mixer_state[ctl_index].num_values * value_sz); in path_reset()
452 unsigned int ctl_index; in start_tag() local
514 for (ctl_index = 0; ctl_index < ar->num_mixer_ctls; ctl_index++) { in start_tag()
515 if (ar->mixer_state[ctl_index].ctl == ctl) in start_tag()
528 if (id < ar->mixer_state[ctl_index].num_values) in start_tag()
530 ar->mixer_state[ctl_index].new_value.bytes[id] = value; in start_tag()
532 ar->mixer_state[ctl_index].new_value.enumerated[id] = value; in start_tag()
534 ar->mixer_state[ctl_index].new_value.integer[id] = value; in start_tag()
540 for (i = 0; i < ar->mixer_state[ctl_index].num_values; i++) in start_tag()
542 ar->mixer_state[ctl_index].new_value.bytes[i] = value; in start_tag()
544 ar->mixer_state[ctl_index].new_value.enumerated[i] = value; in start_tag()
546 ar->mixer_state[ctl_index].new_value.integer[i] = value; in start_tag()
551 mixer_value.ctl_index = ctl_index; in start_tag()
794 unsigned int ctl_index; in audio_route_update_path() local
797 ctl_index = path->setting[i].ctl_index; in audio_route_update_path()
799 struct mixer_state * ms = &ar->mixer_state[ctl_index]; in audio_route_update_path()