From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.195]) by ozlabs.org (Postfix) with ESMTP id 6183767AC6 for ; Mon, 25 Apr 2005 02:50:14 +1000 (EST) Received: by rproxy.gmail.com with SMTP id y7so1275335rne for ; Sun, 24 Apr 2005 09:50:13 -0700 (PDT) Message-ID: <6dc076840504240943598b05f2@mail.gmail.com> Date: Sun, 24 Apr 2005 18:43:32 +0200 From: Takashi Iwai To: Colin Leroy In-Reply-To: <20050424182456.34e92bd2@jack.colino.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <20050421200408.5361a5b3@jack.colino.net> <1114129034.18680.34.camel@gaston> <20050424182456.34e92bd2@jack.colino.net> Cc: Takashi Iwai , "debian-powerpc@lists.debian.org" , Andrew Morton , linuxppc-dev list Subject: Re: [PATCH 2.6.12-rc3] pmac: save master volume on sleep Reply-To: Takashi Iwai List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Colin, the patch looks OK to me too. Could you resend this to Jaroslav to apply it to ALSA tree, since I'm in vacation...? Thanks. Takashi On 4/24/05, Colin Leroy wrote: > On 22 Apr 2005 at 10h04, Benjamin Herrenschmidt wrote: >=20 > Hi, >=20 > > > 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. >=20 > Takashi: any news or comments on this? >=20 > Thanks, > -- > Colin >=20 >