[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] virtio-input: retrieve EV_LED host config bits

From: Ladi Prosek
Subject: [Qemu-devel] [PATCH] virtio-input: retrieve EV_LED host config bits
Date: Thu, 31 Mar 2016 11:53:48 +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 <address@hidden>
 hw/input/virtio-input-host.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/input/virtio-input-host.c b/hw/input/virtio-input-host.c
index ddee54c..36856d6 100644
--- a/hw/input/virtio-input-host.c
+++ b/hw/input/virtio-input-host.c
@@ -124,6 +124,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);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]