]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - suspend codecs in parallel
authorMengdong Lin <mengdong.lin@intel.com>
Wed, 27 Nov 2013 04:00:51 +0000 (23:00 -0500)
committerTakashi Iwai <tiwai@suse.de>
Wed, 27 Nov 2013 11:16:32 +0000 (12:16 +0100)
commit9dd13b5712a11d15538ae487b67eef5dcb4607c0
tree1fdef5cb4b6247a677311754fd868ae7ee01e200
parente14bbab9d246d34fbedf7b6790922be63ffbdbf1
ALSA: hda - suspend codecs in parallel

The time to suspend a single codec may be several hundreds of ms. When runtime
power saving is disabled, driver suspend time can be long especially when there
are more than one codec on the bus.

To reduce driver suspend time, this patch creates a work queue for the bus, and
suspends the codecs in parallel if there are multiple codecs on the bus.

[fixed cosmetic issues by tiwai]

Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h