From patchwork Wed Jan 13 20:00:07 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 72697 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0DK0exY023492 for ; Wed, 13 Jan 2010 20:00:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755482Ab0AMUAL (ORCPT ); Wed, 13 Jan 2010 15:00:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753774Ab0AMUAK (ORCPT ); Wed, 13 Jan 2010 15:00:10 -0500 Received: from smtp.mujha-vel.cz ([81.30.225.246]:46281 "EHLO smtp.mujha-vel.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752476Ab0AMUAJ (ORCPT ); Wed, 13 Jan 2010 15:00:09 -0500 Received: from [217.66.174.142] (helo=localhost.localdomain) by smtp.mujha-vel.cz with esmtp (Exim 4.63) (envelope-from ) id 1NV9Nw-00039r-9Y; Wed, 13 Jan 2010 21:00:08 +0100 From: Jiri Slaby To: mchehab@infradead.org Cc: linux-kernel@vger.kernel.org, jirislaby@gmail.com, Antti Palosaari , linux-media@vger.kernel.org Subject: [PATCH 1/1] media: dvb-usb/af9015, add IR support for digivox mini II Date: Wed, 13 Jan 2010 21:00:07 +0100 Message-Id: <1263412807-23350-1-git-send-email-jslaby@suse.cz> X-Mailer: git-send-email 1.6.5.7 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c index 8b60a60..f0d5731 100644 --- a/drivers/media/dvb/dvb-usb/af9015.c +++ b/drivers/media/dvb/dvb-usb/af9015.c @@ -835,9 +835,15 @@ static int af9015_read_config(struct usb_device *udev) af9015_ir_table_mygictv; af9015_config.ir_table_size = ARRAY_SIZE(af9015_ir_table_mygictv); - } else if (!strcmp("MSI", manufacturer)) { - /* iManufacturer 1 MSI - iProduct 2 MSI K-VOX */ + } else if (!strcmp("MSI", manufacturer) || + !strcmp("Afatech", manufacturer)) { + /* + iManufacturer 1 MSI + iProduct 2 MSI K-VOX + iManufacturer 1 Afatech + iProduct 2 DVB-T 2 + */ + af9015_properties[i].rc_key_map = af9015_rc_keys_msi; af9015_properties[i].rc_key_map_size =