Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 12 Nov 2001 00:48:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 12 Nov 2001 00:48:23 -0500 Received: from nat-pool-meridian.redhat.com ([199.183.24.200]:2608 "EHLO devserv.devel.redhat.com") by vger.kernel.org with ESMTP id ; Mon, 12 Nov 2001 00:48:19 -0500 Date: Mon, 12 Nov 2001 00:47:19 -0500 From: Pete Zaitcev To: Kai Germaschewski Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Pete Zaitcev Subject: Re: [PATCH] save sound mixer state over suspend Message-ID: <20011112004719.A6091@devserv.devel.redhat.com> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from kai@tp1.ruhr-uni-bochum.de on Sun, Nov 11, 2001 at 09:42:27PM +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > Date: Sun, 11 Nov 2001 21:42:27 +0100 (CET) > From: Kai Germaschewski > To: > cc: Linus Torvalds , Pete Zaitcev > The appended patch introduces two new functions to the ac97_codec > handling: ac97_save_state() and ac97_restore_state(). > These functions save/restore the mixer state over suspend. (So after > resume the volume is the same it was before) The patch itself looks ok, but I am wondering what is the difference between your ac97_restore_state and ac97_reset. I think you may be reinventing the wheel here. I cannot test the patch because my suspend/resume cycle retains mixer levels without it (2.2.14 stock, PCG-Z505JE), so I would not see any difference. -- Pete - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/