linux_dsm_epyc7002/sound/pci/hda
Takashi Iwai cb53c626e1 [ALSA] hda-intel - Add POWER_SAVE option
Added CONFIG_SND_HDA_POWER_SAVE kconfig.  It's an experimental option
to achieve an aggressive power-saving.  With this option, the driver
will turn on/off the power of each codec and controller chip dynamically
on demand.
The patch introduces a new module option 'power_save'.  It specifies
the second of time-out for automatic power-down.  As default, it's
10 seconds.  Setting 0 means to suppress the power-saving feature.
The codec may have analog-input loopbacks, which are usually represented
by mixer elements such as 'Mic Playback Switch' or 'CD Playback Switch'.
When these are on, we cannot turn off the mixer and the codec chip has
to be kept on.  For bookkeeping these states, a new codec-callback is
introduced.
For the bus-controller side, a new callback pm_notify is introduced,
which can be used to turn on/off the contoller appropriately.
Note that this power-saving might cause slight click-noise at
power-on/off.  Also, it might take some time to wake up the codec, and
might even drop some tones at the very beginning.  This seems to be the
side-effect of turning off the controller chip.
This turn-off of the controller can be disabled by undefining
HDA_POWER_SAVE_RESET_CONTOLLER in hda_intel.c.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2007-10-16 15:58:46 +02:00
..
hda_codec.c [ALSA] hda-intel - Add POWER_SAVE option 2007-10-16 15:58:46 +02:00
hda_codec.h [ALSA] hda-intel - Add POWER_SAVE option 2007-10-16 15:58:46 +02:00
hda_generic.c [ALSA] hda-intel - Add POWER_SAVE option 2007-10-16 15:58:46 +02:00
hda_hwdep.c [ALSA] hda-intel - Fix compile warning in snd_hwdep_ioctl_compat() 2007-10-16 15:58:16 +02:00
hda_intel.c [ALSA] hda-intel - Add POWER_SAVE option 2007-10-16 15:58:46 +02:00
hda_local.h [ALSA] hda-intel - Add POWER_SAVE option 2007-10-16 15:58:46 +02:00
hda_patch.h [ALSA] hda-codec - kernel config for each codec 2007-10-16 15:58:12 +02:00
hda_proc.c [ALSA] hda-intel - Add POWER_SAVE option 2007-10-16 15:58:46 +02:00
Makefile [ALSA] hda-intel - Fix a typo in Makefile 2007-10-16 15:58:17 +02:00
patch_analog.c [ALSA] hda-intel - Add POWER_SAVE option 2007-10-16 15:58:46 +02:00
patch_atihdmi.c [ALSA] hda-codec - optimize resume using caches 2007-10-16 15:58:43 +02:00
patch_cmedia.c [ALSA] hda-codec - optimize resume using caches 2007-10-16 15:58:43 +02:00
patch_conexant.c [ALSA] hda-codec - Clean up bind-controls 2007-10-16 15:58:45 +02:00
patch_realtek.c [ALSA] hda-intel - Add POWER_SAVE option 2007-10-16 15:58:46 +02:00
patch_si3054.c [ALSA] hda-codec - optimize resume using caches 2007-10-16 15:58:43 +02:00
patch_sigmatel.c [ALSA] hda-intel - Add POWER_SAVE option 2007-10-16 15:58:46 +02:00
patch_via.c [ALSA] hda-intel - Add POWER_SAVE option 2007-10-16 15:58:46 +02:00