Bug 41142

Summary: HuiJia USB Gamepad is detected as single joystick device although two SNES gamepads are connected to it
Product: Drivers Reporter: Clemens Werther (clemens.werther)
Component: Input DevicesAssignee: Jiri Kosina (jikos)
Status: RESOLVED CODE_FIX    
Severity: normal CC: clemens.werther, jikos
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.1.0-rc1+ Subsystem:
Regression: No Bisected commit-id:
Attachments: create joystick devices for both gamepads connected to a HuiJia USB Gamepad connector

Description Clemens Werther 2011-08-14 11:29:40 UTC
Created attachment 68772 [details]
create joystick devices for both gamepads connected to a HuiJia USB Gamepad connector

Actual Results:
When I connect a HuiJia USB Gamepad (a connector for two SNES gamepads) to my computer, only one jostick device shows up, handling the inputs of both gamepads.

Expected Results:
Each gamepad should be detected as a separate joystick.


Attachment:
The attached patch leads to the expected result, but altough two jostick devices are created, four events are created, too.
I am not sure, what event 9 and 10 do, though.

# lsinput
[...]
/dev/input/event7
   bustype : BUS_USB
   vendor  : 0xe8f
   product : 0x3013
   version : 272
   name    : "HuiJia  USB GamePad"
   phys    : "usb-0000:00:1d.0-1/input0"
   uniq    : ""
   bits ev : EV_SYN EV_KEY EV_ABS EV_MSC

/dev/input/event8
   bustype : BUS_USB
   vendor  : 0xe8f
   product : 0x3013
   version : 272
   name    : "HuiJia  USB GamePad"
   phys    : "usb-0000:00:1d.0-1/input0"
   uniq    : ""
   bits ev : EV_SYN EV_KEY EV_ABS EV_MSC

/dev/input/event9
   bustype : BUS_USB
   vendor  : 0xe8f
   product : 0x3013
   version : 272
   name    : "HuiJia  USB GamePad"
   phys    : "usb-0000:00:1d.0-1/input0"
   uniq    : ""
   bits ev : EV_SYN

/dev/input/event10
   bustype : BUS_USB
   vendor  : 0xe8f
   product : 0x3013
   version : 272
   name    : "HuiJia  USB GamePad"
   phys    : "usb-0000:00:1d.0-1/input0"
   uniq    : ""
   bits ev : EV_SYN
Comment 1 Jiri Kosina 2011-08-25 13:36:15 UTC
Applied, thanks.