Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 150
mtl: introduce mtl_dsp_remove() to fix kmod removal issue#3679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
8c4e436813de12e52897bd344dedFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1175,9 +1175,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); | ||
plbossart marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| /* disable DSP */ | ||
| snd_sof_dsp_update_bits(sdev, HDA_DSP_PP_BAR, SOF_HDA_REG_PP_PPCTL, | ||
| @@ -1203,6 +1203,14 @@ int hda_dsp_remove(struct snd_sof_dev *sdev) | ||
| return 0; | ||
| } | ||
| int hda_power_down_dsp(struct snd_sof_dev *sdev) | ||
| { | ||
| struct sof_intel_hda_dev *hda = sdev->pdata->hw_pdata; | ||
| const struct sof_intel_dsp_desc *chip = hda->desc; | ||
| return hda_dsp_core_reset_power_down(sdev, chip->host_managed_cores_mask); | ||
| } | ||
| #if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA) | ||
| static void hda_generic_machine_select(struct snd_sof_dev *sdev, | ||
| struct snd_soc_acpi_mach **mach) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -186,6 +186,7 @@ struct sof_intel_dsp_desc { | ||
| enum sof_intel_hw_ip_version hw_ip_version; | ||
Collaborator There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably change the commit message to | ||
| bool (*check_sdw_irq)(struct snd_sof_dev *sdev); | ||
| bool (*check_ipc_irq)(struct snd_sof_dev *sdev); | ||
| int (*power_down_dsp)(struct snd_sof_dev *sdev); | ||
| int (*cl_init)(struct snd_sof_dev *sdev, int stream_tag, bool imr_boot); | ||
| }; | ||
Uh oh!
There was an error while loading. Please reload this page.