ALSA: hda - resume codecs in parallel
To reduce driver resume time, this patch resumes the codecs in parallel
if there are multiple codecs on the bus.
- The PM workqueue of bus is also used to parallel resuming multiple codecs.
- The work item 'pm_work' is renamed to 'suspend_work' to parallel suspending
codecs.
- Add a work item 'resume_work' to parallel resuming codecs.
Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
index 9a2798a..01b248d 100644
--- a/sound/pci/hda/hda_codec.h
+++ b/sound/pci/hda/hda_codec.h
@@ -921,7 +921,9 @@
unsigned long power_off_acct;
unsigned long power_jiffies;
spinlock_t power_lock;
- struct work_struct pm_work; /* task to parallel multi-codec PM */
+ /* tasks to parallel multi-codec suspend/resume */
+ struct work_struct suspend_work;
+ struct work_struct resume_work;
#endif
/* filter the requested power state per nid */