From patchwork Fri Oct 2 21:49:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Aleksandr V. Piskunov" X-Patchwork-Id: 51458 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 n92LnLf1004128 for ; Fri, 2 Oct 2009 21:49:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754726AbZJBVtK (ORCPT ); Fri, 2 Oct 2009 17:49:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754708AbZJBVtK (ORCPT ); Fri, 2 Oct 2009 17:49:10 -0400 Received: from mail-fx0-f227.google.com ([209.85.220.227]:53934 "EHLO mail-fx0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754692AbZJBVtJ (ORCPT ); Fri, 2 Oct 2009 17:49:09 -0400 Received: by fxm27 with SMTP id 27so1452778fxm.17 for ; Fri, 02 Oct 2009 14:49:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition :content-transfer-encoding:user-agent; bh=d9Egy1HZhkU/u73hEj9M6iLnlIKGdboGLN+ACu1sCn0=; b=Fgr4RIj0EhkN0HHCVWe+uZONNDyHNROOPJfiAwWwxhk/DfxCgT6k+RQDD3AOcUDIRX NkvRdz5SVDk1ze4IX/a9kOGcOfAi0ffAZVWOAZBFJXXpgYjnVxQ5ou4P4oekTGDtMwF+ IPbKQBIzTOLgMMvK2YJ+J0i6gldw7+ZZN8UPw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:content-transfer-encoding:user-agent; b=A+qt1QqXoXUpVtEW0ULtEqQZrUiu5PsVJhVM8Zw87pj2IGT4nibYpmXt57xKeiTIe+ ATSoC8mpZu91r3elh9RjZaV2ftfT+MZFKxcGLlAN0o/nljriyqpGCOhgNQ5Ke/nJmjp/ koBL9la9nb2Q4qJ4NpFj7Ie4M1DwGoIxESb5o= Received: by 10.204.24.81 with SMTP id u17mr1578592bkb.202.1254520152669; Fri, 02 Oct 2009 14:49:12 -0700 (PDT) Received: from moon ([80.232.250.86]) by mx.google.com with ESMTPS id 21sm2967544fkx.58.2009.10.02.14.49.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 02 Oct 2009 14:49:12 -0700 (PDT) Date: Sat, 3 Oct 2009 00:49:09 +0300 From: "Aleksandr V. Piskunov" To: linux-media@vger.kernel.org Cc: Oldrich Jedlicka Subject: AVerTV MCE 116 Plus remote Message-ID: <20091002214909.GA4761@moon> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff --git a/linux/drivers/media/video/ir-kbd-i2c.c b/linux/drivers/media/video/ir-kbd-i2c.c --- a/linux/drivers/media/video/ir-kbd-i2c.c +++ b/linux/drivers/media/video/ir-kbd-i2c.c @@ -461,7 +461,7 @@ } break; case 0x40: - name = "AVerMedia Cardbus remote"; + name = "AVerMedia RM-FP/RM-KH remote"; ir->get_key = get_key_avermedia_cardbus; ir_type = IR_TYPE_OTHER; ir_codes = &ir_codes_avermedia_cardbus_table; @@ -706,8 +706,12 @@ ir_attach(adap, msg.addr, 0, 0); } - /* Special case for AVerMedia Cardbus remote */ - if (adap->id == I2C_HW_SAA7134) { + /* Special case for AVerMedia remotes: + * AVerTV Hybrid+FM Cardbus + * AVerTV MCE 116 Plus + * probably others with RM-FP, RM-KH remotes and microcontroller + chip @ 0x40 */ + if ((adap->id == I2C_HW_SAA7134) || (adap->id == I2C_HW_B_CX2341X)) { unsigned char subaddr, data; struct i2c_msg msg[] = { { .addr = 0x40, .flags = 0, .buf = &subaddr, .len = 1},