Skip to content

Commit b9d2390

Browse files
committed
[Not for upstream] ASoC: SOF: Intel: add DPM_FLAG_SMART_SUSPEND
With commit: bca84a7 ("PM: sleep: Use DPM_FLAG_SMART_SUSPEND conditionally"), DPM_FLAG_SMART_SUSPEND will only be used when the devices parent and suppliers are all with the "smart suspend" feature enabled. The feature is needed for Intel SoundWire links, and SOF PCI device is its parent. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent 3e55a76 commit b9d2390

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sound/soc/sof/intel/hda.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,6 +1506,7 @@ int hda_pci_intel_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
15061506
return -ENODEV;
15071507
}
15081508

1509+
dev_pm_set_driver_flags(&pci->dev, DPM_FLAG_SMART_SUSPEND);
15091510
return sof_pci_probe(pci, pci_id);
15101511
}
15111512
EXPORT_SYMBOL_NS(hda_pci_intel_probe, "SND_SOC_SOF_INTEL_HDA_GENERIC");

0 commit comments

Comments
 (0)