Lines Matching refs:mixer_path
64 struct mixer_path { struct
78 struct mixer_path *mixer_path; member
83 struct mixer_path *path;
128 static void path_print(struct audio_route *ar, struct mixer_path *path)
157 free(ar->mixer_path[i].name); in path_free()
158 if (ar->mixer_path[i].setting) { in path_free()
160 for (j = 0; j < ar->mixer_path[i].length; j++) { in path_free()
161 free(ar->mixer_path[i].setting[j].value.ptr); in path_free()
163 free(ar->mixer_path[i].setting); in path_free()
164 ar->mixer_path[i].size = 0; in path_free()
165 ar->mixer_path[i].length = 0; in path_free()
166 ar->mixer_path[i].setting = NULL; in path_free()
169 free(ar->mixer_path); in path_free()
170 ar->mixer_path = NULL; in path_free()
175 static struct mixer_path *path_get_by_name(struct audio_route *ar, in path_get_by_name()
181 if (strcmp(ar->mixer_path[i].name, name) == 0) in path_get_by_name()
182 return &ar->mixer_path[i]; in path_get_by_name()
187 static struct mixer_path *path_create(struct audio_route *ar, const char *name) in path_create()
189 struct mixer_path *new_mixer_path = NULL; in path_create()
203 new_mixer_path = realloc(ar->mixer_path, ar->mixer_path_size * in path_create()
204 sizeof(struct mixer_path)); in path_create()
209 ar->mixer_path = new_mixer_path; in path_create()
214 ar->mixer_path[ar->num_mixer_paths].name = strdup(name); in path_create()
215 ar->mixer_path[ar->num_mixer_paths].size = 0; in path_create()
216 ar->mixer_path[ar->num_mixer_paths].length = 0; in path_create()
217 ar->mixer_path[ar->num_mixer_paths].setting = NULL; in path_create()
220 return &ar->mixer_path[ar->num_mixer_paths++]; in path_create()
223 static int find_ctl_index_in_path(struct mixer_path *path, in find_ctl_index_in_path()
235 static int alloc_path_setting(struct mixer_path *path) in alloc_path_setting()
263 static int path_add_setting(struct audio_route *ar, struct mixer_path *path, in path_add_setting()
299 static int path_add_value(struct audio_route *ar, struct mixer_path *path, in path_add_value()
369 static int path_add_path(struct audio_route *ar, struct mixer_path *path, in path_add_path()
370 struct mixer_path *sub_path) in path_add_path()
381 static int path_apply(struct audio_route *ar, struct mixer_path *path) in path_apply()
403 static int path_reset(struct audio_route *ar, struct mixer_path *path) in path_reset()
490 struct mixer_path *sub_path = path_get_by_name(ar, attr_name); in start_tag()
743 struct mixer_path *path; in audio_route_apply_path()
764 struct mixer_path *path; in audio_route_reset_path()
788 struct mixer_path *path; in audio_route_update_path()
906 ar->mixer_path = NULL; in audio_route_init()