From: Hector Martin Date: Sun, 20 Dec 2009 21:51:31 +0000 (+0100) Subject: ALSA: HDA: add powersaving hook for Realtek X-Git-Tag: v2.6.33-rc2~42^2~2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5de24b06aa46427500d0fdbe8616b73a71d8c28;p=pandora-kernel.git ALSA: HDA: add powersaving hook for Realtek The current Realtek code makes no specific provision for turning stuff off. The codec chip is placed into low-power mode generically, but this doesn't turn off any external hardware connected to it, in particular external amplifiers. This patch creates a hook function that is called by the codec suspend/resume functions. It ought to disable any external hardware in a device-specific way. I've implemented a generic ALC889 function that sets the EAPD pin properly, and used it for the Acer Aspire 8930G which can benefit from this feature. On my laptop, this results in ~0.5W extra savings. Signed-off-by: Hector Martin Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed