kernel_optimize_test/sound/pci/hda
Zhang, Rui dd2b4a7abf ALSA: hda - remove unnecessary msleep on power state transitions
This will save ~15ms boot time.

The first 10ms sleep was introduced in commit d2595d86e5 for (buggy)
Cxt codecs, so better to limit the sleep to the problem hardware.

For the second 10ms sleep, the HDA spec says:

Power State[1:0]:
00: Node Power state (D0) is fully on.
01: Node Power state (D1) allows for (does not require) the lowest possible power consuming state from which it
can return to the "fully on" state (D0) within 10 ms, excepting analog pass through circuits (e.g., CD analog
playback) which must remain fully on.
10: Node Power state (D2) allows for (does not require) the lowest possible power consuming state from which it
can return to the "fully on" state (D0) within 10 ms. For modems, this is the "wake on ring" power state.
11: Node Power state (D3) allows for (does not require) lowest possible power consuming state under software
control. Note that any low power state set by software must retain sufficient operational capability to properly
respond to subsequent software Power State command.

So 10ms is actually the max wait time. It should be safe to
remove/reduce it and rely on the loop of 1ms-sleeps.

CC: Marc Boucher <marc@linuxant.com>
CC: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2010-02-24 09:12:57 +01:00
..
hda_beep.c ALSA: hda - Fix Oops at reloading beep devices 2009-12-27 13:34:01 +01:00
hda_beep.h ALSA: hda - Fix beep_mode option value 2009-11-16 15:33:49 +01:00
hda_codec.c ALSA: hda - remove unnecessary msleep on power state transitions 2010-02-24 09:12:57 +01:00
hda_codec.h ALSA: hda - Define max number of PCM devices in hda_codec.h 2010-01-28 17:08:53 +01:00
hda_eld.c ALSA: hda - introduce snd_hda_jack_detect() and snd_hda_pin_sense() 2009-11-18 07:40:57 +01:00
hda_generic.c ALSA: hda - add more NID->Control mapping 2009-12-15 09:33:04 +01:00
hda_hwdep.c ALSA: hda - Allow override more fields via patch loader 2010-01-28 00:04:21 +01:00
hda_intel.c ALSA: hda - enable snoop for Intel Cougar Point 2010-02-23 08:15:37 +01:00
hda_local.h ALSA: hda - Fix NID association for capture mixers 2009-12-23 08:38:28 +01:00
hda_proc.c ALSA: hda - introduce HDA_SUBDEV_AMP_FLAG (ControlAmp in proc) 2009-12-15 09:33:17 +01:00
Kconfig ALSA: hda - Fix input and jack Kconfig depenencies 2009-11-21 19:57:11 +01:00
Makefile ALSA: hda - Add Cirrus Logic CS420x support 2009-07-01 18:11:44 +02:00
patch_analog.c ALSA: hda: Use 3stack quirk for Toshiba Satellite L40-10Q 2010-02-22 08:15:21 +01:00
patch_atihdmi.c ALSA: hda: move open coded tricks into get_wcaps_channels() 2009-08-24 09:42:48 +02:00
patch_ca0110.c ALSA: hda - proc - introduce Control: lines to show mixer<->NID assignment 2009-11-16 11:35:14 +01:00
patch_cirrus.c ALSA: hda - Fix NID association for capture mixers 2009-12-23 08:38:28 +01:00
patch_cmedia.c ALSA: hda - Fix NID association for capture mixers 2009-12-23 08:38:28 +01:00
patch_conexant.c ALSA: hda - Add support for Lenovo IdeaPad U150 2010-02-13 10:16:05 +01:00
patch_intelhdmi.c intelhdmi - dont power off HDA link 2009-12-11 14:06:18 +01:00
patch_nvhdmi.c ALSA: hda - Add another Nvidia HDMI codec id (10de:0005) 2009-11-13 08:28:03 +01:00
patch_realtek.c ALSA: add support for Macbook Air 2,1 internal speaker 2010-02-23 10:55:03 +01:00
patch_si3054.c ALSA: hda - add more NID->Control mapping 2009-12-15 09:33:04 +01:00
patch_sigmatel.c ALSA: hda - Fix default polarity of mute-LED GPIO on 92HD83x/88x codecs 2010-02-09 09:25:26 +01:00
patch_via.c ALSA: hda - Fix NID association for capture mixers 2009-12-23 08:38:28 +01:00