From: Giuliano Pochini Date: Sun, 14 Feb 2010 17:15:59 +0000 (+0100) Subject: ALSA: Echoaudio - Add suspend support #1 X-Git-Tag: v2.6.34-rc1~243^2~2^2~13^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad3499f4668f684ef6e5d0222ae14d5e4ade1fdd;p=pandora-kernel.git ALSA: Echoaudio - Add suspend support #1 Move the controls init code outside the init_hw() function because is must not be called during resume. This patch moves the code that initializes the card's controls with default valued from the init_hw() function into a separated set_mixer_defaults() function (one for each of the 16 supported cards). This change is necessary because during resume we must resurrect the hardware without losing the previous settings. set_mixer_defaults() must be called only once when the module is loaded. Signed-off-by: Giuliano Pochini Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed