{
INIT_WORK(&dsp->boot_work, wm_adsp_boot_work);
+ dsp->sys_config_size = sizeof(struct wm_adsp_system_config_xm_hdr);
+
wm_adsp_common_init(dsp);
return cs_dsp_adsp2_init(dsp);
{
INIT_WORK(&dsp->boot_work, wm_adsp_boot_work);
+ dsp->sys_config_size = sizeof(struct wm_halo_system_config_xm_hdr);
+
wm_adsp_common_init(dsp);
return cs_dsp_halo_init(dsp);
if (!buf)
return -ENOMEM;
- xmalg = dsp->ops->sys_config_size / sizeof(__be32);
+ xmalg = dsp->sys_config_size / sizeof(__be32);
addr = alg_region->base + xmalg + ALG_XM_FIELD(magic);
ret = cs_dsp_read_data_word(dsp, WMFW_ADSP2_XM, addr, &magic);
static const struct cs_dsp_ops cs_dsp_adsp2_ops[] = {
{
- .sys_config_size = sizeof(struct wm_adsp_system_config_xm_hdr),
.parse_sizes = cs_dsp_adsp2_parse_sizes,
.validate_version = cs_dsp_validate_version,
.setup_algs = cs_dsp_adsp2_setup_algs,
},
{
- .sys_config_size = sizeof(struct wm_adsp_system_config_xm_hdr),
.parse_sizes = cs_dsp_adsp2_parse_sizes,
.validate_version = cs_dsp_validate_version,
.setup_algs = cs_dsp_adsp2_setup_algs,
.stop_core = cs_dsp_adsp2_stop_core,
},
{
- .sys_config_size = sizeof(struct wm_adsp_system_config_xm_hdr),
.parse_sizes = cs_dsp_adsp2_parse_sizes,
.validate_version = cs_dsp_validate_version,
.setup_algs = cs_dsp_adsp2_setup_algs,
};
static const struct cs_dsp_ops cs_dsp_halo_ops = {
- .sys_config_size = sizeof(struct wm_halo_system_config_xm_hdr),
.parse_sizes = cs_dsp_adsp2_parse_sizes,
.validate_version = cs_dsp_halo_validate_version,
.setup_algs = cs_dsp_halo_setup_algs,