diff options
author | Mengdong Lin <mengdong.lin@intel.com> | 2013-11-26 23:32:23 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-11-27 12:37:07 +0100 |
commit | 12edb893082b89f4d3af85ab9f4750aa8d3c34f3 (patch) | |
tree | 078aa14e02d8c49a9cb416d711c6fe218be840e9 /sound/pci/hda/hda_codec.h | |
parent | 351892a8278b50f723974ad42ce591aae57b41e7 (diff) |
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>
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r-- | sound/pci/hda/hda_codec.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h index 9a2798a0313..01b248d3f7b 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h @@ -921,7 +921,9 @@ struct hda_codec { 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 */ |