]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ALSA] hda-codec - optimize resume using caches
authorTakashi Iwai <tiwai@suse.de>
Fri, 10 Aug 2007 15:09:26 +0000 (17:09 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 Oct 2007 13:58:43 +0000 (15:58 +0200)
commit82beb8fd365afe3891b277c46425083f13e23c56
treea564d7228b59170aa490d4fc9284b5fa4442adb0
parentb3ac56364126f78cae94eb2a75b72d9ea85aca9d
[ALSA] hda-codec - optimize resume using caches

So far, the driver looked the table of snd_kcontrol_new used for creating
mixer elements and forces to call each of its put callbacks in PM resume
code.  This is too ugly and hackish.
Now, the resume is simplified using the codec amp and command register
caches.  The driver simply restores the values that have been written
in the cache table.  With this simplification, most codec support codes
don't require any special resume callback.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
12 files changed:
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_generic.c
sound/pci/hda/hda_local.h
sound/pci/hda/patch_analog.c
sound/pci/hda/patch_atihdmi.c
sound/pci/hda/patch_cmedia.c
sound/pci/hda/patch_conexant.c
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_si3054.c
sound/pci/hda/patch_sigmatel.c
sound/pci/hda/patch_via.c