Lines Matching refs:path_index

232     int path_index;  in alloc_path_setting()  local
251 path_index = path->length; in alloc_path_setting()
254 return path_index; in alloc_path_setting()
260 int path_index; in path_add_setting() local
275 path_index = alloc_path_setting(path); in path_add_setting()
276 if (path_index < 0) in path_add_setting()
279 path->setting[path_index].ctl_index = setting->ctl_index; in path_add_setting()
280 path->setting[path_index].type = setting->type; in path_add_setting()
281 path->setting[path_index].num_values = setting->num_values; in path_add_setting()
285 path->setting[path_index].value.ptr = calloc(setting->num_values, value_sz); in path_add_setting()
287 memcpy(path->setting[path_index].value.ptr, setting->value.ptr, in path_add_setting()
297 int path_index; in path_add_value() local
310 path_index = find_ctl_index_in_path(path, mixer_value->ctl_index); in path_add_value()
311 if (path_index < 0) { in path_add_value()
319 path_index = alloc_path_setting(path); in path_add_value()
320 if (path_index < 0) in path_add_value()
324 path->setting[path_index].ctl_index = mixer_value->ctl_index; in path_add_value()
325 path->setting[path_index].num_values = num_values; in path_add_value()
326 path->setting[path_index].type = type; in path_add_value()
329 path->setting[path_index].value.ptr = calloc(num_values, value_sz); in path_add_value()
330 if (path->setting[path_index].type == MIXER_CTL_TYPE_BYTE) in path_add_value()
331 path->setting[path_index].value.bytes[0] = mixer_value->value; in path_add_value()
332 else if (path->setting[path_index].type == MIXER_CTL_TYPE_ENUM) in path_add_value()
333 path->setting[path_index].value.enumerated[0] = mixer_value->value; in path_add_value()
335 path->setting[path_index].value.integer[0] = mixer_value->value; in path_add_value()
340 if (path->setting[path_index].type == MIXER_CTL_TYPE_BYTE) { in path_add_value()
342 path->setting[path_index].value.bytes[i] = mixer_value->value; in path_add_value()
343 } else if (path->setting[path_index].type == MIXER_CTL_TYPE_ENUM) { in path_add_value()
345 path->setting[path_index].value.enumerated[i] = mixer_value->value; in path_add_value()
348 path->setting[path_index].value.integer[i] = mixer_value->value; in path_add_value()
352 if (path->setting[path_index].type == MIXER_CTL_TYPE_BYTE) in path_add_value()
353 path->setting[path_index].value.bytes[mixer_value->index] = mixer_value->value; in path_add_value()
354 else if (path->setting[path_index].type == MIXER_CTL_TYPE_ENUM) in path_add_value()
355 path->setting[path_index].value.enumerated[mixer_value->index] = mixer_value->value; in path_add_value()
357 path->setting[path_index].value.integer[mixer_value->index] = mixer_value->value; in path_add_value()