From patchwork Thu Jul 1 21:46:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pieter Hoekstra X-Patchwork-Id: 109617 X-Patchwork-Delegate: jikos@jikos.cz Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o61LkqFo023060 for ; Thu, 1 Jul 2010 21:46:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759436Ab0GAVqc (ORCPT ); Thu, 1 Jul 2010 17:46:32 -0400 Received: from smtp07.online.nl ([194.134.42.52]:43189 "EHLO smtp07.online.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759061Ab0GAVq2 (ORCPT ); Thu, 1 Jul 2010 17:46:28 -0400 Received: from smtp07.online.nl (localhost [127.0.0.1]) by smtp07.online.nl (Postfix) with ESMTP id 27594983FE; Thu, 1 Jul 2010 23:46:26 +0200 (CEST) Received: from [192.168.1.10] (unknown [83.119.191.164]) by smtp07.online.nl (Postfix) with ESMTP; Thu, 1 Jul 2010 23:46:26 +0200 (CEST) Message-ID: <4C2D0CB1.4070404@5137.org> Date: Thu, 01 Jul 2010 23:46:25 +0200 From: Pieter Hoekstra User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 MIME-Version: 1.0 To: linux-input@vger.kernel.org, linux-usb@vger.kernel.org, kees.bakker@xs4all.nl Subject: Re: [PATCH] HID: expand hid-topseed driver to support TopSeed RF Combo Device References: <4C2646B8.5050204@5137.org> In-Reply-To: <4C2646B8.5050204@5137.org> X-Online-Scanned: by Cloudmark authority (on smtp07.online.nl) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 01 Jul 2010 21:46:53 +0000 (UTC) --- linux-2.6-518adaa/hid-topseed.c 2010-06-26 19:36:08.000000000 +0200 +++ hid/hid-topseed.c 2010-06-26 20:04:06.816617201 +0200 @@ -6,6 +6,8 @@ * * Modified to also support BTC "Emprex 3009URF III Vista MCE Remote" by * Wayne Thomas 2010. + * Added support for Topseed RF Combo (like Conceptronic CLLRCMCE remote) + * by Pieter Hoekstra 2010. */ /* @@ -50,6 +52,7 @@ static int ts_input_mapping(struct hid_d case 0x05c: ts_map_key_clear(KEY_GREEN); break; case 0x05d: ts_map_key_clear(KEY_YELLOW); break; case 0x05e: ts_map_key_clear(KEY_BLUE); break; + case 0x027: ts_map_key_clear(KEY_SCREEN); break; default: return 0; } @@ -59,6 +62,7 @@ static int ts_input_mapping(struct hid_d static const struct hid_device_id ts_devices[] = { { HID_USB_DEVICE(USB_VENDOR_ID_TOPSEED, USB_DEVICE_ID_TOPSEED_CYBERLINK) }, + { HID_USB_DEVICE(USB_VENDOR_ID_TOPSEEDTECH, USB_DEVICE_ID_TOPSEEDTECH_RFCOMBO) }, { HID_USB_DEVICE(USB_VENDOR_ID_BTC, USB_DEVICE_ID_BTC_EMPREX_REMOTE) }, { } }; --- linux-2.6-518adaa/hid-ids.h 2010-06-26 19:36:08.000000000 +0200 +++ hid/hid-ids.h 2010-06-26 19:53:54.957856940 +0200 @@ -460,6 +460,9 @@ #define USB_VENDOR_ID_TOPSEED 0x0766 #define USB_DEVICE_ID_TOPSEED_CYBERLINK 0x0204 +#define USB_VENDOR_ID_TOPSEEDTECH 0x1784 +#define USB_DEVICE_ID_TOPSEEDTECH_RFCOMBO 0x0004 + #define USB_VENDOR_ID_TURBOX 0x062a #define USB_DEVICE_ID_TURBOX_KEYBOARD 0x0201 --- linux-2.6-518adaa/hid-core.c 2010-06-26 19:36:08.000000000 +0200 +++ hid/hid-core.c 2010-07-01 23:40:18.588363154 +0200 @@ -1357,6 +1357,7 @@ static const struct hid_device_id hid_bl { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb653) }, { HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb654) }, { HID_USB_DEVICE(USB_VENDOR_ID_TOPSEED, USB_DEVICE_ID_TOPSEED_CYBERLINK) }, + { HID_USB_DEVICE(USB_VENDOR_ID_TOPSEEDTECH, USB_DEVICE_ID_TOPSEEDTECH_RFCOMBO) }, { HID_USB_DEVICE(USB_VENDOR_ID_TWINHAN, USB_DEVICE_ID_TWINHAN_IR_REMOTE) }, { HID_USB_DEVICE(USB_VENDOR_ID_WISEGROUP, USB_DEVICE_ID_SMARTJOY_PLUS) }, { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_WACOM, USB_DEVICE_ID_WACOM_GRAPHIRE_BLUETOOTH) },