Lines Matching refs:mixer_path
55 struct mixer_path {
69 struct mixer_path *mixer_path;
74 struct mixer_path *path;
98 static void path_print(struct audio_route *ar, struct mixer_path *path)
118 if (ar->mixer_path[i].name)
119 free(ar->mixer_path[i].name);
120 if (ar->mixer_path[i].setting) {
121 if (ar->mixer_path[i].setting->value)
122 free(ar->mixer_path[i].setting->value);
123 free(ar->mixer_path[i].setting);
126 free(ar->mixer_path);
129 static struct mixer_path *path_get_by_name(struct audio_route *ar,
135 if (strcmp(ar->mixer_path[i].name, name) == 0)
136 return &ar->mixer_path[i];
141 static struct mixer_path *path_create(struct audio_route *ar, const char *name)
143 struct mixer_path *new_mixer_path = NULL;
157 new_mixer_path = realloc(ar->mixer_path, ar->mixer_path_size *
158 sizeof(struct mixer_path));
163 ar->mixer_path = new_mixer_path;
168 ar->mixer_path[ar->num_mixer_paths].name = strdup(name);
169 ar->mixer_path[ar->num_mixer_paths].size = 0;
170 ar->mixer_path[ar->num_mixer_paths].length = 0;
171 ar->mixer_path[ar->num_mixer_paths].setting = NULL;
174 return &ar->mixer_path[ar->num_mixer_paths++];
177 static int find_ctl_index_in_path(struct mixer_path *path,
189 static int alloc_path_setting(struct mixer_path *path)
217 static int path_add_setting(struct audio_route *ar, struct mixer_path *path,
244 static int path_add_value(struct audio_route *ar, struct mixer_path *path,
288 static int path_add_path(struct audio_route *ar, struct mixer_path *path,
289 struct mixer_path *sub_path)
300 static int path_apply(struct audio_route *ar, struct mixer_path *path)
322 static int path_reset(struct audio_route *ar, struct mixer_path *path)
396 struct mixer_path *sub_path = path_get_by_name(ar, attr_name);
608 struct mixer_path *path;
629 struct mixer_path *path;
653 struct mixer_path *path;
737 ar->mixer_path = NULL;