From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Jens Taprogge <jens.taprogge@taprogge.org>,
platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH] [thinkpad-acpi] Add T410s and T420s LED support
Date: Fri, 23 Mar 2012 20:38:07 -0300 [thread overview]
Message-ID: <20120323233807.GA12072@khazad-dum.debian.net> (raw)
In-Reply-To: <20120323194355.GA27877@srcf.ucam.org>
On Fri, 23 Mar 2012, Matthew Garrett wrote:
> I'm a little unenthusiastic about just pulling this in without working
> out how userspace is going to consume it. It's a problem we may hit on
> other devices as well, so we potentially need some sort of consistent
> naming to indicate that it's a built-in mute LED.
Hmm, I am not enthusiastic about exposing MIC leds for userspace to screw up
at all. I'd rather expose an alsa mixer control that lets one mute/unmute
the platform MIC, and have the kernel (if the platform doesn't do it
already) enforce the LED to always be in the correct state.
In my book, MICs getting enabled "stealthly" is something to be avoided on
the design.
However, I am not sure this platform interface exists on thinkpads (I do
think there is something, though. Tracking the HKEY event on several DSDTs
and looking at what it touches in the EC, plus some experiments should be
able to give us a better picture).
Exposing the LED for anyone who wants to play with it looked like a good
compromise for the time being. Since it is not considered a "safe" led, it
is not something that will be made generally available (requires a kconfig
option to be set, which distros are not supposed to enable).
I don't have anything against using a standard name, if such a thing exists
though. But it would make a LOT more sense to have alsa provide a
standard-named *trigger* that could be hooked to any LED and follows the MIC
mute state of a mixer...
--
"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:[~2012-03-23 23:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-22 23:49 [PATCH] [thinkpad-acpi] Add T410s and T420s LED support Jens Taprogge
2012-03-23 19:39 ` Henrique de Moraes Holschuh
2012-03-23 19:43 ` Matthew Garrett
2012-03-23 20:07 ` Jens Taprogge
2012-03-23 23:38 ` Henrique de Moraes Holschuh [this message]
2012-03-24 0:05 ` Jens Taprogge
2012-03-24 2:50 ` Henrique de Moraes Holschuh
2012-03-24 15:44 ` Jens Taprogge
2012-03-28 16:16 ` Takashi Iwai
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=20120323233807.GA12072@khazad-dum.debian.net \
--to=hmh@hmh.eng.br \
--cc=jens.taprogge@taprogge.org \
--cc=mjg59@srcf.ucam.org \
--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