mirror of
https://github.com/torvalds/linux.git
synced 2026-04-30 12:32:31 -04:00
Merge remote-tracking branch 'asoc/for-5.12' into asoc-linus
This commit is contained in:
@@ -220,7 +220,7 @@ static const struct sof_dev_desc icl_desc = {
|
||||
};
|
||||
#endif
|
||||
|
||||
#if IS_ENABLED(CONFIG_SND_SOC_SOF_TIGERLAKE)
|
||||
#if IS_ENABLED(CONFIG_SND_SOC_SOF_TIGERLAKE) || IS_ENABLED(CONFIG_SND_SOC_SOF_ALDERLAKE)
|
||||
static const struct sof_dev_desc tgl_desc = {
|
||||
.machines = snd_soc_acpi_intel_tgl_machines,
|
||||
.alt_machines = snd_soc_acpi_intel_tgl_sdw_machines,
|
||||
@@ -237,7 +237,9 @@ static const struct sof_dev_desc tgl_desc = {
|
||||
.nocodec_tplg_filename = "sof-tgl-nocodec.tplg",
|
||||
.ops = &sof_tgl_ops,
|
||||
};
|
||||
#endif
|
||||
|
||||
#if IS_ENABLED(CONFIG_SND_SOC_SOF_TIGERLAKE)
|
||||
static const struct sof_dev_desc tglh_desc = {
|
||||
.machines = snd_soc_acpi_intel_tgl_machines,
|
||||
.alt_machines = snd_soc_acpi_intel_tgl_sdw_machines,
|
||||
@@ -452,13 +454,19 @@ static void sof_pci_remove(struct pci_dev *pci)
|
||||
snd_sof_device_remove(&pci->dev);
|
||||
|
||||
/* follow recommendation in pci-driver.c to increment usage counter */
|
||||
if (!(sof_pci_debug & SOF_PCI_DISABLE_PM_RUNTIME))
|
||||
if (snd_sof_device_probe_completed(&pci->dev) &&
|
||||
!(sof_pci_debug & SOF_PCI_DISABLE_PM_RUNTIME))
|
||||
pm_runtime_get_noresume(&pci->dev);
|
||||
|
||||
/* release pci regions and disable device */
|
||||
pci_release_regions(pci);
|
||||
}
|
||||
|
||||
static void sof_pci_shutdown(struct pci_dev *pci)
|
||||
{
|
||||
snd_sof_device_shutdown(&pci->dev);
|
||||
}
|
||||
|
||||
/* PCI IDs */
|
||||
static const struct pci_device_id sof_pci_ids[] = {
|
||||
#if IS_ENABLED(CONFIG_SND_SOC_SOF_MERRIFIELD)
|
||||
@@ -521,6 +529,8 @@ static const struct pci_device_id sof_pci_ids[] = {
|
||||
#if IS_ENABLED(CONFIG_SND_SOC_SOF_ALDERLAKE)
|
||||
{ PCI_DEVICE(0x8086, 0x7ad0),
|
||||
.driver_data = (unsigned long)&adls_desc},
|
||||
{ PCI_DEVICE(0x8086, 0x51c8),
|
||||
.driver_data = (unsigned long)&tgl_desc},
|
||||
#endif
|
||||
{ 0, }
|
||||
};
|
||||
@@ -532,6 +542,7 @@ static struct pci_driver snd_sof_pci_driver = {
|
||||
.id_table = sof_pci_ids,
|
||||
.probe = sof_pci_probe,
|
||||
.remove = sof_pci_remove,
|
||||
.shutdown = sof_pci_shutdown,
|
||||
.driver = {
|
||||
.pm = &sof_pci_pm,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user