@@ -91,7 +91,7 @@ static int cl_dsp_init(struct snd_sof_dev *sdev, int stream_tag, int iteration)
9191 int i ;
9292
9393 /* step 1: power up corex */
94- ret = hda_dsp_core_power_up (sdev , chip -> cores_mask );
94+ ret = hda_dsp_core_power_up (sdev , chip -> host_managed_cores_mask );
9595 if (ret < 0 ) {
9696 if (iteration == HDA_FW_BOOT_ATTEMPTS )
9797 dev_err (sdev -> dev , "error: dsp core 0/1 power up failed\n" );
@@ -114,7 +114,7 @@ static int cl_dsp_init(struct snd_sof_dev *sdev, int stream_tag, int iteration)
114114 ((stream_tag - 1 ) << 9 )));
115115
116116 /* step 3: unset core 0 reset state & unstall/run core 0 */
117- ret = hda_dsp_core_run (sdev , HDA_DSP_CORE_MASK (0 ));
117+ ret = hda_dsp_core_run (sdev , BIT (0 ));
118118 if (ret < 0 ) {
119119 if (iteration == HDA_FW_BOOT_ATTEMPTS )
120120 dev_err (sdev -> dev ,
@@ -146,8 +146,7 @@ static int cl_dsp_init(struct snd_sof_dev *sdev, int stream_tag, int iteration)
146146 chip -> ipc_ack_mask );
147147
148148 /* step 5: power down corex */
149- ret = hda_dsp_core_power_down (sdev ,
150- chip -> cores_mask & ~(HDA_DSP_CORE_MASK (0 )));
149+ ret = hda_dsp_core_power_down (sdev , chip -> host_managed_cores_mask & ~(BIT (0 )));
151150 if (ret < 0 ) {
152151 if (iteration == HDA_FW_BOOT_ATTEMPTS )
153152 dev_err (sdev -> dev ,
@@ -176,7 +175,7 @@ static int cl_dsp_init(struct snd_sof_dev *sdev, int stream_tag, int iteration)
176175
177176err :
178177 hda_dsp_dump (sdev , SOF_DBG_REGS | SOF_DBG_PCI | SOF_DBG_MBOX );
179- hda_dsp_core_reset_power_down (sdev , chip -> cores_mask );
178+ hda_dsp_core_reset_power_down (sdev , chip -> host_managed_cores_mask );
180179
181180 return ret ;
182181}
@@ -427,7 +426,7 @@ int hda_dsp_cl_boot_firmware(struct snd_sof_dev *sdev)
427426 }
428427
429428 /*
430- * return master core id if both fw copy
429+ * return primary core id if both fw copy
431430 * and stream clean up are successful
432431 */
433432 if (!ret )
0 commit comments