mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] add quirk to fix volume wheel on Toshiba U300 laptops
@ 2010-06-09 17:38 Andrew Kohlsmith
  0 siblings, 0 replies; only message in thread
From: Andrew Kohlsmith @ 2010-06-09 17:38 UTC (permalink / raw)
  To: vojtech, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 271 bytes --]

Good afternoon,

Here is a small patch which adds a quirk match for these laptops; the volume 
wheel on them does not stop when you move it (the wheel does not send 'up' 
keycodes).

Patch applies cleanly to linus' tree as of about...10 minutes ago. :-)

Regards,
Andrew

[-- Attachment #2: toshiba-u300-volume-sw-fix.diff --]
[-- Type: text/x-patch, Size: 831 bytes --]

diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
index d358ef8..f1e1801 100644
--- a/drivers/input/keyboard/atkbd.c
+++ b/drivers/input/keyboard/atkbd.c
@@ -1715,6 +1715,22 @@ static const struct dmi_system_id atkbd_dmi_quirk_table[] __initconst = {
 		.callback = atkbd_setup_scancode_fixup,
 		.driver_data = atkbd_oqo_01plus_scancode_fixup,
 	},
+	{
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Satellite U300"),
+		},
+		.callback = atkbd_setup_forced_release,
+		.driver_data = atkbd_volume_forced_release_keys,
+	},
+	{
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Satellite Pro U300"),
+		},
+		.callback = atkbd_setup_forced_release,
+		.driver_data = atkbd_volume_forced_release_keys,
+	},
 	{ }
 };
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-09 18:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-09 17:38 [patch] add quirk to fix volume wheel on Toshiba U300 laptops Andrew Kohlsmith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®