Skip to content

Commit d344ded

Browse files
committed
ASoC: SOF: Intel: use power_down_dsp op in hda_dsp_remove
Use power_down_dsp op to differentiate power down sequences in platforms. Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
1 parent e52897b commit d344ded

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sound/soc/sof/intel/hda.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,9 +1175,9 @@ int hda_dsp_remove(struct snd_sof_dev *sdev)
11751175
snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_INTCTL,
11761176
SOF_HDA_INT_CTRL_EN | SOF_HDA_INT_GLOBAL_EN, 0);
11771177

1178-
/* disable cores */
1179-
if (chip)
1180-
hda_dsp_core_reset_power_down(sdev, chip->host_managed_cores_mask);
1178+
/* no need to check for error as the DSP will be disabled anyway */
1179+
if (chip && chip->power_down_dsp)
1180+
chip->power_down_dsp(sdev);
11811181

11821182
/* disable DSP */
11831183
snd_sof_dsp_update_bits(sdev, HDA_DSP_PP_BAR, SOF_HDA_REG_PP_PPCTL,

0 commit comments

Comments
 (0)