Re: [PATCH 2/2] thinkpad_acpi: Hook volume events

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 05 May 2010, Matthew Garrett wrote:
> On Wed, May 05, 2010 at 08:30:05AM -0300, Henrique de Moraes Holschuh wrote:
> > 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.
> 
> In this case the notification is purely at the ALSA level, so there's no 
> harm caused by duplicate notifications.

Reading that stuff ain't cheap.  Either a locked trip through the LPC bus
for the CMOS nvram, or ACPI EC I/O (which is even worse, I fear.  That EC is
also hooked to LPC, and there's a lot more code involved).

I really would rather not enable it on boxes where it isn't required.  And
we know which ones are those: IBM thinkpads where the all-available-hotkeys
mask has the bits for the volume hotkeys set.

> > 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.
> 
> Passing the parameter is... difficult. That would involve rather more 
> surgery to the ACPI core, since the parameters are core-internal objects 
> at this point. It's an obvious feature though, so I'll look into it some 
> more.

It would be very very useful, though.

-- 
  "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
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux