Linux ACPI
 help / color / mirror / Atom feed
From: Zhang Rui <rui.zhang@intel.com>
To: luke lin <luke.lin1105@gmail.com>
Cc: "linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	Luke lin <luke1105@gmail.com>
Subject: Re: Question about ACPI Video
Date: Tue, 26 Jan 2010 08:58:04 +0800	[thread overview]
Message-ID: <1264467484.22448.310.camel@rzhang1-desktop> (raw)
In-Reply-To: <d292941c1001250145o43dc2785p6cdc7d2ff6d47e76@mail.gmail.com>

On Mon, 2010-01-25 at 17:45 +0800, luke lin wrote:
> Hi all,
> 
> I read the drivers/acpi/video.c:
> 
> 895         result = acpi_video_device_lcd_set_level(device, max_level);
> 896         if (result)
> 897                 goto out_free_levels;
> 898
> 899         result = acpi_video_device_lcd_get_level_current(device, &level);
> 900         if (result)
> 901                 goto out_free_levels;
> 902
> 903         br->flags._BQC_use_index = (level == max_level ? 0 : 1);
> 904
> 905         if (!br->flags._BQC_use_index) {
> 912                 for (i = 2; i < br->count; i++)
> 913                         if (level_old == br->levels[i])
> 914                                 level = level_old;
> 915                 goto set_level;
> 916         }
> why after level == max_level, it will still need set_level again?
> is this a bug, or it is necessary.
> 
Because setting the backlight to max_level is just to check if _BQC uses
indexed value. We need to set the backlight back after this is done.

thanks,
rui


> thx
> luke
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



  reply	other threads:[~2010-01-26  0:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-25  9:45 Question about ACPI Video luke lin
2010-01-26  0:58 ` Zhang Rui [this message]
2010-01-26  3:24   ` Len Brown
2010-01-27 18:02   ` Edward Shao
2010-01-28  7:04     ` Zhang Rui

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=1264467484.22448.310.camel@rzhang1-desktop \
    --to=rui.zhang@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=luke.lin1105@gmail.com \
    --cc=luke1105@gmail.com \
    /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