From: Colin Leroy Date: Sun, 1 May 2005 15:58:43 +0000 (-0700) Subject: [PATCH] pmac: save master volume on sleep X-Git-Tag: v2.6.12-rc4~136^2~158 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=085e6fc96bcf239cab8adc600aab2452d75590b1;p=pandora-kernel.git [PATCH] pmac: save master volume on sleep Ben's patch that shutdowns master switch and restores it after resume ("pmac: Improve sleep code of tumbler driver") isn't enough here on an iBook (snapper chip). The master switch is correctly saved and restored, but somehow tumbler_put_master_volume() gets called just after tumbler_set_master_volume() and sets mix->master_vol[*] to 0. So, on resuming, the master switch is reenabled, but the volume is set to 0. Here's a patch that also saves and restores master_vol. Signed-off-by: Colin Leroy Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed