HID: wiimote: add MP quirks
Devices which have built-in motion plus ports don't need MP detection logic. The new WIIMOD_BUILTIN_MP modules sets the WIIPROTO_FLAG_BUILTIN_MP flag which disables polling for MP. Some other devices erroneously report that they support motion-plus. For these devices and all devices without extension ports, we load WIIMOD_NO_MP which sets WIIPROTO_FLAG_NO_MP. This effectively disables all MP detection logic. Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
@@ -44,6 +44,8 @@
|
||||
#define WIIPROTO_FLAG_MP_ACTIVE 0x2000
|
||||
#define WIIPROTO_FLAG_EXITING 0x4000
|
||||
#define WIIPROTO_FLAG_DRM_LOCKED 0x8000
|
||||
#define WIIPROTO_FLAG_BUILTIN_MP 0x010000
|
||||
#define WIIPROTO_FLAG_NO_MP 0x020000
|
||||
|
||||
#define WIIPROTO_FLAGS_LEDS (WIIPROTO_FLAG_LED1 | WIIPROTO_FLAG_LED2 | \
|
||||
WIIPROTO_FLAG_LED3 | WIIPROTO_FLAG_LED4)
|
||||
@@ -165,6 +167,8 @@ enum wiimod_module {
|
||||
WIIMOD_LED4,
|
||||
WIIMOD_ACCEL,
|
||||
WIIMOD_IR,
|
||||
WIIMOD_BUILTIN_MP,
|
||||
WIIMOD_NO_MP,
|
||||
WIIMOD_NUM,
|
||||
WIIMOD_NULL = WIIMOD_NUM,
|
||||
};
|
||||
|
Reference in New Issue
Block a user