aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.h
diff options
context:
space:
mode:
authorMengdong Lin <mengdong.lin@intel.com>2013-11-26 23:32:23 -0500
committerTakashi Iwai <tiwai@suse.de>2013-11-27 06:37:07 -0500
commit12edb893082b89f4d3af85ab9f4750aa8d3c34f3 (patch)
tree078aa14e02d8c49a9cb416d711c6fe218be840e9 /sound/pci/hda/hda_codec.h
parent351892a8278b50f723974ad42ce591aae57b41e7 (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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
index 9a2798a0313c..01b248d3f7b2 100644
--- a/sound/pci/hda/hda_codec.h
+++ b/sound/pci/hda/hda_codec.h
@@ -921,7 +921,9 @@ struct hda_codec {
921 unsigned long power_off_acct; 921 unsigned long power_off_acct;
922 unsigned long power_jiffies; 922 unsigned long power_jiffies;
923 spinlock_t power_lock; 923 spinlock_t power_lock;
924 struct work_struct pm_work; /* task to parallel multi-codec PM */ 924 /* tasks to parallel multi-codec suspend/resume */
925 struct work_struct suspend_work;
926 struct work_struct resume_work;
925#endif 927#endif
926 928
927 /* filter the requested power state per nid */ 929 /* filter the requested power state per nid */