From patchwork Fri Apr 24 04:35:48 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pieter Van Schaik X-Patchwork-Id: 19751 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3O4aLDM020106 for ; Fri, 24 Apr 2009 04:36:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757517AbZDXEfw (ORCPT ); Fri, 24 Apr 2009 00:35:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756975AbZDXEfv (ORCPT ); Fri, 24 Apr 2009 00:35:51 -0400 Received: from mail-fx0-f158.google.com ([209.85.220.158]:59154 "EHLO mail-fx0-f158.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753618AbZDXEfu (ORCPT ); Fri, 24 Apr 2009 00:35:50 -0400 Received: by fxm2 with SMTP id 2so902699fxm.37 for ; Thu, 23 Apr 2009 21:35:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=r8ezNbBAP5rLao5jkkc0S/4RObsHWkWbjAUwaVMDfWs=; b=Mct8gu9BbKiPmD4naSpiFf2iLdbQ3r0TZqrUYguEsewyu81Ab9DhTHcvNM8FS0jVtF /PIS8u46ZYmpX2bmMB6d5Ly8pwzOiqgDdMxxVVOTrtlyTUHpGqye3mlgSQNtM5oNPCFp ne9d1Z+fgzhgVZ//bzLuwlRQubY2nKwujAeaM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Gknf2HOvui2KJkqRPFzj/ERkINSOGbOzxVeKRyPlT5KTQpNc2+TghcSYTJGZZXWce1 4/U54w30udNaGKHl8tZTc4W4hbRsalQPEjpyjhf2udgISwYliHuPt2sDmEr/fSCrXLy3 cdxRILENsyQAK6FevJl2rP0ERIlP9L7vGhJ7M= MIME-Version: 1.0 Received: by 10.223.115.193 with SMTP id j1mr506145faq.85.1240547748511; Thu, 23 Apr 2009 21:35:48 -0700 (PDT) Date: Fri, 24 Apr 2009 06:35:48 +0200 Message-ID: Subject: [PATCH v2] Enabling of the Winfast TV2000 XP Global TV capture card remote control From: Pieter Van Schaik To: linux-media@vger.kernel.org Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch is for supporting the remote control of the Winfast TV2000 XP Global TV capture card. A case statement was added in order to initialize the GPIO data structures as well as a case statement for handling the keys correctly when pressed. Thanks to Hermann for all his help Regards Pieter van Schaik Signed-off-by: your name and email diff -r ac3865b16886 linux/drivers/media/video/cx88/cx88-input.c --- a/linux/drivers/media/video/cx88/cx88-input.c Mon Apr 20 08:47:22 2009 -0300 +++ b/linux/drivers/media/video/cx88/cx88-input.c Mon Apr 20 15:25:19 2009 +0200 @@ -92,6 +92,7 @@ gpio=(gpio & 0x7fd) + (auxgpio & 0xef); break; case CX88_BOARD_WINFAST_DTV1000: + case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL: gpio = (gpio & 0x6ff) | ((cx_read(MO_GP1_IO) << 8) & 0x900); auxgpio = gpio; break; @@ -243,6 +244,7 @@ break; case CX88_BOARD_WINFAST2000XP_EXPERT: case CX88_BOARD_WINFAST_DTV1000: + case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL: ir_codes = ir_codes_winfast; ir->gpio_addr = MO_GP0_IO; ir->mask_keycode = 0x8f8;