summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.h
diff options
context:
space:
mode:
authorMengdong Lin2013-11-27 05:32:23 +0100
committerTakashi Iwai2013-11-27 12:37:07 +0100
commit12edb893082b89f4d3af85ab9f4750aa8d3c34f3 (patch)
tree078aa14e02d8c49a9cb416d711c6fe218be840e9 /sound/pci/hda/hda_codec.h
parentMerge branch 'topic/hda' into for-next (diff)
downloadkernel-qcow2-linux-12edb893082b89f4d3af85ab9f4750aa8d3c34f3.tar.gz
kernel-qcow2-linux-12edb893082b89f4d3af85ab9f4750aa8d3c34f3.tar.xz
kernel-qcow2-linux-12edb893082b89f4d3af85ab9f4750aa8d3c34f3.zip
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 {
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 */