[PATCH:synaptics 2/5] Always make the input buffer size 200
Peter Hutterer
peter.hutterer at who-t.net
Mon Nov 2 19:49:10 PST 2009
PreInit initalizes the input buffer with 200, DeviceOn only with 64. For
consistency, use the same size in both.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/synaptics.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/synaptics.c b/src/synaptics.c
index 597aad2..e0d3555 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -111,6 +111,8 @@ typedef enum {
#define DBG(a,b)
#endif
+#define INPUT_BUFFER_SIZE 200
+
/*****************************************************************************
* Forward declaration
****************************************************************************/
@@ -635,7 +637,7 @@ SynapticsPreInit(InputDriverPtr drv, IDevPtr dev, int flags)
if (!alloc_param_data(local))
goto SetupProc_fail;
- priv->comm.buffer = XisbNew(local->fd, 200);
+ priv->comm.buffer = XisbNew(local->fd, INPUT_BUFFER_SIZE);
DBG(9, XisbTrace(priv->comm.buffer, 1));
if (!QueryHardware(local)) {
@@ -757,7 +759,7 @@ DeviceOn(DeviceIntPtr dev)
if (priv->proto_ops->DeviceOnHook)
priv->proto_ops->DeviceOnHook(local, &priv->synpara);
- priv->comm.buffer = XisbNew(local->fd, 64);
+ priv->comm.buffer = XisbNew(local->fd, INPUT_BUFFER_SIZE);
if (!priv->comm.buffer) {
xf86CloseSerial(local->fd);
local->fd = -1;
--
1.6.5.1
More information about the xorg-devel
mailing list