* [PATCH] Input: Add keyboard quirk for HP Pavilion ZV6100 laptop
@ 2008-11-25 10:53 Rikard Ljungstrand
0 siblings, 0 replies; 3+ messages in thread
From: Rikard Ljungstrand @ 2008-11-25 10:53 UTC (permalink / raw)
To: dmitry.torokhov; +Cc: linux-input, apw
Add quirk for misbehaving volume buttons on HP Pavilion ZV6100 laptop which
are not sending keyrelease events, as reported by Aaron Pickett.
Signed-off-by: Rikard Ljungstrand <lrikard@student.chalmers.se>
---
drivers/input/keyboard/atkbd.c | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
index b1ce10f..1a3798e 100644
--- a/drivers/input/keyboard/atkbd.c
+++ b/drivers/input/keyboard/atkbd.c
@@ -868,6 +868,23 @@ static void atkbd_hp_keymap_fixup(struct atkbd *atkbd)
}
/*
+ * Perform fixup for HP Pavilion ZV6100 laptop that doesn't generate release
+ * for its volume buttons
+ */
+static void atkbd_hp_zv6100_keymap_fixup(struct atkbd *atkbd)
+{
+ const unsigned int forced_release_keys[] = {
+ 0xae, 0xb0,
+ };
+ int i;
+
+ if (atkbd->set == 2)
+ for (i = 0; i < ARRAY_SIZE(forced_release_keys); i++)
+ __set_bit(forced_release_keys[i],
+ atkbd->force_release_mask);
+}
+
+/*
* atkbd_set_keycode_table() initializes keyboard's keycode table
* according to the selected scancode set
*/
@@ -1478,6 +1495,15 @@ static struct dmi_system_id atkbd_dmi_quirk_table[] __initdata = {
.callback = atkbd_setup_fixup,
.driver_data = atkbd_hp_keymap_fixup,
},
+ {
+ .ident = "HP Pavilion ZV6100",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "Pavilion ZV6100"),
+ },
+ .callback = atkbd_setup_fixup,
+ .driver_data = atkbd_hp_zv6100_keymap_fixup,
+ },
{ }
};
-- 1.5.6.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] Input: Add keyboard quirk for HP Pavilion ZV6100 laptop
@ 2009-01-10 13:33 Rikard Ljungstrand
2009-01-10 21:29 ` Dmitry Torokhov
0 siblings, 1 reply; 3+ messages in thread
From: Rikard Ljungstrand @ 2009-01-10 13:33 UTC (permalink / raw)
To: dmitry.torokhov; +Cc: dtor, linux-input, linux-kernel, apw
Hi,
Sending an updated version of a trivial patch from last November which got no feedback on the list.
Applies cleanly against the latest input.git tree (and probably other recent trees).
Cheers,
Rikard
----
Add quirk for misbehaving volume buttons on HP Pavilion ZV6100 laptop which
are not sending keyrelease events, as reported by Aaron Pickett.
Signed-off-by: Rikard Ljungstrand <lrikard@student.chalmers.se>
---
drivers/input/keyboard/atkbd.c | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
index 379b7ff..99e73a1 100644
--- a/drivers/input/keyboard/atkbd.c
+++ b/drivers/input/keyboard/atkbd.c
@@ -868,9 +868,10 @@ static void atkbd_hp_keymap_fixup(struct atkbd *atkbd)
}
/*
- * Inventec system with broken key release on volume keys
+ * Perform fixup for Inventec system and HP Pavilion ZV6100 laptop that don't
+ * generate release for their volume buttons
*/
-static void atkbd_inventec_keymap_fixup(struct atkbd *atkbd)
+static void atkbd_inventec_and_hp_zv6100_keymap_fixup(struct atkbd *atkbd)
{
const unsigned int forced_release_keys[] = {
0xae, 0xb0,
@@ -1491,7 +1492,16 @@ static struct dmi_system_id atkbd_dmi_quirk_table[] __initdata = {
DMI_MATCH(DMI_PRODUCT_NAME, "SYMPHONY 6.0/7.0"),
},
.callback = atkbd_setup_fixup,
- .driver_data = atkbd_inventec_keymap_fixup,
+ .driver_data = atkbd_inventec_and_hp_zv6100_keymap_fixup,
+ },
+ {
+ .ident = "HP Pavilion ZV6100",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "Pavilion ZV6100"),
+ },
+ .callback = atkbd_setup_fixup,
+ .driver_data = atkbd_inventec_and_hp_zv6100_keymap_fixup,
},
{ }
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Input: Add keyboard quirk for HP Pavilion ZV6100 laptop
2009-01-10 13:33 Rikard Ljungstrand
@ 2009-01-10 21:29 ` Dmitry Torokhov
0 siblings, 0 replies; 3+ messages in thread
From: Dmitry Torokhov @ 2009-01-10 21:29 UTC (permalink / raw)
To: Rikard Ljungstrand; +Cc: linux-input, linux-kernel, apw
On Saturday 10 January 2009 05:33:05 Rikard Ljungstrand wrote:
> Hi,
>
> Sending an updated version of a trivial patch from last November which got
> no feedback on the list. Applies cleanly against the latest input.git tree
> (and probably other recent trees).
>
It got applied silently ;) Its in mainline now, as part of 2.6.29.
--
Dmitry
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-10 21:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-25 10:53 [PATCH] Input: Add keyboard quirk for HP Pavilion ZV6100 laptop Rikard Ljungstrand
-- strict thread matches above, loose matches on Subject: below --
2009-01-10 13:33 Rikard Ljungstrand
2009-01-10 21:29 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).