From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id B9C8667A6B for ; Fri, 22 Apr 2005 10:17:45 +1000 (EST) From: Benjamin Herrenschmidt To: Colin Leroy In-Reply-To: <20050421200408.5361a5b3@jack.colino.net> References: <20050421200408.5361a5b3@jack.colino.net> Content-Type: text/plain Date: Fri, 22 Apr 2005 10:17:14 +1000 Message-Id: <1114129034.18680.34.camel@gaston> Mime-Version: 1.0 Cc: Takashi Iwai , linuxppc-dev list , "debian-powerpc@lists.debian.org" , Andrew Morton Subject: Re: [PATCH 2.6.12-rc3] pmac: save master volume on sleep List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2005-04-21 at 20:04 +0200, Colin Leroy wrote: > Hi, > > 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. > Thanks, Looks good. Ben.