mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
linux: add quirk patch for aureal remote support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
8f56ca0205
commit
27b853cabe
113
packages/linux/patches/linux-2.6.36-aureal_remote_quirk-0.1.diff
Normal file
113
packages/linux/patches/linux-2.6.36-aureal_remote_quirk-0.1.diff
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
diff -Naur linux-2.6.36-rc6/drivers/hid/hid-aureal.c linux-2.6.36-rc6.patch/drivers/hid/hid-aureal.c
|
||||||
|
--- linux-2.6.36-rc6/drivers/hid/hid-aureal.c 1970-01-01 01:00:00.000000000 +0100
|
||||||
|
+++ linux-2.6.36-rc6.patch/drivers/hid/hid-aureal.c 2010-10-05 02:28:50.925421529 +0200
|
||||||
|
@@ -0,0 +1,60 @@
|
||||||
|
+/*
|
||||||
|
+ * HID driver for some sunplus "special" devices
|
||||||
|
+ *
|
||||||
|
+ * Copyright (c) 1999 Andreas Gal
|
||||||
|
+ * Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz>
|
||||||
|
+ * Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc
|
||||||
|
+ * Copyright (c) 2006-2007 Jiri Kosina
|
||||||
|
+ * Copyright (c) 2007 Paul Walmsley
|
||||||
|
+ * Copyright (c) 2008 Jiri Slaby
|
||||||
|
+ * Copyright (c) 2010 Franco Catrin <fcatrin@gmail.com>
|
||||||
|
+ */
|
||||||
|
+
|
||||||
|
+/*
|
||||||
|
+ * This program is free software; you can redistribute it and/or modify it
|
||||||
|
+ * under the terms of the GNU General Public License as published by the Free
|
||||||
|
+ * Software Foundation; either version 2 of the License, or (at your option)
|
||||||
|
+ * any later version.
|
||||||
|
+ */
|
||||||
|
+
|
||||||
|
+#include <linux/device.h>
|
||||||
|
+#include <linux/hid.h>
|
||||||
|
+#include <linux/module.h>
|
||||||
|
+
|
||||||
|
+#include "hid-ids.h"
|
||||||
|
+
|
||||||
|
+static void aureal_report_fixup(struct hid_device *hdev, __u8 *rdesc,
|
||||||
|
+ unsigned int rsize)
|
||||||
|
+{
|
||||||
|
+ if (rsize >= 54 && rdesc[52] == 0x25 && rdesc[53] == 0x01) {
|
||||||
|
+ dev_info(&hdev->dev, "fixing Aureal Cy se W-01RN USB_V3.1 "
|
||||||
|
+ "report descriptor. Keyboard Logical Maximum = 101\n");
|
||||||
|
+ rdesc[53] = 0x65;
|
||||||
|
+ }
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+static const struct hid_device_id aureal_devices[] = {
|
||||||
|
+ { HID_USB_DEVICE(USB_VENDOR_ID_AUREAL, USB_DEVICE_ID_AUREAL_W01RN) },
|
||||||
|
+ { }
|
||||||
|
+};
|
||||||
|
+MODULE_DEVICE_TABLE(hid, aureal_devices);
|
||||||
|
+
|
||||||
|
+static struct hid_driver aureal_driver = {
|
||||||
|
+ .name = "aureal",
|
||||||
|
+ .id_table = aureal_devices,
|
||||||
|
+ .report_fixup = aureal_report_fixup,
|
||||||
|
+};
|
||||||
|
+
|
||||||
|
+static int __init aureal_init(void)
|
||||||
|
+{
|
||||||
|
+ return hid_register_driver(&aureal_driver);
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+static void __exit aureal_exit(void)
|
||||||
|
+{
|
||||||
|
+ hid_unregister_driver(&aureal_driver);
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+module_init(aureal_init);
|
||||||
|
+module_exit(aureal_exit);
|
||||||
|
+MODULE_LICENSE("GPL");
|
||||||
|
diff -Naur linux-2.6.36-rc6/drivers/hid/hid-ids.h linux-2.6.36-rc6.patch/drivers/hid/hid-ids.h
|
||||||
|
--- linux-2.6.36-rc6/drivers/hid/hid-ids.h 2010-09-29 03:01:22.000000000 +0200
|
||||||
|
+++ linux-2.6.36-rc6.patch/drivers/hid/hid-ids.h 2010-10-05 02:30:00.651266940 +0200
|
||||||
|
@@ -6,6 +6,7 @@
|
||||||
|
* Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc
|
||||||
|
* Copyright (c) 2006-2007 Jiri Kosina
|
||||||
|
* Copyright (c) 2007 Paul Walmsley
|
||||||
|
+ * Copyright (c) 2010 Franco Catrin <fcatrin@gmail.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
@@ -316,6 +317,9 @@
|
||||||
|
#define USB_DEVICE_ID_KYE_ERGO_525V 0x0087
|
||||||
|
#define USB_DEVICE_ID_KYE_GPEN_560 0x5003
|
||||||
|
|
||||||
|
+#define USB_VENDOR_ID_AUREAL 0x0755
|
||||||
|
+#define USB_DEVICE_ID_AUREAL_W01RN 0x2626
|
||||||
|
+
|
||||||
|
#define USB_VENDOR_ID_LABTEC 0x1020
|
||||||
|
#define USB_DEVICE_ID_LABTEC_WIRELESS_KEYBOARD 0x0006
|
||||||
|
|
||||||
|
diff -Naur linux-2.6.36-rc6/drivers/hid/Kconfig linux-2.6.36-rc6.patch/drivers/hid/Kconfig
|
||||||
|
--- linux-2.6.36-rc6/drivers/hid/Kconfig 2010-09-29 03:01:22.000000000 +0200
|
||||||
|
+++ linux-2.6.36-rc6.patch/drivers/hid/Kconfig 2010-10-05 02:28:50.936421663 +0200
|
||||||
|
@@ -87,6 +87,13 @@
|
||||||
|
Say Y here if you want support for keyboards of Apple iBooks, PowerBooks,
|
||||||
|
MacBooks, MacBook Pros and Apple Aluminum.
|
||||||
|
|
||||||
|
+config HID_AUREAL
|
||||||
|
+ tristate "Aureal" if EMBEDDED
|
||||||
|
+ depends on USB_HID
|
||||||
|
+ default !EMBEDDED
|
||||||
|
+ ---help---
|
||||||
|
+ Support for Aureal Cy se W-01RN Remote Controller
|
||||||
|
+
|
||||||
|
config HID_BELKIN
|
||||||
|
tristate "Belkin" if EMBEDDED
|
||||||
|
depends on USB_HID
|
||||||
|
diff -Naur linux-2.6.36-rc6/drivers/hid/Makefile linux-2.6.36-rc6.patch/drivers/hid/Makefile
|
||||||
|
--- linux-2.6.36-rc6/drivers/hid/Makefile 2010-09-29 03:01:22.000000000 +0200
|
||||||
|
+++ linux-2.6.36-rc6.patch/drivers/hid/Makefile 2010-10-05 02:28:50.938421687 +0200
|
||||||
|
@@ -26,6 +26,7 @@
|
||||||
|
obj-$(CONFIG_HID_A4TECH) += hid-a4tech.o
|
||||||
|
obj-$(CONFIG_HID_ACRUX_FF) += hid-axff.o
|
||||||
|
obj-$(CONFIG_HID_APPLE) += hid-apple.o
|
||||||
|
+obj-$(CONFIG_HID_AUREAL) += hid-aureal.o
|
||||||
|
obj-$(CONFIG_HID_BELKIN) += hid-belkin.o
|
||||||
|
obj-$(CONFIG_HID_CANDO) += hid-cando.o
|
||||||
|
obj-$(CONFIG_HID_CHERRY) += hid-cherry.o
|
@ -1630,6 +1630,7 @@ CONFIG_USB_HIDDEV=y
|
|||||||
# CONFIG_HID_A4TECH is not set
|
# CONFIG_HID_A4TECH is not set
|
||||||
# CONFIG_HID_ACRUX_FF is not set
|
# CONFIG_HID_ACRUX_FF is not set
|
||||||
# CONFIG_HID_APPLE is not set
|
# CONFIG_HID_APPLE is not set
|
||||||
|
CONFIG_HID_AUREAL=y
|
||||||
# CONFIG_HID_BELKIN is not set
|
# CONFIG_HID_BELKIN is not set
|
||||||
# CONFIG_HID_CANDO is not set
|
# CONFIG_HID_CANDO is not set
|
||||||
# CONFIG_HID_CHERRY is not set
|
# CONFIG_HID_CHERRY is not set
|
||||||
@ -1653,7 +1654,7 @@ CONFIG_HID_MICROSOFT=y
|
|||||||
# CONFIG_HID_MOSART is not set
|
# CONFIG_HID_MOSART is not set
|
||||||
# CONFIG_HID_MONTEREY is not set
|
# CONFIG_HID_MONTEREY is not set
|
||||||
# CONFIG_HID_NTRIG is not set
|
# CONFIG_HID_NTRIG is not set
|
||||||
CONFIG_HID_ORTEK=y
|
# CONFIG_HID_ORTEK is not set
|
||||||
# CONFIG_HID_PANTHERLORD is not set
|
# CONFIG_HID_PANTHERLORD is not set
|
||||||
# CONFIG_HID_PETALYNX is not set
|
# CONFIG_HID_PETALYNX is not set
|
||||||
# CONFIG_HID_PICOLCD is not set
|
# CONFIG_HID_PICOLCD is not set
|
||||||
|
@ -1564,6 +1564,7 @@ CONFIG_USB_HIDDEV=y
|
|||||||
# CONFIG_HID_A4TECH is not set
|
# CONFIG_HID_A4TECH is not set
|
||||||
# CONFIG_HID_ACRUX_FF is not set
|
# CONFIG_HID_ACRUX_FF is not set
|
||||||
# CONFIG_HID_APPLE is not set
|
# CONFIG_HID_APPLE is not set
|
||||||
|
CONFIG_HID_AUREAL=y
|
||||||
# CONFIG_HID_BELKIN is not set
|
# CONFIG_HID_BELKIN is not set
|
||||||
# CONFIG_HID_CANDO is not set
|
# CONFIG_HID_CANDO is not set
|
||||||
# CONFIG_HID_CHERRY is not set
|
# CONFIG_HID_CHERRY is not set
|
||||||
@ -1587,7 +1588,7 @@ CONFIG_HID_MICROSOFT=y
|
|||||||
# CONFIG_HID_MOSART is not set
|
# CONFIG_HID_MOSART is not set
|
||||||
# CONFIG_HID_MONTEREY is not set
|
# CONFIG_HID_MONTEREY is not set
|
||||||
# CONFIG_HID_NTRIG is not set
|
# CONFIG_HID_NTRIG is not set
|
||||||
CONFIG_HID_ORTEK=y
|
# CONFIG_HID_ORTEK is not set
|
||||||
# CONFIG_HID_PANTHERLORD is not set
|
# CONFIG_HID_PANTHERLORD is not set
|
||||||
# CONFIG_HID_PETALYNX is not set
|
# CONFIG_HID_PETALYNX is not set
|
||||||
# CONFIG_HID_PICOLCD is not set
|
# CONFIG_HID_PICOLCD is not set
|
||||||
|
@ -1761,6 +1761,7 @@ CONFIG_USB_HIDDEV=y
|
|||||||
# CONFIG_HID_A4TECH is not set
|
# CONFIG_HID_A4TECH is not set
|
||||||
# CONFIG_HID_ACRUX_FF is not set
|
# CONFIG_HID_ACRUX_FF is not set
|
||||||
# CONFIG_HID_APPLE is not set
|
# CONFIG_HID_APPLE is not set
|
||||||
|
CONFIG_HID_AUREAL=y
|
||||||
# CONFIG_HID_BELKIN is not set
|
# CONFIG_HID_BELKIN is not set
|
||||||
# CONFIG_HID_CANDO is not set
|
# CONFIG_HID_CANDO is not set
|
||||||
# CONFIG_HID_CHERRY is not set
|
# CONFIG_HID_CHERRY is not set
|
||||||
@ -1784,7 +1785,7 @@ CONFIG_HID_MICROSOFT=y
|
|||||||
# CONFIG_HID_MOSART is not set
|
# CONFIG_HID_MOSART is not set
|
||||||
# CONFIG_HID_MONTEREY is not set
|
# CONFIG_HID_MONTEREY is not set
|
||||||
# CONFIG_HID_NTRIG is not set
|
# CONFIG_HID_NTRIG is not set
|
||||||
CONFIG_HID_ORTEK=y
|
# CONFIG_HID_ORTEK is not set
|
||||||
# CONFIG_HID_PANTHERLORD is not set
|
# CONFIG_HID_PANTHERLORD is not set
|
||||||
# CONFIG_HID_PETALYNX is not set
|
# CONFIG_HID_PETALYNX is not set
|
||||||
# CONFIG_HID_PICOLCD is not set
|
# CONFIG_HID_PICOLCD is not set
|
||||||
|
@ -1603,6 +1603,7 @@ CONFIG_USB_HIDDEV=y
|
|||||||
# CONFIG_HID_A4TECH is not set
|
# CONFIG_HID_A4TECH is not set
|
||||||
# CONFIG_HID_ACRUX_FF is not set
|
# CONFIG_HID_ACRUX_FF is not set
|
||||||
# CONFIG_HID_APPLE is not set
|
# CONFIG_HID_APPLE is not set
|
||||||
|
CONFIG_HID_AUREAL=y
|
||||||
# CONFIG_HID_BELKIN is not set
|
# CONFIG_HID_BELKIN is not set
|
||||||
# CONFIG_HID_CANDO is not set
|
# CONFIG_HID_CANDO is not set
|
||||||
# CONFIG_HID_CHERRY is not set
|
# CONFIG_HID_CHERRY is not set
|
||||||
@ -1626,7 +1627,7 @@ CONFIG_HID_MICROSOFT=y
|
|||||||
# CONFIG_HID_MOSART is not set
|
# CONFIG_HID_MOSART is not set
|
||||||
# CONFIG_HID_MONTEREY is not set
|
# CONFIG_HID_MONTEREY is not set
|
||||||
# CONFIG_HID_NTRIG is not set
|
# CONFIG_HID_NTRIG is not set
|
||||||
CONFIG_HID_ORTEK=y
|
# CONFIG_HID_ORTEK is not set
|
||||||
# CONFIG_HID_PANTHERLORD is not set
|
# CONFIG_HID_PANTHERLORD is not set
|
||||||
# CONFIG_HID_PETALYNX is not set
|
# CONFIG_HID_PETALYNX is not set
|
||||||
# CONFIG_HID_PICOLCD is not set
|
# CONFIG_HID_PICOLCD is not set
|
||||||
|
@ -1538,6 +1538,7 @@ CONFIG_USB_HIDDEV=y
|
|||||||
# CONFIG_HID_A4TECH is not set
|
# CONFIG_HID_A4TECH is not set
|
||||||
# CONFIG_HID_ACRUX_FF is not set
|
# CONFIG_HID_ACRUX_FF is not set
|
||||||
# CONFIG_HID_APPLE is not set
|
# CONFIG_HID_APPLE is not set
|
||||||
|
CONFIG_HID_AUREAL=y
|
||||||
# CONFIG_HID_BELKIN is not set
|
# CONFIG_HID_BELKIN is not set
|
||||||
# CONFIG_HID_CANDO is not set
|
# CONFIG_HID_CANDO is not set
|
||||||
# CONFIG_HID_CHERRY is not set
|
# CONFIG_HID_CHERRY is not set
|
||||||
@ -1561,7 +1562,7 @@ CONFIG_HID_MICROSOFT=y
|
|||||||
# CONFIG_HID_MOSART is not set
|
# CONFIG_HID_MOSART is not set
|
||||||
# CONFIG_HID_MONTEREY is not set
|
# CONFIG_HID_MONTEREY is not set
|
||||||
# CONFIG_HID_NTRIG is not set
|
# CONFIG_HID_NTRIG is not set
|
||||||
CONFIG_HID_ORTEK=y
|
# CONFIG_HID_ORTEK is not set
|
||||||
# CONFIG_HID_PANTHERLORD is not set
|
# CONFIG_HID_PANTHERLORD is not set
|
||||||
# CONFIG_HID_PETALYNX is not set
|
# CONFIG_HID_PETALYNX is not set
|
||||||
# CONFIG_HID_PICOLCD is not set
|
# CONFIG_HID_PICOLCD is not set
|
||||||
|
Loading…
x
Reference in New Issue
Block a user