From patchwork Sun Feb 7 19:53:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Franklin Meng X-Patchwork-Id: 77637 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o17JrObr019217 for ; Sun, 7 Feb 2010 19:53:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751382Ab0BGTxR (ORCPT ); Sun, 7 Feb 2010 14:53:17 -0500 Received: from web32702.mail.mud.yahoo.com ([68.142.207.246]:43573 "HELO web32702.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750764Ab0BGTxQ (ORCPT ); Sun, 7 Feb 2010 14:53:16 -0500 Received: (qmail 33740 invoked by uid 60001); 7 Feb 2010 19:53:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1265572396; bh=0CehENetak0n561QwqaxTius8zcqBF1yuajEEaoNui4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=vlhhAG+7EUlFuLPwf6XOk2UocqDTNd+3MqMbO5zUGfUMJ7nZZp4MNASF++HbbaC/jRI87Talr1p7D7xY8WRPTFx9T6lKkJjwdJpBWBQmfqj2Avs63TDd3bizE9lJf48c8osETJsn7eCrIQawrFyzD1+mV3/1qeZJFtjLnziZFP0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=pACA/4+V8Af/rzOZubggcf5E7XqS7/2n8IAsXCFycKYtozgIRBWgvlc7SSXPdHGQKDLsURX2yOtC3ugMJ+MxZRmqzzg9RUbJgQB8ZdHz/vioGW45iqjciUcooCfn+P4a1XoyRHazECXKW1jfoW/3fq+PM3YfmZWXwU18GEdgCPk=; Message-ID: <19431.32442.qm@web32702.mail.mud.yahoo.com> X-YMail-OSG: cZaEJKgVM1nf.CqlfcZzN0Th1e3tbPdtmMnH41YmIDB9.9Ee5wUph5zNS88vIdzR7U67wbeOZ9qfNT4SZBbcaZ9HzlG6sw8i.ga.NBzuZtNuKN._ckqi153zkgErxWDWDex60K9JuWsMbRgz8KFRM7wlyyMz2ip7wZYarcCKjJxYiu8dScfPjFMHFtB4IeUdOB1DL5QTSYrGOzieccycmsZ7w4uAvRiuz97tCROJPaik315JIDhenG_ishpLzBi_TnqCotrYE19FztQbAU1tLod8UgA4S4DPy4vJy5H0GbZQPOooOrOUxNHb6RcQq7eoD3mo.T8pmA4WZw5hOT9lqZ5_yy03ycySeolGAyAz4g-- Received: from [71.110.36.90] by web32702.mail.mud.yahoo.com via HTTP; Sun, 07 Feb 2010 11:53:15 PST X-Mailer: YahooMailClassic/9.1.10 YahooMailWebService/0.8.100.260964 Date: Sun, 7 Feb 2010 11:53:15 -0800 (PST) From: Franklin Meng Subject: [Patch] Kworld 315U remote support To: Douglas Schilling , maillist MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 07 Feb 2010 19:53:25 +0000 (UTC) diff -r 28f5eca12bb0 linux/drivers/media/IR/ir-keymaps.c --- a/linux/drivers/media/IR/ir-keymaps.c Sat Feb 06 23:49:31 2010 -0200 +++ b/linux/drivers/media/IR/ir-keymaps.c Sun Feb 07 11:35:39 2010 -0800 @@ -3501,3 +3501,52 @@ .size = ARRAY_SIZE(ir_codes_winfast_usbii_deluxe), }; EXPORT_SYMBOL_GPL(ir_codes_winfast_usbii_deluxe_table); + +/* Kworld 315U +*/ +static struct ir_scancode ir_codes_kworld_315u[] = { + { 0x43, KEY_POWER }, + { 0x01, KEY_TUNER }, /* source */ + { 0x0b, KEY_ZOOM }, + { 0x03, KEY_POWER2 }, /* shutdown */ + + { 0x04, KEY_1 }, + { 0x08, KEY_2 }, + { 0x02, KEY_3 }, + { 0x09, KEY_CHANNELUP }, + + { 0x0f, KEY_4 }, + { 0x05, KEY_5 }, + { 0x06, KEY_6 }, + { 0x07, KEY_CHANNELDOWN }, + + { 0x0c, KEY_7 }, + { 0x0d, KEY_8 }, + { 0x0a, KEY_9 }, + { 0x0e, KEY_VOLUMEUP }, + + { 0x10, KEY_LAST }, + { 0x11, KEY_0 }, + { 0x12, KEY_ENTER }, + { 0x13, KEY_VOLUMEDOWN }, + + { 0x14, KEY_RECORD }, + { 0x15, KEY_STOP }, + { 0x16, KEY_PLAY }, + { 0x17, KEY_MUTE }, + + { 0x18, KEY_UP }, + { 0x19, KEY_DOWN }, + { 0x1a, KEY_LEFT }, + { 0x1b, KEY_RIGHT }, + + { 0x1c, KEY_RED }, + { 0x1d, KEY_GREEN }, + { 0x1e, KEY_YELLOW }, + { 0x1f, KEY_BLUE }, +}; +struct ir_scancode_table ir_codes_kworld_315u_table = { + .scan = ir_codes_kworld_315u, + .size = ARRAY_SIZE(ir_codes_kworld_315u), +}; +EXPORT_SYMBOL_GPL(ir_codes_kworld_315u_table); diff -r 28f5eca12bb0 linux/drivers/media/video/em28xx/em28xx-cards.c --- a/linux/drivers/media/video/em28xx/em28xx-cards.c Sat Feb 06 23:49:31 2010 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-cards.c Sun Feb 07 11:35:39 2010 -0800 @@ -1322,6 +1322,7 @@ .tda9887_conf = TDA9887_PRESENT, .decoder = EM28XX_SAA711X, .has_dvb = 1, + .ir_codes = &ir_codes_kworld_315u_table, .dvb_gpio = em2882_kworld_315u_digital, .xclk = EM28XX_XCLK_FREQUENCY_12MHZ, .i2c_speed = EM28XX_I2C_CLK_WAIT_ENABLE, diff -r 28f5eca12bb0 linux/include/media/ir-common.h --- a/linux/include/media/ir-common.h Sat Feb 06 23:49:31 2010 -0200 +++ b/linux/include/media/ir-common.h Sun Feb 07 11:35:39 2010 -0800 @@ -163,4 +163,5 @@ extern struct ir_scancode_table ir_codes_gadmei_rm008z_table; extern struct ir_scancode_table ir_codes_nec_terratec_cinergy_xs_table; extern struct ir_scancode_table ir_codes_winfast_usbii_deluxe_table; +extern struct ir_scancode_table ir_codes_kworld_315u_table; #endif