Lines Matching refs:tkn_elem

2063 		struct snd_soc_tplg_vendor_value_elem *tkn_elem)  in skl_tplg_add_pipe()  argument
2070 if (ppl->pipe->ppl_id == tkn_elem->value) { in skl_tplg_add_pipe()
2089 pipe->ppl_id = tkn_elem->value; in skl_tplg_add_pipe()
2115 struct snd_soc_tplg_vendor_value_elem *tkn_elem, in skl_tplg_fill_pin() argument
2121 switch (tkn_elem->token) { in skl_tplg_fill_pin()
2123 m_pin[pin_index].id.module_id = tkn_elem->value; in skl_tplg_fill_pin()
2127 m_pin[pin_index].id.instance_id = tkn_elem->value; in skl_tplg_fill_pin()
2132 (struct snd_soc_tplg_vendor_uuid_elem *)tkn_elem); in skl_tplg_fill_pin()
2139 dev_err(dev, "%d Not a pin token\n", tkn_elem->token); in skl_tplg_fill_pin()
2152 struct snd_soc_tplg_vendor_value_elem *tkn_elem, in skl_tplg_fill_pins_info() argument
2172 ret = skl_tplg_fill_pin(dev, tkn_elem, m_pin, pin_count); in skl_tplg_fill_pins_info()
2271 struct snd_soc_tplg_vendor_value_elem *tkn_elem, in skl_tplg_manifest_pin_res_tkn() argument
2290 switch (tkn_elem->token) { in skl_tplg_manifest_pin_res_tkn()
2292 m_pin->pin_index = tkn_elem->value; in skl_tplg_manifest_pin_res_tkn()
2296 m_pin->buf_size = tkn_elem->value; in skl_tplg_manifest_pin_res_tkn()
2300 dev_err(dev, "Invalid token: %d\n", tkn_elem->token); in skl_tplg_manifest_pin_res_tkn()
2312 struct snd_soc_tplg_vendor_value_elem *tkn_elem, in skl_tplg_fill_res_tkn() argument
2321 switch (tkn_elem->token) { in skl_tplg_fill_res_tkn()
2323 res->dma_buffer_size = tkn_elem->value; in skl_tplg_fill_res_tkn()
2327 res->cpc = tkn_elem->value; in skl_tplg_fill_res_tkn()
2331 res->is_pages = tkn_elem->value; in skl_tplg_fill_res_tkn()
2335 res->obs = tkn_elem->value; in skl_tplg_fill_res_tkn()
2339 res->ibs = tkn_elem->value; in skl_tplg_fill_res_tkn()
2344 ret = skl_tplg_manifest_pin_res_tkn(dev, tkn_elem, res, in skl_tplg_fill_res_tkn()
2356 dev_err(dev, "Not a res type token: %d", tkn_elem->token); in skl_tplg_fill_res_tkn()
2369 struct snd_soc_tplg_vendor_value_elem *tkn_elem, in skl_tplg_get_token() argument
2391 if (tkn_elem->token > SKL_TKN_MAX) in skl_tplg_get_token()
2394 switch (tkn_elem->token) { in skl_tplg_get_token()
2396 mconfig->module->max_input_pins = tkn_elem->value; in skl_tplg_get_token()
2400 mconfig->module->max_output_pins = tkn_elem->value; in skl_tplg_get_token()
2413 tkn_elem->value); in skl_tplg_get_token()
2426 tkn_elem->value); in skl_tplg_get_token()
2430 mconfig->time_slot = tkn_elem->value; in skl_tplg_get_token()
2434 mconfig->core_id = tkn_elem->value; in skl_tplg_get_token()
2438 mconfig->m_type = tkn_elem->value; in skl_tplg_get_token()
2442 mconfig->dev_type = tkn_elem->value; in skl_tplg_get_token()
2446 mconfig->hw_conn_type = tkn_elem->value; in skl_tplg_get_token()
2451 tkn_elem->value; in skl_tplg_get_token()
2458 ret = skl_tplg_fill_res_tkn(dev, tkn_elem, res, pin_index, dir); in skl_tplg_get_token()
2465 mconfig->vbus_id = tkn_elem->value; in skl_tplg_get_token()
2469 mconfig->params_fixup = tkn_elem->value; in skl_tplg_get_token()
2473 mconfig->converter = tkn_elem->value; in skl_tplg_get_token()
2477 mconfig->d0i3_caps = tkn_elem->value; in skl_tplg_get_token()
2482 mconfig, skl, tkn_elem); in skl_tplg_get_token()
2495 conf_idx = tkn_elem->value; in skl_tplg_get_token()
2506 tkn_elem->token, tkn_elem->value); in skl_tplg_get_token()
2519 tkn_elem->token, tkn_elem->value, in skl_tplg_get_token()
2527 mconfig->mod_cfg[conf_idx].res_idx = tkn_elem->value; in skl_tplg_get_token()
2531 mconfig->mod_cfg[conf_idx].fmt_idx = tkn_elem->value; in skl_tplg_get_token()
2540 dir = tkn_elem->value & SKL_IN_DIR_BIT_MASK; in skl_tplg_get_token()
2541 pin_index = (tkn_elem->value & in skl_tplg_get_token()
2554 ret = skl_tplg_widget_fill_fmt(dev, iface, tkn_elem->token, in skl_tplg_get_token()
2555 tkn_elem->value, dir, pin_index); in skl_tplg_get_token()
2566 mconfig, tkn_elem, dir, in skl_tplg_get_token()
2575 tkn_elem->value; in skl_tplg_get_token()
2581 tkn_elem->value; in skl_tplg_get_token()
2586 tkn_elem->value; in skl_tplg_get_token()
2591 tkn_elem->value; in skl_tplg_get_token()
2596 mconfig->dma_buffer_size = tkn_elem->value; in skl_tplg_get_token()
2606 tkn_elem->token); in skl_tplg_get_token()
2624 struct snd_soc_tplg_vendor_value_elem *tkn_elem; in skl_tplg_get_tokens() local
2660 tkn_elem = array->value; in skl_tplg_get_tokens()
2666 ret = skl_tplg_get_token(dev, tkn_elem, in skl_tplg_get_tokens()
2673 tkn_elem++; in skl_tplg_get_tokens()
2676 tuple_size += tkn_count * sizeof(*tkn_elem); in skl_tplg_get_tokens()
2689 struct snd_soc_tplg_vendor_value_elem *tkn_elem; in skl_tplg_get_desc_blocks() local
2691 tkn_elem = array->value; in skl_tplg_get_desc_blocks()
2693 switch (tkn_elem->token) { in skl_tplg_get_desc_blocks()
2697 return tkn_elem->value; in skl_tplg_get_desc_blocks()
2700 dev_err(dev, "Invalid descriptor token %d\n", tkn_elem->token); in skl_tplg_get_desc_blocks()
3207 struct snd_soc_tplg_vendor_value_elem *tkn_elem, in skl_tplg_manifest_fill_fmt() argument
3233 switch (tkn_elem->token) { in skl_tplg_manifest_fill_fmt()
3235 dst_fmt->id = tkn_elem->value; in skl_tplg_manifest_fill_fmt()
3239 ret = skl_tplg_fill_fmt(dev, mod_fmt, tkn_elem->token, in skl_tplg_manifest_fill_fmt()
3240 tkn_elem->value); in skl_tplg_manifest_fill_fmt()
3250 struct snd_soc_tplg_vendor_value_elem *tkn_elem, in skl_tplg_fill_mod_info() argument
3257 switch (tkn_elem->token) { in skl_tplg_fill_mod_info()
3259 mod->input_pin_type = tkn_elem->value; in skl_tplg_fill_mod_info()
3263 mod->output_pin_type = tkn_elem->value; in skl_tplg_fill_mod_info()
3267 mod->max_input_pins = tkn_elem->value; in skl_tplg_fill_mod_info()
3271 mod->max_output_pins = tkn_elem->value; in skl_tplg_fill_mod_info()
3275 mod->nr_resources = tkn_elem->value; in skl_tplg_fill_mod_info()
3279 mod->nr_interfaces = tkn_elem->value; in skl_tplg_fill_mod_info()
3283 dev_err(dev, "Invalid mod info token %d", tkn_elem->token); in skl_tplg_fill_mod_info()
3292 struct snd_soc_tplg_vendor_value_elem *tkn_elem, in skl_tplg_get_int_tkn() argument
3311 switch (tkn_elem->token) { in skl_tplg_get_int_tkn()
3313 skl->lib_count = tkn_elem->value; in skl_tplg_get_int_tkn()
3317 skl->nr_modules = tkn_elem->value; in skl_tplg_get_int_tkn()
3332 mod_idx = tkn_elem->value; in skl_tplg_get_int_tkn()
3341 if (tkn_elem->value > SKL_MAX_ASTATE_CFG) { in skl_tplg_get_int_tkn()
3343 tkn_elem->value); in skl_tplg_get_int_tkn()
3348 tkn_elem->value); in skl_tplg_get_int_tkn()
3354 count = skl->cfg.astate_cfg->count = tkn_elem->value; in skl_tplg_get_int_tkn()
3358 if (tkn_elem->value >= count) { in skl_tplg_get_int_tkn()
3360 tkn_elem->value); in skl_tplg_get_int_tkn()
3364 astate_cfg_idx = tkn_elem->value; in skl_tplg_get_int_tkn()
3368 astate_table[astate_cfg_idx].kcps = tkn_elem->value; in skl_tplg_get_int_tkn()
3372 astate_table[astate_cfg_idx].clk_src = tkn_elem->value; in skl_tplg_get_int_tkn()
3381 ret = skl_tplg_fill_mod_info(dev, tkn_elem, mod); in skl_tplg_get_int_tkn()
3387 dir = tkn_elem->value & SKL_IN_DIR_BIT_MASK; in skl_tplg_get_int_tkn()
3388 pin_idx = (tkn_elem->value & SKL_PIN_COUNT_MASK) >> 4; in skl_tplg_get_int_tkn()
3395 res->id = tkn_elem->value; in skl_tplg_get_int_tkn()
3396 res_val_idx = tkn_elem->value; in skl_tplg_get_int_tkn()
3403 fmt->fmt_idx = tkn_elem->value; in skl_tplg_get_int_tkn()
3404 intf_val_idx = tkn_elem->value; in skl_tplg_get_int_tkn()
3415 ret = skl_tplg_fill_res_tkn(dev, tkn_elem, res, pin_idx, dir); in skl_tplg_get_int_tkn()
3425 res->nr_input_pins = tkn_elem->value; in skl_tplg_get_int_tkn()
3432 res->nr_output_pins = tkn_elem->value; in skl_tplg_get_int_tkn()
3444 ret = skl_tplg_manifest_fill_fmt(dev, fmt, tkn_elem, in skl_tplg_get_int_tkn()
3451 dev_err(dev, "Not a manifest token %d\n", tkn_elem->token); in skl_tplg_get_int_tkn()
3471 struct snd_soc_tplg_vendor_value_elem *tkn_elem; in skl_tplg_get_manifest_tkn() local
3508 tkn_elem = array->value; in skl_tplg_get_manifest_tkn()
3515 tkn_elem, skl); in skl_tplg_get_manifest_tkn()
3520 tkn_elem++; in skl_tplg_get_manifest_tkn()
3522 tuple_size += (tkn_count * sizeof(*tkn_elem)); in skl_tplg_get_manifest_tkn()