kernel-ark/sound/pci/hda
Mengdong Lin b8dfc46241 ALSA: hda - add runtime PM support
Runtime PM can bring more power saving:
- When the controller is suspended, its parent device will also have a chance
  to suspend.
- PCI subsystem can choose the lowest power state the controller can signal
  wake up from. This state can be D3cold on platforms with ACPI PM support.
And runtime PM can provide a gerneral sysfs interface for a system policy
manager.

Runtime PM support is based on current HDA power saving implementation. The user
can enable runtime PM on platfroms that provide acceptable latency on transition
from D3 to D0.

Details:
- When both power saving and runtime PM are enabled:
  -- If a codec supports 'stop-clock' in D3, it will request suspending the
     controller after it enters D3 and request resuming the controller before
     back to D0. Thus the controller will be suspended only when all codecs are
     suspended and support stop-clock in D3.
  -- User IO operations and HW wakeup signal can resume the controller back to
     D0.
- If runtime PM is disabled, power saving just works as before.
- If power saving is disabled, the controller won't be suspended because the
  power usage counter can never be 0.

More about 'stop-clock' feature:
If a codec can support targeted pass-through operations in D3 state when there
is no BCLK present on the link, it will set CLKSTOP flag in the supported power
states and report PS-ClkStopOk when entering D3 state. Please refer to HDA spec
section 7.3.3.10 Power state and 7.3.4.12 Supported Power State.

[Fixed CONFIG_PM_RUNTIME dependency in hda_intel.c by tiwai]

Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2012-08-23 14:21:32 +02:00
..
hda_auto_parser.c ALSA: hda - Fix ugly debug prints with CONFIG_SND_VERBOSE_PRINTK=y 2012-08-07 18:10:31 +02:00
hda_auto_parser.h
hda_beep.c ALSA: hda - Fix 'Beep Playback Switch' with no underlying mute switch 2012-08-14 10:22:31 +02:00
hda_beep.h ALSA: hda - Get rid of superfluous beep->mode field 2012-07-03 18:31:36 +02:00
hda_codec.c ALSA: hda - add runtime PM support 2012-08-23 14:21:32 +02:00
hda_codec.h ALSA: hda - add runtime PM support 2012-08-23 14:21:32 +02:00
hda_eld.c
hda_generic.c
hda_hwdep.c ALSA: hda - Load firmware in hda_intel.c 2012-08-09 16:28:19 +02:00
hda_intel.c ALSA: hda - add runtime PM support 2012-08-23 14:21:32 +02:00
hda_jack.c ALSA: hda - Fix index number conflicts of phantom jacks 2012-07-17 16:55:56 +02:00
hda_jack.h
hda_local.h ALSA: hda - Move beep helper functions to hda_beep.c 2012-07-03 18:31:36 +02:00
hda_proc.c Merge branch 'for-linus' into for-next 2012-08-20 22:14:26 +02:00
hda_trace.h ALSA: hda - Add missing ifdef CONFIG_SND_HDA_POWER_SAVE to tracepoints 2012-08-20 18:04:40 +02:00
Kconfig
Makefile
patch_analog.c ALSA: hda - Add 3stack-automute model to AD1882 codec 2012-08-15 11:50:05 +02:00
patch_ca0110.c
patch_ca0132.c ALSA: hda - don't create dysfunctional mixer controls for ca0132 2012-08-20 11:33:23 +02:00
patch_cirrus.c ALSA: hda - Call snd_hda_jack_report_sync() generically in hda_codec.c 2012-08-22 16:48:17 +02:00
patch_cmedia.c
patch_conexant.c ALSA: hda - Call snd_hda_jack_report_sync() generically in hda_codec.c 2012-08-22 16:48:17 +02:00
patch_hdmi.c ALSA: hda - Call snd_hda_jack_report_sync() generically in hda_codec.c 2012-08-22 16:48:17 +02:00
patch_realtek.c ALSA: hda - Call snd_hda_jack_report_sync() generically in hda_codec.c 2012-08-22 16:48:17 +02:00
patch_si3054.c
patch_sigmatel.c ALSA: hda - Call snd_hda_jack_report_sync() generically in hda_codec.c 2012-08-22 16:48:17 +02:00
patch_via.c ALSA: hda - Call snd_hda_jack_report_sync() generically in hda_codec.c 2012-08-22 16:48:17 +02:00