Lines Matching refs:mconfig

445 			struct skl_module_cfg *mconfig,  in skl_set_base_module_format()  argument
448 struct skl_module *module = mconfig->module; in skl_set_base_module_format()
449 struct skl_module_res *res = &module->resources[mconfig->res_idx]; in skl_set_base_module_format()
450 struct skl_module_iface *fmt = &module->formats[mconfig->fmt_idx]; in skl_set_base_module_format()
479 static void skl_copy_copier_caps(struct skl_module_cfg *mconfig, in skl_copy_copier_caps() argument
482 if (mconfig->formats_config.caps_size == 0) in skl_copy_copier_caps()
486 mconfig->formats_config.caps, in skl_copy_copier_caps()
487 mconfig->formats_config.caps_size); in skl_copy_copier_caps()
490 (mconfig->formats_config.caps_size) / 4; in skl_copy_copier_caps()
499 struct skl_module_cfg *mconfig) in skl_get_node_id() argument
503 struct skl_pipe_params *params = mconfig->pipe->p_params; in skl_get_node_id()
505 switch (mconfig->dev_type) { in skl_get_node_id()
508 (SKL_CONN_SOURCE == mconfig->hw_conn_type) ? in skl_get_node_id()
512 (mconfig->vbus_id << 3); in skl_get_node_id()
517 (SKL_CONN_SOURCE == mconfig->hw_conn_type) ? in skl_get_node_id()
520 ssp_node.dma_node.time_slot_index = mconfig->time_slot; in skl_get_node_id()
521 ssp_node.dma_node.i2s_instance = mconfig->vbus_id; in skl_get_node_id()
527 node_id.node.vindex = mconfig->vbus_id + in skl_get_node_id()
528 (mconfig->time_slot); in skl_get_node_id()
533 (SKL_CONN_SOURCE == mconfig->hw_conn_type) ? in skl_get_node_id()
541 (SKL_CONN_SOURCE == mconfig->hw_conn_type) ? in skl_get_node_id()
556 struct skl_module_cfg *mconfig, in skl_setup_cpr_gateway_cfg() argument
561 int res_idx = mconfig->res_idx; in skl_setup_cpr_gateway_cfg()
563 cpr_mconfig->gtw_cfg.node_id = skl_get_node_id(skl, mconfig); in skl_setup_cpr_gateway_cfg()
571 res = &mconfig->module->resources[mconfig->res_idx]; in skl_setup_cpr_gateway_cfg()
575 res = &mconfig->module->resources[res_idx]; in skl_setup_cpr_gateway_cfg()
578 switch (mconfig->hw_conn_type) { in skl_setup_cpr_gateway_cfg()
580 if (mconfig->dev_type == SKL_DEVICE_HDAHOST) in skl_setup_cpr_gateway_cfg()
587 if (mconfig->dev_type == SKL_DEVICE_HDAHOST) in skl_setup_cpr_gateway_cfg()
595 mconfig->hw_conn_type); in skl_setup_cpr_gateway_cfg()
600 mconfig->dma_buffer_size * dma_io_buf; in skl_setup_cpr_gateway_cfg()
604 if (mconfig->hw_conn_type == SKL_CONN_SOURCE) in skl_setup_cpr_gateway_cfg()
614 skl_copy_copier_caps(mconfig, cpr_mconfig); in skl_setup_cpr_gateway_cfg()
661 struct skl_module_cfg *mconfig, in skl_setup_out_format() argument
664 struct skl_module *module = mconfig->module; in skl_setup_out_format()
665 struct skl_module_iface *fmt = &module->formats[mconfig->fmt_idx]; in skl_setup_out_format()
688 struct skl_module_cfg *mconfig, in skl_set_src_format() argument
691 struct skl_module *module = mconfig->module; in skl_set_src_format()
692 struct skl_module_iface *iface = &module->formats[mconfig->fmt_idx]; in skl_set_src_format()
695 skl_set_base_module_format(skl, mconfig, in skl_set_src_format()
707 struct skl_module_cfg *mconfig, in skl_set_updown_mixer_format() argument
710 struct skl_module *module = mconfig->module; in skl_set_updown_mixer_format()
711 struct skl_module_iface *iface = &module->formats[mconfig->fmt_idx]; in skl_set_updown_mixer_format()
714 skl_set_base_module_format(skl, mconfig, in skl_set_updown_mixer_format()
728 struct skl_module_cfg *mconfig, in skl_set_copier_format() argument
734 skl_set_base_module_format(skl, mconfig, base_cfg); in skl_set_copier_format()
736 skl_setup_out_format(skl, mconfig, out_fmt); in skl_set_copier_format()
737 skl_setup_cpr_gateway_cfg(skl, mconfig, cpr_mconfig); in skl_set_copier_format()
746 struct skl_module_cfg *mconfig, in skl_set_algo_format() argument
751 skl_set_base_module_format(skl, mconfig, base_cfg); in skl_set_algo_format()
753 if (mconfig->formats_config.caps_size == 0) in skl_set_algo_format()
757 mconfig->formats_config.caps, in skl_set_algo_format()
758 mconfig->formats_config.caps_size); in skl_set_algo_format()
770 struct skl_module_cfg *mconfig, in skl_set_base_outfmt_format() argument
777 skl_set_base_module_format(skl, mconfig, base_cfg); in skl_set_base_outfmt_format()
778 skl_setup_out_format(skl, mconfig, out_fmt); in skl_set_base_outfmt_format()
782 struct skl_module_cfg *mconfig) in skl_get_module_param_size() argument
786 switch (mconfig->m_type) { in skl_get_module_param_size()
789 param_size += mconfig->formats_config.caps_size; in skl_get_module_param_size()
800 param_size += mconfig->formats_config.caps_size; in skl_get_module_param_size()
973 struct skl_module_cfg *mconfig) in skl_init_module() argument
981 mconfig->id.module_id, mconfig->id.pvt_id); in skl_init_module()
983 if (mconfig->pipe->state != SKL_PIPE_CREATED) { in skl_init_module()
985 mconfig->pipe->state, mconfig->pipe->ppl_id); in skl_init_module()
989 ret = skl_set_module_format(skl, mconfig, in skl_init_module()
996 msg.module_id = mconfig->id.module_id; in skl_init_module()
997 msg.instance_id = mconfig->id.pvt_id; in skl_init_module()
998 msg.ppl_instance_id = mconfig->pipe->ppl_id; in skl_init_module()
1000 msg.core_id = mconfig->core_id; in skl_init_module()
1001 msg.domain = mconfig->domain; in skl_init_module()
1009 mconfig->m_state = SKL_MODULE_INIT_DONE; in skl_init_module()