]> Git Repo - qemu.git/commitdiff
virtio-input: retrieve EV_LED host config bits
authorLadi Prosek <[email protected]>
Thu, 31 Mar 2016 09:53:48 +0000 (11:53 +0200)
committerGerd Hoffmann <[email protected]>
Wed, 13 Apr 2016 13:52:28 +0000 (15:52 +0200)
VIRTIO_INPUT_CFG_EV_BITS with subsel of EV_LED was always
returning an empty bitmap for pass-through input devices.

Signed-off-by: Ladi Prosek <[email protected]>
Message-id: 1459418028[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/input/virtio-input-host.c

index 9e0f46d88f3235434b615b5578155692a6c521b5..97b7dd6b5ce00dab3d04709c3829b6c21559c767 100644 (file)
@@ -125,6 +125,7 @@ static void virtio_input_host_realize(DeviceState *dev, Error **errp)
     virtio_input_bits_config(vih, EV_ABS, ABS_CNT);
     virtio_input_bits_config(vih, EV_MSC, MSC_CNT);
     virtio_input_bits_config(vih, EV_SW,  SW_CNT);
+    virtio_input_bits_config(vih, EV_LED, LED_CNT);
 
     qemu_set_fd_handler(vih->fd, virtio_input_host_event, NULL, vih);
     return;
This page took 0.02554 seconds and 4 git commands to generate.