Skip to contentSkip to conversation

virtio-input: retrieve EV_LED host config bits

PATCH New Ladi Prosek 1 participant 1 message Mar 31, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 hw/input/virtio-input-host.c | 1 +
 1 file changed, 1 insertion(+)
hw/input/virtio-input-host.c +1 -0
index ddee54c..36856d6 100644
@@ -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);
     return;
Signature · 1 line
2.5.5