From patchwork Sun Jan 16 08:39:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Richter X-Patchwork-Id: 481871 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0G8dZ5k027735 for ; Sun, 16 Jan 2011 08:39:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751380Ab1APIje (ORCPT ); Sun, 16 Jan 2011 03:39:34 -0500 Received: from einhorn.in-berlin.de ([192.109.42.8]:33778 "EHLO einhorn.in-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750990Ab1APIjd (ORCPT ); Sun, 16 Jan 2011 03:39:33 -0500 X-Envelope-From: stefanr@s5r6.in-berlin.de Received: from stein ([83.221.231.7]) (authenticated bits=0) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id p0G8dMSi008946 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 16 Jan 2011 09:39:23 +0100 Date: Sun, 16 Jan 2011 09:39:21 +0100 From: Stefan Richter To: linux-media@vger.kernel.org Cc: linux-input@vger.kernel.org, linux1394-devel@lists.sourceforge.net Subject: [PATCH] firedtv: fix remote control with newer Xorg evdev Message-ID: <20110116093921.6275ac89@stein> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sun, 16 Jan 2011 08:40:02 +0000 (UTC) Index: b/drivers/media/dvb/firewire/firedtv-rc.c =================================================================== --- a/drivers/media/dvb/firewire/firedtv-rc.c +++ b/drivers/media/dvb/firewire/firedtv-rc.c @@ -172,7 +172,8 @@ void fdtv_unregister_rc(struct firedtv * void fdtv_handle_rc(struct firedtv *fdtv, unsigned int code) { - u16 *keycode = fdtv->remote_ctrl_dev->keycode; + struct input_dev *idev = fdtv->remote_ctrl_dev; + u16 *keycode = idev->keycode; if (code >= 0x0300 && code <= 0x031f) code = keycode[code - 0x0300]; @@ -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_report_key(idev, code, 0); + input_sync(idev); }