Thread (4 messages) flat view 4 messages, 2 authors, 2011-01-17

Re: [PATCH] firedtv: fix remote control with newer Xorg evdev

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2011-01-17 08:17:11
Also in: linux-media

Hi Stefan,

On Sun, Jan 16, 2011 at 09:39:21AM +0100, Stefan Richter wrote:
quoted hunk ↗ jump to hunk
@@ -188,6 +189,7 @@ void fdtv_handle_rc(struct firedtv *fdtv
 		return;
 	}
 
-	input_report_key(fdtv->remote_ctrl_dev, code, 1);
-	input_report_key(fdtv->remote_ctrl_dev, code, 0);
+	input_report_key(idev, code, 1);
input_sync() is needed here as well - userspace is free to accumulate
device state between EV_SYN events.
+	input_report_key(idev, code, 0);
+	input_sync(idev);
 }
-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help