From patchwork Wed Apr 29 06:55:31 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: 20566 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 n3T6twvw031967 for ; Wed, 29 Apr 2009 06:55:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751050AbZD2Gzf (ORCPT ); Wed, 29 Apr 2009 02:55:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751580AbZD2Gzf (ORCPT ); Wed, 29 Apr 2009 02:55:35 -0400 Received: from mail-bw0-f163.google.com ([209.85.218.163]:39933 "EHLO mail-bw0-f163.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750963AbZD2Gze (ORCPT ); Wed, 29 Apr 2009 02:55:34 -0400 Received: by bwz7 with SMTP id 7so974595bwz.37 for ; Tue, 28 Apr 2009 23:55:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=HxFCeRWPJ3hHubE87+9IsmBMHWHORvuKIwDxgvimuv0=; b=kshJpJgsFO9LYbrn+kbR3YerYntXoLCkSOUw//hiR2bmdaHX4xVTKNJ97NOxrFfV41 WRFOw9PumzJByvh/xYEepFDQmxG4UwmAQQ3pJKxfIEm7JLm/5lIChMO3pLa0JBRjcr0V vockt5mKEIQC/+GoOHdRlPSwBYGhLCA7qDNmk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=TNW6kBr7F4x/BAkTg4H5my9MFEIMum3FjtJSvuMmldifNrzZBikvGYrOBU297Nzt2z DcjqSPJO0Ge8EPj5/sZKAfnfD10X+VxFDvVjEQVhMH0COO9MZJHaqozm595/u0CSgEia qffEtiK0FMDU7ffRe0K0O1p8KUmp4Un+7cv1c= MIME-Version: 1.0 Received: by 10.223.122.204 with SMTP id m12mr2646249far.73.1240988131930; Tue, 28 Apr 2009 23:55:31 -0700 (PDT) In-Reply-To: References: Date: Wed, 29 Apr 2009 08:55:31 +0200 Message-ID: Subject: [PATCH v3] 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 and Mauro for all the help Signed-off-by: Pieter C van Schaik 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;