Re: [RFC PATCH 4/5] ACPI video: support reversed _BCL method

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

 



On Wed, Mar 11, 2009 at 09:42:55AM +0800, Zhang Rui wrote:

> The index value returned by _BQC is the index in the PCTG package.
> if the _BCL package is in a reversed order, we can not use this index to
> get the value in device->brightness->levels[].
> For example, if the current brightness is 0x64, _BQC returns 0 in this
> case, but we can not translate this to value 0x14, we need a flag to
> tell us that _BCL is reversed.
> 
> But in the non-indexed case, _BQC always returns a percentage that can
> be used directly by ACPI video driver, i.e. we don't need to parse
> device->brightness->levels to get the real value. so we don't need to
> check the device->brightness->flags._BCL_reversed bit.

Ah, of course. Sorry, I should have got that. Thanks for the 
explanation!

Acked-by: Matthew Garrett <mjg@xxxxxxxxxx>

-- 
Matthew Garrett | mjg59@xxxxxxxxxxxxx
--
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