• Home
  • Raw
  • Download

Lines Matching refs:setting

68     struct mixer_setting *setting;  member
135 struct mixer_ctl *ctl = index_to_ctl(ar, path->setting[i].ctl_index);
139 for (j = 0; j < path->setting[i].num_values; j++)
140 ALOGE(" id=%d value=0x%02x", j, path->setting[i].value.bytes[j]);
142 for (j = 0; j < path->setting[i].num_values; j++)
143 ALOGE(" id=%d value=%d", j, path->setting[i].value.enumerated[j]);
145 for (j = 0; j < path->setting[i].num_values; j++)
146 ALOGE(" id=%d value=%ld", j, path->setting[i].value.integer[j]);
158 if (ar->mixer_path[i].setting) { 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()
166 ar->mixer_path[i].setting = NULL; in path_free()
217 ar->mixer_path[ar->num_mixer_paths].setting = NULL; in path_create()
229 if (path->setting[i].ctl_index == ctl_index) in find_ctl_index_in_path()
247 new_path_setting = realloc(path->setting, in alloc_path_setting()
253 path->setting = new_path_setting; in alloc_path_setting()
264 struct mixer_setting *setting) in path_add_setting() argument
268 if (find_ctl_index_in_path(path, setting->ctl_index) != -1) { in path_add_setting()
269 struct mixer_ctl *ctl = index_to_ctl(ar, setting->ctl_index); in path_add_setting()
276 if (!is_supported_ctl_type(setting->type)) { in path_add_setting()
277 ALOGE("unsupported type %d", (int)setting->type); in path_add_setting()
285 path->setting[path_index].ctl_index = setting->ctl_index; in path_add_setting()
286 path->setting[path_index].type = setting->type; in path_add_setting()
287 path->setting[path_index].num_values = setting->num_values; in path_add_setting()
289 size_t value_sz = sizeof_ctl_type(setting->type); in path_add_setting()
291 path->setting[path_index].value.ptr = calloc(setting->num_values, value_sz); in path_add_setting()
293 memcpy(path->setting[path_index].value.ptr, setting->value.ptr, in path_add_setting()
294 setting->num_values * value_sz); in path_add_setting()
330 path->setting[path_index].ctl_index = mixer_value->ctl_index; in path_add_value()
331 path->setting[path_index].num_values = num_values; in path_add_value()
332 path->setting[path_index].type = type; in path_add_value()
335 path->setting[path_index].value.ptr = calloc(num_values, value_sz); in path_add_value()
336 if (path->setting[path_index].type == MIXER_CTL_TYPE_BYTE) in path_add_value()
337 path->setting[path_index].value.bytes[0] = mixer_value->value; in path_add_value()
338 else if (path->setting[path_index].type == MIXER_CTL_TYPE_ENUM) in path_add_value()
339 path->setting[path_index].value.enumerated[0] = mixer_value->value; in path_add_value()
341 path->setting[path_index].value.integer[0] = mixer_value->value; in path_add_value()
346 if (path->setting[path_index].type == MIXER_CTL_TYPE_BYTE) { in path_add_value()
348 path->setting[path_index].value.bytes[i] = mixer_value->value; in path_add_value()
349 } else if (path->setting[path_index].type == MIXER_CTL_TYPE_ENUM) { in path_add_value()
351 path->setting[path_index].value.enumerated[i] = mixer_value->value; in path_add_value()
354 path->setting[path_index].value.integer[i] = mixer_value->value; in path_add_value()
358 if (path->setting[path_index].type == MIXER_CTL_TYPE_BYTE) in path_add_value()
359 path->setting[path_index].value.bytes[mixer_value->index] = mixer_value->value; in path_add_value()
360 else if (path->setting[path_index].type == MIXER_CTL_TYPE_ENUM) in path_add_value()
361 path->setting[path_index].value.enumerated[mixer_value->index] = mixer_value->value; in path_add_value()
363 path->setting[path_index].value.integer[mixer_value->index] = mixer_value->value; in path_add_value()
375 if (path_add_setting(ar, path, &sub_path->setting[i]) < 0) in path_add_path()
390 ctl_index = path->setting[i].ctl_index; in path_apply()
396 memcpy(ar->mixer_state[ctl_index].new_value.ptr, path->setting[i].value.ptr, in path_apply()
397 path->setting[i].num_values * value_sz); in path_apply()
412 ctl_index = path->setting[i].ctl_index; in path_reset()
806 ctl_index = path->setting[reverse ? path->length - 1 - i : i].ctl_index; in audio_route_update_path()