Home | History | Annotate | Download | only in audio_route

Lines Matching defs:setting

65     struct mixer_setting *setting;
94 mixer_ctl_get_name(path->setting[i].ctl),
95 path->setting[i].linked ? 'y' : 'n');
96 for (j = 0; j < path->setting[i].num_values; j++)
97 ALOGE(" id=%d value=%d", j, path->setting[i].value[j]);
108 if (ar->mixer_path[i].setting) {
109 if (ar->mixer_path[i].setting->value)
110 free(ar->mixer_path[i].setting->value);
111 free(ar->mixer_path[i].setting);
159 ar->mixer_path[ar->num_mixer_paths].setting = NULL;
170 if (path->setting[i].ctl == ctl)
188 new_path_setting = realloc(path->setting,
194 path->setting = new_path_setting;
205 struct mixer_setting *setting)
210 if (find_ctl_in_path(path, setting->ctl) != -1) {
212 mixer_ctl_get_name(setting->ctl), path->name);
220 path->setting[path_index].ctl = setting->ctl;
221 path->setting[path_index].num_values = setting->num_values;
222 path->setting[path_index].value = malloc(setting->num_values * sizeof(int));
223 path->setting[path_index].linked = setting->linked;
224 if (setting->linked) {
225 path->setting[path_index].value[0] = setting->value[0];
227 for (i = 0; i < setting->num_values; i++)
228 path->setting[path_index].value[i] = setting->value[i];
257 /* initialise the new path setting */
258 path->setting[path_index].ctl = mixer_value->ctl;
259 path->setting[path_index].num_values = num_values;
260 path->setting[path_index].value = malloc(num_values * sizeof(int));
261 path->setting[path_index].linked = true;
262 path->setting[path_index].value[0] = mixer_value->value;
267 path->setting[path_index].linked = true;
268 path->setting[path_index].value[0] = mixer_value->value;
270 if (path->setting[path_index].linked && (num_values > 1)) {
273 path->setting[path_index].value[i] =
274 path->setting[path_index].value[0];
276 path->setting[path_index].linked = false;
278 path->setting[path_index].value[mixer_value->index] = mixer_value->value;
289 if (path_add_setting(path, &sub_path->setting[i]) < 0)
302 struct mixer_ctl *ctl = path->setting[i].ctl;
311 ar->mixer_state[ctl_index].new_value[j] = path->setting[i].value[j];
312 if (path->setting[i].linked)
315 ar->mixer_state[ctl_index].new_linked = path->setting[i].linked;
328 struct mixer_ctl *ctl = path->setting[i].ctl;
420 /* top level ctl (initial setting) */