touch: set maximum count value of multitouch point at device
authorGiWoong Kim <giwoong.kim@samsung.com>
Wed, 3 Jun 2015 06:15:34 +0000 (15:15 +0900)
committerGiWoong Kim <giwoong.kim@samsung.com>
Wed, 3 Jun 2015 06:25:46 +0000 (15:25 +0900)
Change-Id: I0070cde93cc88093ba191a9ffcca415a1965ab28
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/hw/virtio/maru_virtio_pci.c
tizen/src/hw/virtio/maru_virtio_touchscreen.c

index 4be81afafa7fad819066c3fa011da35e3c19ff6c..3271a860877f91bb56768d7d501e35c215c6ce13 100644 (file)
@@ -187,7 +187,7 @@ struct VirtIORotaryPCI {
 
 static Property virtio_touchscreen_pci_properties[] = {
     DEFINE_PROP_UINT32(TOUCHSCREEN_OPTION_NAME,
-        VirtIOTouchscreenPCI,vdev.max_finger, DEFAULT_MAX_FINGER),
+        VirtIOTouchscreenPCI, vdev.max_finger, DEFAULT_MAX_FINGER),
     DEFINE_PROP_END_OF_LIST(),
 };
 
index 85b5960e36f34a67b63c990e20d160aaf4d8a43c..4399b8b2cc994b908e85ad1a10f769c212a9a915 100644 (file)
@@ -312,6 +312,7 @@ static void virtio_touchscreen_device_realize(DeviceState *dev, Error **errp)
 
     INFO("initialize touchscreen device : %d\n", ts->max_finger);
 
+    set_emul_max_touch_point(ts->max_finger);
     virtio_init(vdev, DEVICE_NAME, VIRTIO_ID_TOUCHSCREEN, 4);
     /*if (ts == NULL) {
         ERR("failed to initialize the touchscreen device\n");
@@ -343,6 +344,8 @@ static void virtio_touchscreen_device_unrealize(DeviceState *dev, Error **errp)
 }
 
 static Property virtio_touchscreen_properties[] = {
+    DEFINE_PROP_UINT32(TOUCHSCREEN_OPTION_NAME,
+        VirtIOTouchscreen, max_finger, DEFAULT_MAX_FINGER),
     DEFINE_PROP_END_OF_LIST(),
 };