From: Pavel Machek <pavel@suse.cz>
To: Takashi Iwai <tiwai@suse.de>
Cc: Rajsekar <rajsekar@peacock.iitm.ernet.in>, linux-kernel@vger.kernel.org
Subject: Re: alsamixer muting when restoring from suspend.
Date: Sat, 3 Apr 2004 17:22:28 +0200 [thread overview]
Message-ID: <20040403152227.GA212@elf.ucw.cz> (raw)
In-Reply-To: <s5h8yhdxo58.wl@alsa2.suse.de>
Hi!
> > > > This I think is not a problem but rather a subtle bug.
> > > >
> > > > Alsamixer by default mutes all channels when loaded.
> > > > So when I `swsusp' my comp while I listen to music and restore the music
> > > > plays from where it left alright, but the channels are muted.
> > > > Is there a way to unmute them implicitly when restoring.
> > >
> > > which driver?
> > > not all drivers have suspend/resume callbacks.
> >
> > Could it be solved at higher layer, perhaps? Setting volume is common
> > to all drivers, and some kind of generic_alsa_suspend every alsa
> > driver would call might help...
>
> the problem is also that you need to reinitialize the chip after
> resume. the restoration of mixer config could be done by calling
> "alsactl store" at the suspend and "alsactl restore" at the resume in
> the user space. can apmd work for such a purpose even for software
> suspend?
Userspace should not be involved in suspend/resume. Having in-kernel
equivalent of alsactl store / alsactl restore might help alsa driver
authors... And might be enough for suspend-to-disk to +/- work. (Well,
unless sound was playing when user requested suspend, that one needs
proper support).
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
prev parent reply other threads:[~2004-04-03 15:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-31 2:57 alsamixer muting when restoring from suspend Rajsekar
2004-04-01 9:33 ` Takashi Iwai
2004-04-02 20:57 ` Pavel Machek
2004-04-03 12:05 ` Takashi Iwai
2004-04-03 15:22 ` Pavel Machek [this message]
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=20040403152227.GA212@elf.ucw.cz \
--to=pavel@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=rajsekar@peacock.iitm.ernet.in \
--cc=tiwai@suse.de \
/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