Lines Matching refs:mixer_path

77 struct mixer_path {  struct
91 struct mixer_path *mixer_path; argument
96 struct mixer_path *path;
141 static void path_print(struct audio_route *ar, struct mixer_path *path)
170 free(ar->mixer_path[i].name); in path_free()
171 if (ar->mixer_path[i].setting) { in path_free()
173 for (j = 0; j < ar->mixer_path[i].length; j++) { in path_free()
174 free(ar->mixer_path[i].setting[j].value.ptr); in path_free()
176 free(ar->mixer_path[i].setting); in path_free()
177 ar->mixer_path[i].size = 0; in path_free()
178 ar->mixer_path[i].length = 0; in path_free()
179 ar->mixer_path[i].setting = NULL; in path_free()
182 free(ar->mixer_path); in path_free()
183 ar->mixer_path = NULL; in path_free()
188 static struct mixer_path *path_get_by_name(struct audio_route *ar, in path_get_by_name()
194 if (strcmp(ar->mixer_path[i].name, name) == 0) in path_get_by_name()
195 return &ar->mixer_path[i]; in path_get_by_name()
200 static struct mixer_path *path_create(struct audio_route *ar, const char *name) in path_create()
202 struct mixer_path *new_mixer_path = NULL; in path_create()
216 new_mixer_path = realloc(ar->mixer_path, ar->mixer_path_size * in path_create()
217 sizeof(struct mixer_path)); in path_create()
222 ar->mixer_path = new_mixer_path; in path_create()
227 ar->mixer_path[ar->num_mixer_paths].name = strdup(name); in path_create()
228 ar->mixer_path[ar->num_mixer_paths].size = 0; in path_create()
229 ar->mixer_path[ar->num_mixer_paths].length = 0; in path_create()
230 ar->mixer_path[ar->num_mixer_paths].setting = NULL; in path_create()
233 return &ar->mixer_path[ar->num_mixer_paths++]; in path_create()
236 static int find_ctl_index_in_path(struct mixer_path *path, in find_ctl_index_in_path()
248 static int alloc_path_setting(struct mixer_path *path) in alloc_path_setting()
276 static int path_add_setting(struct audio_route *ar, struct mixer_path *path, in path_add_setting()
312 static int path_add_value(struct audio_route *ar, struct mixer_path *path, in path_add_value()
385 static int path_add_path(struct audio_route *ar, struct mixer_path *path, in path_add_path()
386 struct mixer_path *sub_path) in path_add_path()
397 static int path_apply(struct audio_route *ar, struct mixer_path *path) in path_apply()
419 static int path_reset(struct audio_route *ar, struct mixer_path *path) in path_reset()
507 struct mixer_path *sub_path = path_get_by_name(ar, attr_name); in start_tag()
806 struct mixer_path *path; in audio_route_apply_path()
827 struct mixer_path *path; in audio_route_reset_path()
851 struct mixer_path *path; in audio_route_update_path()
983 ar->mixer_path = NULL; in audio_route_init()