From patchwork Sat Sep 8 17:08:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Alberto Reguero X-Patchwork-Id: 1426881 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id F1240DF2AB for ; Sat, 8 Sep 2012 17:08:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751139Ab2IHRIk (ORCPT ); Sat, 8 Sep 2012 13:08:40 -0400 Received: from impaqm5.telefonica.net ([213.4.138.21]:38741 "EHLO telefonica.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751119Ab2IHRIj (ORCPT ); Sat, 8 Sep 2012 13:08:39 -0400 Received: from IMPmailhost1.adm.correo ([10.20.102.38]) by IMPaqm5.telefonica.net with bizsmtp id wdxU1j00R0piX6q3Rh8aJR; Sat, 08 Sep 2012 19:08:34 +0200 Received: from 77.209.224.16.red-acceso.airtel.net ([77.209.224.16]) by IMPmailhost1.adm.correo with BIZ IMP id wh8U1j00F0Mqy511hh8XQG; Sat, 08 Sep 2012 19:08:34 +0200 X-Brightmail-Tracker: AAAAAA== X-original-sender: jareguero@telefonica.net From: Jose Alberto Reguero To: linux-media@vger.kernel.org Subject: [PATCH] Add toggle to the tt3650_rc_query function of the ttusb2 driver Date: Sat, 08 Sep 2012 19:08:22 +0200 Message-ID: <2504977.yNAtCnX8Pk@jar7.dominio> User-Agent: KMail/4.8.3 (Linux/3.5.0-2.fc17.x86_64; KDE/4.8.3; x86_64; ; ) MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch add the toggle bit to the tt3650_rc_query function of the ttusb2 driver. Signed-off-by: Jose Alberto Reguero Jose Alberto diff -upr linux/drivers/media/usb/dvb-usb/ttusb2.c linux.new/drivers/media/usb/dvb-usb/ttusb2.c --- linux/drivers/media/usb/dvb-usb/ttusb2.c 2012-08-14 05:45:22.000000000 +0200 +++ linux.new/drivers/media/usb/dvb-usb/ttusb2.c 2012-08-23 18:33:33.459191850 +0200 @@ -440,7 +440,7 @@ static int tt3650_rc_query(struct dvb_us /* got a "press" event */ st->last_rc_key = (rx[3] << 8) | rx[2]; deb_info("%s: cmd=0x%02x sys=0x%02x\n", __func__, rx[2], rx[3]); - rc_keydown(d->rc_dev, st->last_rc_key, 0); + rc_keydown(d->rc_dev, st->last_rc_key, rx[1]); } else if (st->last_rc_key) { rc_keyup(d->rc_dev); st->last_rc_key = 0;