aboutsummaryrefslogtreecommitdiff
path: root/hw/input
diff options
context:
space:
mode:
authorLadi Prosek <lprosek@redhat.com>2016-03-31 11:53:48 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-04-13 15:52:28 +0200
commit848c4d4480561154ada54851ba411aea3977c771 (patch)
tree888545a7f992c882af1dc985d542de1f3ded6dc7 /hw/input
parent27a7bbcdf9483be3b4c0b816d59676c8715c2af3 (diff)
downloadqemu-848c4d4480561154ada54851ba411aea3977c771.zip
qemu-848c4d4480561154ada54851ba411aea3977c771.tar.gz
qemu-848c4d4480561154ada54851ba411aea3977c771.tar.bz2
virtio-input: retrieve EV_LED host config bits
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 <lprosek@redhat.com> Message-id: 1459418028-7473-1-git-send-email-lprosek@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/input')
-rw-r--r--hw/input/virtio-input-host.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/input/virtio-input-host.c b/hw/input/virtio-input-host.c
index 9e0f46d..97b7dd6 100644
--- a/hw/input/virtio-input-host.c
+++ b/hw/input/virtio-input-host.c
@@ -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;