summaryrefslogtreecommitdiff
path: root/hw/usb/dev-unifying.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-03-24 18:59:29 +0100
committerPeter Wu <peter@lekensteyn.nl>2014-03-24 18:59:29 +0100
commitf0a5825c53db1f659f897eec62506f7763ee6280 (patch)
tree7b56e8d6751802080b32ec86f0832f2b0ca40191 /hw/usb/dev-unifying.c
parentbed6803378b4e1eb258f3e5a25eb1be82e7117e5 (diff)
downloadqemu-f0a5825c53db1f659f897eec62506f7763ee6280.tar.gz
unifying: prevent sending HID++ reports if not enabled
Interrupts were enabled for EP3, but the WinXP driver did not support the reports sent through it. Prevent generating HID++ reports for devices that are not in DJ mode (i.e. in standard HID mode). Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'hw/usb/dev-unifying.c')
-rw-r--r--hw/usb/dev-unifying.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb/dev-unifying.c b/hw/usb/dev-unifying.c
index 926e2f7e56..0eb0ebe5af 100644
--- a/hw/usb/dev-unifying.c
+++ b/hw/usb/dev-unifying.c
@@ -358,6 +358,7 @@ static void usb_ltunify_hid_event(HIDState *hs)
if (s->devices[ifnum].mode == LTUNIFY_MODE_HID) {
usb_wakeup(s->intr[ifnum], 0);
} else {
+ assert(s->devices[ifnum].mode == LTUNIFY_MODE_DJ);
usb_wakeup(s->intr[IFACE_HIDPP], 0);
}
}