From: Carlos Corbacho <carlos@strangeworlds.co.uk>
To: trenn@suse.de
Cc: Len Brown <lenb@kernel.org>,
linux-acpi <linux-acpi@vger.kernel.org>,
Jonathan Woithe <jwoithe@physics.adelaide.edu.au>,
Corentin CHARY <corentincj@iksaif.net>,
Henrique de Moraes Holschuh <hmh@hmh.eng.br>,
Mattia Dongili <malattia@linux.it>
Subject: Re: [PATCH 7/7] Who controls brightness functionality: vendor specific or generic video driver
Date: Sat, 19 Apr 2008 12:03:11 +0100 [thread overview]
Message-ID: <200804191203.13091.carlos@strangeworlds.co.uk> (raw)
In-Reply-To: <1208372572.1784.352.camel@queen.suse.de>
On Wednesday 16 April 2008 20:02:52 Thomas Renninger wrote:
> Who controls brightness functionality: vendor specific or generic video
> driver
>
> Depending on the capablity of ACPI graphics devices and whether they
> implement all necessary functions so that the generic ACPI video driver can
> control them, decide at driver load time whether a vendor specific device
> driver or the ACPI video driver should control the brighntess
> functionality.
>
> Signed-off-by: Thomas Renninger <trenn@suse.de>
NACK the acer-wmi bit, use the following patch instead (feel free to fold it
into your superpatch though with my sign-off).
-Carlos
--
acer-wmi: Use ACPI video driver instead of WMI where possible
If the generic ACPI video driver can control the video, then we should hand
off control to it, rather than try to handle it ourselves.
Signed-off-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
---
drivers/misc/acer-wmi.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/drivers/misc/acer-wmi.c b/drivers/misc/acer-wmi.c
index dd13a37..0d69bc5 100644
--- a/drivers/misc/acer-wmi.c
+++ b/drivers/misc/acer-wmi.c
@@ -1100,6 +1100,14 @@ static int __init acer_wmi_init(void)
return -ENODEV;
}
+ if (acpi_video_support & ACPI_VIDEO_BRIGHTNESS &&
+ !(acpi_video_support & ACPI_VIDEO_FORCE_VENDOR_SPECIFIC) &&
+ has_cap(ACER_CAP_BRIGHTNESS)) {
+ interface->capability &= ~ACER_CAP_BRIGHTNESS;
+ printk(ACER_INFO "Brightness must be controlled by "
+ "generic video driver\n");
+ }
+
if (platform_driver_register(&acer_platform_driver)) {
printk(ACER_ERR "Unable to register platform driver.\n");
goto error_platform_register;
prev parent reply other threads:[~2008-04-19 11:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-16 19:02 [PATCH 7/7] Who controls brightness functionality: vendor specific or generic video driver Thomas Renninger
2008-04-16 19:08 ` Thomas Renninger
2008-04-16 21:01 ` Henrique de Moraes Holschuh
2008-04-17 19:32 ` Thomas Renninger
2008-04-19 11:03 ` Carlos Corbacho [this message]
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=200804191203.13091.carlos@strangeworlds.co.uk \
--to=carlos@strangeworlds.co.uk \
--cc=corentincj@iksaif.net \
--cc=hmh@hmh.eng.br \
--cc=jwoithe@physics.adelaide.edu.au \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=malattia@linux.it \
--cc=trenn@suse.de \
/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