From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
To: Matthew Garrett <mjg@redhat.com>
Cc: linux-acpi@vger.kernel.org, ibm-acpi@hmh.eng.br,
ibm-acpi-devel@lists.sourceforge.net,
platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH 2/2] thinkpad_acpi: Hook volume events
Date: Wed, 5 May 2010 08:30:05 -0300 [thread overview]
Message-ID: <20100505113004.GA19480@khazad-dum.debian.net> (raw)
In-Reply-To: <1272916980-11835-2-git-send-email-mjg@redhat.com>
On Mon, 03 May 2010, Matthew Garrett wrote:
> Not all Thinkpads generate events for volume hotkeys, so hook into the
> CMOS update and generate events from there without polling. This should
> let Pulseaudio do something sensible with the mute state.
The idea is sound, but it would be probably cleaner to do it only on those
thinkpads which need it. I don't like the idea of handling duplicate
notifications, and the logic depends entirely on nothing messing with the
mixer state behind our backs, I'd prefer to rely on it just when strictly
required.
Also, UCMS is called for a number of reasons. It would be best to filter
based on the UCMS parameter before doing an expensive PC CMOS RAM read or EC
read. We will be dealing with a finite number of thinkpads anyway.
On the same note, we need to be called *after* the UCMS method completes,
otherwise, we will have to schedule delayed work. I didn't study your ACPI
patch enough to know whether this happens, but that detail is not clear from
the description.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
next prev parent reply other threads:[~2010-05-05 11:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-03 20:02 [PATCH 1/2] acpi: Provide interface for driver notification on method call Matthew Garrett
2010-05-03 20:03 ` [PATCH 2/2] thinkpad_acpi: Hook volume events Matthew Garrett
2010-05-05 11:30 ` Henrique de Moraes Holschuh [this message]
2010-05-05 13:20 ` Matthew Garrett
2010-05-06 3:02 ` Henrique de Moraes Holschuh
[not found] ` <20100506030239.GB19265-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org>
2010-05-06 12:47 ` Matthew Garrett
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=20100505113004.GA19480@khazad-dum.debian.net \
--to=hmh@hmh.eng.br \
--cc=ibm-acpi-devel@lists.sourceforge.net \
--cc=ibm-acpi@hmh.eng.br \
--cc=linux-acpi@vger.kernel.org \
--cc=mjg@redhat.com \
--cc=platform-driver-x86@vger.kernel.org \
/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