Lines Matching refs:ctl
36 struct mixer_ctl *ctl; member
48 struct mixer_ctl *ctl; member
56 struct mixer_ctl *ctl; member
94 mixer_ctl_get_name(path->setting[i].ctl), in path_print()
165 static int find_ctl_in_path(struct mixer_path *path, struct mixer_ctl *ctl) in find_ctl_in_path() argument
170 if (path->setting[i].ctl == ctl) in find_ctl_in_path()
210 if (find_ctl_in_path(path, setting->ctl) != -1) { in path_add_setting()
212 mixer_ctl_get_name(setting->ctl), path->name); in path_add_setting()
220 path->setting[path_index].ctl = setting->ctl; in path_add_setting()
242 num_values = mixer_ctl_get_num_values(mixer_value->ctl); in path_add_value()
245 mixer_ctl_get_name(mixer_value->ctl)); in path_add_value()
249 path_index = find_ctl_in_path(path, mixer_value->ctl); in path_add_value()
258 path->setting[path_index].ctl = mixer_value->ctl; in path_add_value()
302 struct mixer_ctl *ctl = path->setting[i].ctl; in path_apply() local
306 if (ar->mixer_state[ctl_index].ctl == ctl) in path_apply()
328 struct mixer_ctl *ctl = path->setting[i].ctl; in path_reset() local
332 if (ar->mixer_state[ctl_index].ctl == ctl) in path_reset()
349 static int mixer_enum_string_to_value(struct mixer_ctl *ctl, const char *string) in mixer_enum_string_to_value() argument
354 for (i = 0; i < mixer_ctl_get_num_enums(ctl); i++) { in mixer_enum_string_to_value()
355 if (strcmp(mixer_ctl_get_enum_string(ctl, i), string) == 0) in mixer_enum_string_to_value()
372 struct mixer_ctl *ctl; in start_tag() local
405 ctl = mixer_get_ctl_by_name(ar->mixer, attr_name); in start_tag()
406 switch (mixer_ctl_get_type(ctl)) { in start_tag()
412 value = mixer_enum_string_to_value(ctl, (char *)attr_value); in start_tag()
424 if (ar->mixer_state[ctl_index].ctl == ctl) in start_tag()
447 mixer_ctl_get_name(ctl)); in start_tag()
455 mixer_value.ctl = ctl; in start_tag()
480 struct mixer_ctl *ctl; in alloc_mixer_state() local
489 ctl = mixer_get_ctl(ar->mixer, i); in alloc_mixer_state()
490 num_values = mixer_ctl_get_num_values(ctl); in alloc_mixer_state()
502 ar->mixer_state[i].old_value[j] = mixer_ctl_get_value(ctl, j); in alloc_mixer_state()
514 ar->mixer_state[i].ctl = ctl; in alloc_mixer_state()
551 mixer_ctl_set_value(ar->mixer_state[i].ctl, j, in audio_route_update_mixer()
566 mixer_ctl_set_value(ar->mixer_state[i].ctl, j, in audio_route_update_mixer()