ASoC: Intel: Skylake: modify snd_skl_get_module_info args
snd_skl_get_module_info() takes skl_dfw_module as an argument. The users then updates the topology data, so instead pass skl_module_cfg and let snd_skl_get_module_info() fill that up. Signed-off-by: Dharageswari R <dharageswari.r@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
这个提交包含在:
@@ -475,24 +475,12 @@ skl_tplg_init_pipe_modules(struct skl *skl, struct skl_pipe *pipe)
|
||||
|
||||
/* check if module ids are populated */
|
||||
if (mconfig->id.module_id < 0) {
|
||||
struct skl_dfw_module *dfw_config;
|
||||
|
||||
dfw_config = kzalloc(sizeof(*dfw_config), GFP_KERNEL);
|
||||
if (!dfw_config)
|
||||
return -ENOMEM;
|
||||
|
||||
ret = snd_skl_get_module_info(skl->skl_sst,
|
||||
mconfig->guid, dfw_config);
|
||||
ret = snd_skl_get_module_info(skl->skl_sst, mconfig);
|
||||
if (ret < 0) {
|
||||
dev_err(skl->skl_sst->dev,
|
||||
"query module info failed: %d\n", ret);
|
||||
kfree(dfw_config);
|
||||
return ret;
|
||||
}
|
||||
mconfig->id.module_id = dfw_config->module_id;
|
||||
mconfig->is_loadable = dfw_config->is_loadable;
|
||||
|
||||
kfree(dfw_config);
|
||||
}
|
||||
|
||||
/* check resource available */
|
||||
|
在新工单中引用
屏蔽一个用户