lirc_imon devices need to be added to usbhid module quirks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Karmic |
Fix Released
|
Medium
|
Surbhi Palande |
Bug Description
Justification:
Impact:
The original lirc_imon driver did not support ranges of device ids, but a few specific ones. Some new device have been added which are thus not supported.
Fix:
This patch adds a check for a range of device ids to the lirc_imon driver. This bug requests support for device id 0x43 which is supported in this range checked by this patch. Its a simple quirk and is available in linus tree upstream.
Test Case:
Was tested with 2.6.32 kernel which has this same patch.
========
Soundgraph devices come in a variety of configurations and a majority of the time are listed at the device level of a USB HID device, such as a mouse or keyboard. This causes the usbcore driver to load usbhid which binds to the device. After this, the lirc_imon module is loaded but is unable to bind to the device:
[ 1.883191] usbcore: registered new interface driver usbhid
[ 1.883194] usbhid: v2.6:USB HID core driver
[ 2.284009] usb 4-1: new low speed USB device using ohci_hcd and address 2
[ 2.540142] usb 4-1: configuration #1 chosen from 1 choice
[ 2.557154] input: HID 15c2:0042 as /devices/
[ 2.557222] generic-usb 0003:15C2:
[ 2.567143] generic-usb 0003:15C2:
My only fix to this is to instruct udev to unbind the usbhid module from the device which allows lirc_imon to bind to it thereafter. It would be better though if all devices listed for this module, were to be listed in hid-quirks.c as HID_QUIRK_IGNORE. There already seems to be a Soundgraph device defined for this, which I think all devices supported by lirc_imon should be patched in. File is attached for supported module device aliases.
Also to note, that the usbhid module defines options to allow quirks to be passed to the module, but all options passed though modprobe to usbhid seem to be ignored (reference http://
parm: quirks:Add/modify USB HID quirks by specifying quirks=
modprobe.
options usbhid quirks=
This option should work, but fails, which I why the proposed fix is necessary.
description: | updated |
Changed in linux (Ubuntu Karmic): | |
assignee: | nobody → Surbhi Palande (csurbhi) |
status: | Triaged → In Progress |
Changed in linux (Ubuntu Karmic): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Karmic): | |
status: | Fix Committed → Fix Released |
After investigation of this, a patch has already been committed upstream in linux-2.6:
http:// git.kernel. org/?p= linux/kernel/ git/torvalds/ linux-2. 6.git;a= commit; h=31f7fd795d17b 264c3c05e4a976f 963012c17c68
This has been pulled into the ubuntu-lucid tree as well. I am not exactly sure how this works, but is there anyways to have this synced or committed to the ubuntu-karmic tree?