From: Jeff Garzik <jgarzik@mandrakesoft.com>
To: Pete Zaitcev <zaitcev@redhat.com>
Cc: Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de>,
linux-kernel@vger.kernel.org,
Linus Torvalds <torvalds@transmeta.com>
Subject: Re: [PATCH] save sound mixer state over suspend
Date: Mon, 12 Nov 2001 01:03:00 -0500 [thread overview]
Message-ID: <3BEF6614.921EBED9@mandrakesoft.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0111112107530.1518-100000@vaio> <20011112004719.A6091@devserv.devel.redhat.com>
Pete Zaitcev wrote:
>
> > Date: Sun, 11 Nov 2001 21:42:27 +0100 (CET)
> > From: Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
> > To: <linux-kernel@vger.kernel.org>
> > cc: Linus Torvalds <torvalds@transmeta.com>, Pete Zaitcev <zaitcev@redhat.com>
>
> > 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.
As we mentioned on IRC, ymfpci uses ac97_codec, which does not contain
the ac97_reset function.
> 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.
2.2.14? Is that a typo? His was patch for 2.4.15-pre2...
Anyway, my comments per request:
The patch looks ok, but I wonder about the order in ymfpci_resume. You
load the mixer values -then- call ymfpci_download_image and
ymfpci_memload. It seems for the purposes of general sanity and
stability you would want to load the mixer values after doing those two
operations.
Jeff
--
Jeff Garzik | Only so many songs can be sung
Building 1024 | with two lips, two lungs, and one tongue.
MandrakeSoft | - nomeansno
next prev parent reply other threads:[~2001-11-12 6:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-11 20:42 Kai Germaschewski
2001-11-12 5:47 ` Pete Zaitcev
2001-11-12 6:03 ` Jeff Garzik [this message]
2001-11-12 8:40 ` Kai Germaschewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3BEF6614.921EBED9@mandrakesoft.com \
--to=jgarzik@mandrakesoft.com \
--cc=kai@tp1.ruhr-uni-bochum.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
--cc=zaitcev@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®