diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2011-11-17 08:12:01 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-11-22 17:08:28 -0500 |
commit | cb99221ba74bb16576a9c3b7e49357b6b12ff3ea (patch) | |
tree | 3aee851b0643491ba0208b022c92335e0e9550dd /drivers/hid/Kconfig | |
parent | fad8c0e34323eb7789f93750258a2cf02dc6cf69 (diff) |
HID: wiimote: Add extension support stub
The wiimote supports several extensions. This adds a separate source file which
handles all extensions and can be disabled at compile-time.
The driver reacts on "plug"-events on the extension port and starts a worker
which initializes or deinitializes the extensions.
Currently, the initialization logic is not fully understood and we can only
detect and enable all extensions when all extensions are deactivated. Therefore,
we need to disable all extensions, then detect and activate them again to react
on "plug"-events.
However, deactivating extensions will generate a new "plug"-event and we will
never leave that loop. Hence, we only support extensions if they are plugged
before the wiimote is connected (or before the ext-input device is opened). In
the future we may support full extension hotplug support, but
reverse-engineering this may take a while.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/Kconfig')
-rw-r--r-- | drivers/hid/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 22a4a051f221..7a0c6f956d3e 100644 --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig | |||
@@ -623,6 +623,15 @@ config HID_WIIMOTE | |||
623 | ---help--- | 623 | ---help--- |
624 | Support for the Nintendo Wii Remote bluetooth device. | 624 | Support for the Nintendo Wii Remote bluetooth device. |
625 | 625 | ||
626 | config HID_WIIMOTE_EXT | ||
627 | bool "Nintendo Wii Remote Extension support" | ||
628 | depends on HID_WIIMOTE | ||
629 | default HID_WIIMOTE | ||
630 | ---help--- | ||
631 | Support for extension controllers of the Nintendo Wii Remote. Say yes | ||
632 | here if you want to use the Nintendo Motion+, Nunchuck or Classic | ||
633 | extension controllers with your Wii Remote. | ||
634 | |||
626 | config HID_ZEROPLUS | 635 | config HID_ZEROPLUS |
627 | tristate "Zeroplus based game controller support" | 636 | tristate "Zeroplus based game controller support" |
628 | depends on USB_HID | 637 | depends on USB_HID |