Lines Matching refs:tkn_elem

2070 		struct snd_soc_tplg_vendor_value_elem *tkn_elem)  in skl_tplg_add_pipe()  argument
2077 if (ppl->pipe->ppl_id == tkn_elem->value) { in skl_tplg_add_pipe()
2096 pipe->ppl_id = tkn_elem->value; in skl_tplg_add_pipe()
2122 struct snd_soc_tplg_vendor_value_elem *tkn_elem, in skl_tplg_fill_pin() argument
2128 switch (tkn_elem->token) { in skl_tplg_fill_pin()
2130 m_pin[pin_index].id.module_id = tkn_elem->value; in skl_tplg_fill_pin()
2134 m_pin[pin_index].id.instance_id = tkn_elem->value; in skl_tplg_fill_pin()
2139 (struct snd_soc_tplg_vendor_uuid_elem *)tkn_elem); in skl_tplg_fill_pin()
2146 dev_err(dev, "%d Not a pin token\n", tkn_elem->token); in skl_tplg_fill_pin()
2159 struct snd_soc_tplg_vendor_value_elem *tkn_elem, in skl_tplg_fill_pins_info() argument
2179 ret = skl_tplg_fill_pin(dev, tkn_elem, m_pin, pin_count); in skl_tplg_fill_pins_info()
2278 struct snd_soc_tplg_vendor_value_elem *tkn_elem, in skl_tplg_manifest_pin_res_tkn() argument
2297 switch (tkn_elem->token) { in skl_tplg_manifest_pin_res_tkn()
2299 m_pin->pin_index = tkn_elem->value; in skl_tplg_manifest_pin_res_tkn()
2303 m_pin->buf_size = tkn_elem->value; in skl_tplg_manifest_pin_res_tkn()
2307 dev_err(dev, "Invalid token: %d\n", tkn_elem->token); in skl_tplg_manifest_pin_res_tkn()
2319 struct snd_soc_tplg_vendor_value_elem *tkn_elem, in skl_tplg_fill_res_tkn() argument
2328 switch (tkn_elem->token) { in skl_tplg_fill_res_tkn()
2330 res->dma_buffer_size = tkn_elem->value; in skl_tplg_fill_res_tkn()
2334 res->cpc = tkn_elem->value; in skl_tplg_fill_res_tkn()
2338 res->is_pages = tkn_elem->value; in skl_tplg_fill_res_tkn()
2342 res->obs = tkn_elem->value; in skl_tplg_fill_res_tkn()
2346 res->ibs = tkn_elem->value; in skl_tplg_fill_res_tkn()
2351 ret = skl_tplg_manifest_pin_res_tkn(dev, tkn_elem, res, in skl_tplg_fill_res_tkn()
2363 dev_err(dev, "Not a res type token: %d", tkn_elem->token); in skl_tplg_fill_res_tkn()
2376 struct snd_soc_tplg_vendor_value_elem *tkn_elem, in skl_tplg_get_token() argument
2398 if (tkn_elem->token > SKL_TKN_MAX) in skl_tplg_get_token()
2401 switch (tkn_elem->token) { in skl_tplg_get_token()
2403 mconfig->module->max_input_pins = tkn_elem->value; in skl_tplg_get_token()
2407 mconfig->module->max_output_pins = tkn_elem->value; in skl_tplg_get_token()
2420 tkn_elem->value); in skl_tplg_get_token()
2433 tkn_elem->value); in skl_tplg_get_token()
2437 mconfig->time_slot = tkn_elem->value; in skl_tplg_get_token()
2441 mconfig->core_id = tkn_elem->value; in skl_tplg_get_token()
2445 mconfig->m_type = tkn_elem->value; in skl_tplg_get_token()
2449 mconfig->dev_type = tkn_elem->value; in skl_tplg_get_token()
2453 mconfig->hw_conn_type = tkn_elem->value; in skl_tplg_get_token()
2458 tkn_elem->value; in skl_tplg_get_token()
2465 ret = skl_tplg_fill_res_tkn(dev, tkn_elem, res, pin_index, dir); in skl_tplg_get_token()
2472 mconfig->vbus_id = tkn_elem->value; in skl_tplg_get_token()
2476 mconfig->params_fixup = tkn_elem->value; in skl_tplg_get_token()
2480 mconfig->converter = tkn_elem->value; in skl_tplg_get_token()
2484 mconfig->d0i3_caps = tkn_elem->value; in skl_tplg_get_token()
2489 mconfig, skl, tkn_elem); in skl_tplg_get_token()
2502 conf_idx = tkn_elem->value; in skl_tplg_get_token()
2513 tkn_elem->token, tkn_elem->value); in skl_tplg_get_token()
2526 tkn_elem->token, tkn_elem->value, in skl_tplg_get_token()
2534 mconfig->mod_cfg[conf_idx].res_idx = tkn_elem->value; in skl_tplg_get_token()
2538 mconfig->mod_cfg[conf_idx].fmt_idx = tkn_elem->value; in skl_tplg_get_token()
2547 dir = tkn_elem->value & SKL_IN_DIR_BIT_MASK; in skl_tplg_get_token()
2548 pin_index = (tkn_elem->value & in skl_tplg_get_token()
2561 ret = skl_tplg_widget_fill_fmt(dev, iface, tkn_elem->token, in skl_tplg_get_token()
2562 tkn_elem->value, dir, pin_index); in skl_tplg_get_token()
2573 mconfig, tkn_elem, dir, in skl_tplg_get_token()
2581 if (tkn_elem->value > SKL_MAX_PARAMS_TYPES) in skl_tplg_get_token()
2584 mconfig->fmt_cfg_idx = tkn_elem->value; in skl_tplg_get_token()
2589 tkn_elem->value; in skl_tplg_get_token()
2595 tkn_elem->value; in skl_tplg_get_token()
2600 tkn_elem->value; in skl_tplg_get_token()
2605 tkn_elem->value; in skl_tplg_get_token()
2610 mconfig->dma_buffer_size = tkn_elem->value; in skl_tplg_get_token()
2620 tkn_elem->token); in skl_tplg_get_token()
2638 struct snd_soc_tplg_vendor_value_elem *tkn_elem; in skl_tplg_get_tokens() local
2674 tkn_elem = array->value; in skl_tplg_get_tokens()
2680 ret = skl_tplg_get_token(dev, tkn_elem, in skl_tplg_get_tokens()
2687 tkn_elem++; in skl_tplg_get_tokens()
2690 tuple_size += tkn_count * sizeof(*tkn_elem); in skl_tplg_get_tokens()
2703 struct snd_soc_tplg_vendor_value_elem *tkn_elem; in skl_tplg_get_desc_blocks() local
2705 tkn_elem = array->value; in skl_tplg_get_desc_blocks()
2707 switch (tkn_elem->token) { in skl_tplg_get_desc_blocks()
2711 return tkn_elem->value; in skl_tplg_get_desc_blocks()
2714 dev_err(dev, "Invalid descriptor token %d\n", tkn_elem->token); in skl_tplg_get_desc_blocks()
3239 struct snd_soc_tplg_vendor_value_elem *tkn_elem, in skl_tplg_manifest_fill_fmt() argument
3265 switch (tkn_elem->token) { in skl_tplg_manifest_fill_fmt()
3267 dst_fmt->id = tkn_elem->value; in skl_tplg_manifest_fill_fmt()
3271 ret = skl_tplg_fill_fmt(dev, mod_fmt, tkn_elem->token, in skl_tplg_manifest_fill_fmt()
3272 tkn_elem->value); in skl_tplg_manifest_fill_fmt()
3282 struct snd_soc_tplg_vendor_value_elem *tkn_elem, in skl_tplg_fill_mod_info() argument
3289 switch (tkn_elem->token) { in skl_tplg_fill_mod_info()
3291 mod->input_pin_type = tkn_elem->value; in skl_tplg_fill_mod_info()
3295 mod->output_pin_type = tkn_elem->value; in skl_tplg_fill_mod_info()
3299 mod->max_input_pins = tkn_elem->value; in skl_tplg_fill_mod_info()
3303 mod->max_output_pins = tkn_elem->value; in skl_tplg_fill_mod_info()
3307 mod->nr_resources = tkn_elem->value; in skl_tplg_fill_mod_info()
3311 mod->nr_interfaces = tkn_elem->value; in skl_tplg_fill_mod_info()
3315 dev_err(dev, "Invalid mod info token %d", tkn_elem->token); in skl_tplg_fill_mod_info()
3324 struct snd_soc_tplg_vendor_value_elem *tkn_elem, in skl_tplg_get_int_tkn() argument
3343 switch (tkn_elem->token) { in skl_tplg_get_int_tkn()
3345 skl->lib_count = tkn_elem->value; in skl_tplg_get_int_tkn()
3349 skl->nr_modules = tkn_elem->value; in skl_tplg_get_int_tkn()
3364 mod_idx = tkn_elem->value; in skl_tplg_get_int_tkn()
3373 if (tkn_elem->value > SKL_MAX_ASTATE_CFG) { in skl_tplg_get_int_tkn()
3375 tkn_elem->value); in skl_tplg_get_int_tkn()
3380 tkn_elem->value); in skl_tplg_get_int_tkn()
3386 count = skl->cfg.astate_cfg->count = tkn_elem->value; in skl_tplg_get_int_tkn()
3390 if (tkn_elem->value >= count) { in skl_tplg_get_int_tkn()
3392 tkn_elem->value); in skl_tplg_get_int_tkn()
3396 astate_cfg_idx = tkn_elem->value; in skl_tplg_get_int_tkn()
3400 astate_table[astate_cfg_idx].kcps = tkn_elem->value; in skl_tplg_get_int_tkn()
3404 astate_table[astate_cfg_idx].clk_src = tkn_elem->value; in skl_tplg_get_int_tkn()
3413 ret = skl_tplg_fill_mod_info(dev, tkn_elem, mod); in skl_tplg_get_int_tkn()
3419 dir = tkn_elem->value & SKL_IN_DIR_BIT_MASK; in skl_tplg_get_int_tkn()
3420 pin_idx = (tkn_elem->value & SKL_PIN_COUNT_MASK) >> 4; in skl_tplg_get_int_tkn()
3427 res->id = tkn_elem->value; in skl_tplg_get_int_tkn()
3428 res_val_idx = tkn_elem->value; in skl_tplg_get_int_tkn()
3435 fmt->fmt_idx = tkn_elem->value; in skl_tplg_get_int_tkn()
3436 intf_val_idx = tkn_elem->value; in skl_tplg_get_int_tkn()
3447 ret = skl_tplg_fill_res_tkn(dev, tkn_elem, res, pin_idx, dir); in skl_tplg_get_int_tkn()
3457 res->nr_input_pins = tkn_elem->value; in skl_tplg_get_int_tkn()
3464 res->nr_output_pins = tkn_elem->value; in skl_tplg_get_int_tkn()
3476 ret = skl_tplg_manifest_fill_fmt(dev, fmt, tkn_elem, in skl_tplg_get_int_tkn()
3483 dev_err(dev, "Not a manifest token %d\n", tkn_elem->token); in skl_tplg_get_int_tkn()
3503 struct snd_soc_tplg_vendor_value_elem *tkn_elem; in skl_tplg_get_manifest_tkn() local
3540 tkn_elem = array->value; in skl_tplg_get_manifest_tkn()
3547 tkn_elem, skl); in skl_tplg_get_manifest_tkn()
3552 tkn_elem++; in skl_tplg_get_manifest_tkn()
3554 tuple_size += (tkn_count * sizeof(*tkn_elem)); in skl_tplg_get_manifest_tkn()