From patchwork Fri Oct 29 23:02:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Hern=C3=A1n_Ordiales?= X-Patchwork-Id: 291392 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 o9TN36mS032656 for ; Fri, 29 Oct 2010 23:03:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751068Ab0J2XCx (ORCPT ); Fri, 29 Oct 2010 19:02:53 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:33251 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750801Ab0J2XCx (ORCPT ); Fri, 29 Oct 2010 19:02:53 -0400 Received: by bwz11 with SMTP id 11so3022276bwz.19 for ; Fri, 29 Oct 2010 16:02:51 -0700 (PDT) Received: by 10.204.119.145 with SMTP id z17mr10377603bkq.128.1288393370984; Fri, 29 Oct 2010 16:02:50 -0700 (PDT) MIME-Version: 1.0 Reply-To: h.ordiales@gmail.com Received: by 10.204.56.211 with HTTP; Fri, 29 Oct 2010 16:02:35 -0700 (PDT) In-Reply-To: <4CC25F60.7050106@redhat.com> References: <4CC25F60.7050106@redhat.com> From: =?ISO-8859-1?Q?Hern=E1n_Ordiales?= Date: Fri, 29 Oct 2010 20:02:35 -0300 X-Google-Sender-Auth: AwXDYp_Vk-6vG2agRzqLYNCv8Xw Message-ID: Subject: Re: V4L/DVB/IR patches pending merge To: Mauro Carvalho Chehab Cc: Patrick Boettcher , Manu Abraham , Jonathan Corbet , Guennadi Liakhovetski , "Igor M. Liplianin" , LMML 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.3 (demeter1.kernel.org [140.211.167.41]); Fri, 29 Oct 2010 23:03:07 +0000 (UTC) # HG changeset patch # User hordia # Date 1288389936 10800 # Node ID 248f513cf5b8a8ecac08d13c90ddeeaf326c08ea # Parent abd3aac6644e1a31020f4cdfdee84bde7ca1e1b4 Adding support to the Geniatech/MyGica SBTVD Stick S870 remote control (updated) diff -r abd3aac6644e -r 248f513cf5b8 linux/drivers/media/dvb/dvb-usb/dib0700_core.c --- a/linux/drivers/media/dvb/dvb-usb/dib0700_core.c Fri Jul 02 00:38:54 2010 -0300 +++ b/linux/drivers/media/dvb/dvb-usb/dib0700_core.c Fri Oct 29 19:05:36 2010 -0300 @@ -555,6 +555,14 @@ break; } break; + case 1: + /* Geniatech/MyGica remote protocol */ + poll_reply.report_id = buf[0]; + poll_reply.data_state = buf[1]; + poll_reply.system = (buf[4] << 8) | buf[4]; + poll_reply.data = buf[5]; + poll_reply.not_data = buf[4]; /* integrity check */ + break; default: /* RC5 Protocol */ poll_reply.report_id = buf[0]; diff -r abd3aac6644e -r 248f513cf5b8 linux/drivers/media/dvb/dvb-usb/dib0700_devices.c --- a/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c Fri Jul 02 00:38:54 2010 -0300 +++ b/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c Fri Oct 29 19:05:36 2010 -0300 @@ -831,6 +831,44 @@ { 0x4540, KEY_RECORD }, /* Font 'Size' for Teletext */ { 0x4541, KEY_SCREEN }, /* Full screen toggle, 'Hold' for Teletext */ { 0x4542, KEY_SELECT }, /* Select video input, 'Select' for Teletext */ + + /* Key codes for the Geniatech/MyGica SBTVD Stick S870 remote + set dvb_usb_dib0700_ir_proto=1 */ + { 0x38c7, KEY_TV }, /* TV/AV */ + { 0x0cf3, KEY_POWER }, + { 0x0af5, KEY_MUTE }, + { 0x2bd4, KEY_VOLUMEUP }, + { 0x2cd3, KEY_VOLUMEDOWN }, + { 0x12ed, KEY_CHANNELUP }, + { 0x13ec, KEY_CHANNELDOWN }, + { 0x01fe, KEY_1 }, + { 0x02fd, KEY_2 }, + { 0x03fc, KEY_3 }, + { 0x04fb, KEY_4 }, + { 0x05fa, KEY_5 }, + { 0x06f9, KEY_6 }, + { 0x07f8, KEY_7 }, + { 0x08f7, KEY_8 }, + { 0x09f6, KEY_9 }, + { 0x00ff, KEY_0 }, + { 0x16e9, KEY_PAUSE }, + { 0x17e8, KEY_PLAY }, + { 0x0bf4, KEY_STOP }, + { 0x26d9, KEY_REWIND }, + { 0x27d8, KEY_FASTFORWARD }, + { 0x29d6, KEY_ESC }, + { 0x1fe0, KEY_RECORD }, + { 0x20df, KEY_UP }, + { 0x21de, KEY_DOWN }, + { 0x11ee, KEY_LEFT }, + { 0x10ef, KEY_RIGHT }, + { 0x0df2, KEY_OK }, + { 0x1ee1, KEY_PLAYPAUSE }, /* Timeshift */ + { 0x0ef1, KEY_CAMERA }, /* Snapshot */ + { 0x25da, KEY_EPG }, /* Info KEY_INFO */ + { 0x2dd2, KEY_MENU }, /* DVD Menu */ + { 0x0ff0, KEY_SCREEN }, /* Full screen toggle */ + { 0x14eb, KEY_SHUFFLE }, }; /* STK7700P: Hauppauge Nova-T Stick, AVerMedia Volar */