From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754968AbZBCNzf (ORCPT ); Tue, 3 Feb 2009 08:55:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751936AbZBCNz1 (ORCPT ); Tue, 3 Feb 2009 08:55:27 -0500 Received: from rtr.ca ([76.10.145.34]:54857 "EHLO mail.rtr.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751476AbZBCNz0 (ORCPT ); Tue, 3 Feb 2009 08:55:26 -0500 Message-ID: <49884CCB.3070309@rtr.ca> Date: Tue, 03 Feb 2009 08:55:23 -0500 From: Mark Lord Organization: Real-Time Remedies Inc. User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: video4linux-list@redhat.com, Linux Kernel Subject: [PATCH] ir-kbd-i2c: support Hauppauge HVR-1600 R/C port Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (resending, with video4linux-list@redhat.com this time) Update the ir-kbd-i2c driver to recognize the remote-control port on the Hauppauge HV-1600 hybrid tuner card. Signed-off-by: Mark Lord --- old/drivers/media/video/ir-kbd-i2c.c 2008-12-24 18:26:37.000000000 -0500 +++ linux/drivers/media/video/ir-kbd-i2c.c 2009-02-01 13:08:19.000000000 -0500 @@ -354,6 +354,11 @@ } else { ir_codes = ir_codes_rc5_tv; } + } else if (adap->id == I2C_HW_B_CX2341X) { + name = "Hauppauge"; + ir_type = IR_TYPE_RC5; + ir->get_key = get_key_haup_xvr; + ir_codes = ir_codes_hauppauge_new; } else { /* Handled by saa7134-input */ name = "SAA713x remote"; @@ -449,7 +454,7 @@ That's why we probe 0x1a (~0x34) first. CB */ - static const int probe_bttv[] = { 0x1a, 0x18, 0x4b, 0x64, 0x30, -1}; + static const int probe_bttv[] = { 0x1a, 0x18, 0x4b, 0x64, 0x30, 0x71, -1}; static const int probe_saa7134[] = { 0x7a, 0x47, 0x71, 0x2d, -1 }; static const int probe_em28XX[] = { 0x30, 0x47, -1 }; static const int probe_cx88[] = { 0x18, 0x6b, 0x71, -1 };