projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2090cb9
)
ASoC: SOF: Intel: use power_down_dsp op in hda_dsp_remove
author
Fred Oh
<fred.oh@linux.intel.com>
Thu, 22 Sep 2022 21:36:38 +0000
(14:36 -0700)
committer
Mark Brown
<broonie@kernel.org>
Fri, 23 Sep 2022 12:56:15 +0000
(13:56 +0100)
Use power_down_dsp op to differentiate power down sequences in platforms.
Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link:
https://lore.kernel.org/r/20220922213644.666315-5-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c
patch
|
blob
|
history
diff --git
a/sound/soc/sof/intel/hda.c
b/sound/soc/sof/intel/hda.c
index c7fe13dee06c16400f063871d82ddaf455043141..35f074aa69da5893d0a7fde4e629937f30faf21b 100644
(file)
--- a/
sound/soc/sof/intel/hda.c
+++ b/
sound/soc/sof/intel/hda.c
@@
-1191,9
+1191,9
@@
int hda_dsp_remove(struct snd_sof_dev *sdev)
snd_sof_dsp_update_bits(sdev, HDA_DSP_HDA_BAR, SOF_HDA_INTCTL,
SOF_HDA_INT_CTRL_EN | SOF_HDA_INT_GLOBAL_EN, 0);
- /*
disable cores
*/
- if (chip)
-
hda_dsp_core_reset_power_down(sdev, chip->host_managed_cores_mask
);
+ /*
no need to check for error as the DSP will be disabled anyway
*/
+ if (chip
&& chip->power_down_dsp
)
+
chip->power_down_dsp(sdev
);
/* disable DSP */
snd_sof_dsp_update_bits(sdev, HDA_DSP_PP_BAR, SOF_HDA_REG_PP_PPCTL,