From patchwork Sat Jan 16 01:15:22 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Andrea.Amorosi76@gmail.com" X-Patchwork-Id: 73256 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 o0G1Frau029551 for ; Sat, 16 Jan 2010 01:15:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758584Ab0APBPv (ORCPT ); Fri, 15 Jan 2010 20:15:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758587Ab0APBPv (ORCPT ); Fri, 15 Jan 2010 20:15:51 -0500 Received: from averell.mail.tiscali.it ([213.205.33.55]:52073 "EHLO averell.mail.tiscali.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758511Ab0APBPv (ORCPT ); Fri, 15 Jan 2010 20:15:51 -0500 Received: from [192.168.0.60] (78.14.33.201) by averell.mail.tiscali.it (8.0.022) id 4B4CA237001ED8E5 for linux-media@vger.kernel.org; Sat, 16 Jan 2010 02:15:49 +0100 Message-ID: <4B51132A.1000606@gmail.com> Date: Sat, 16 Jan 2010 02:15:22 +0100 From: "Andrea.Amorosi76@gmail.com" User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Linux Media Mailing List Subject: How can I add IR remote to this new device (DIKOM DK300)? Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff -r 59e746a1c5d1 linux/drivers/media/video/em28xx/em28xx-cards.c --- a/linux/drivers/media/video/em28xx/em28xx-cards.c Wed Dec 30 09:10:33 2009 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-cards.c Tue Jan 12 21:58:30 2010 +0100 @@ -1447,19 +1447,25 @@ .tuner_type = TUNER_XC2028, .tuner_gpio = default_tuner_gpio, .decoder = EM28XX_TVP5150, + .mts_firmware = 1, + .has_dvb = 1, + .dvb_gpio = kworld_330u_digital, .input = { { .type = EM28XX_VMUX_TELEVISION, .vmux = TVP5150_COMPOSITE0, .amux = EM28XX_AMUX_VIDEO, - }, { + .gpio = default_analog, + },/* { .type = EM28XX_VMUX_COMPOSITE1, .vmux = TVP5150_COMPOSITE1, .amux = EM28XX_AMUX_LINE_IN, + .gpio = kworld_330u_analog, }, { .type = EM28XX_VMUX_SVIDEO, .vmux = TVP5150_SVIDEO, .amux = EM28XX_AMUX_LINE_IN, - } }, + .gpio = kworld_330u_analog, + } */}, }, [EM2882_BOARD_TERRATEC_HYBRID_XS] = { .name = "Terratec Hybrid XS (em2882)", @@ -2168,6 +2174,7 @@ ctl->demod = XC3028_FE_DEFAULT; break; case EM2883_BOARD_KWORLD_HYBRID_330U: + case EM2882_BOARD_KWORLD_VS_DVBT: ctl->demod = XC3028_FE_CHINA; ctl->fname = XC2028_DEFAULT_FIRMWARE; break; diff -r 59e746a1c5d1 linux/drivers/media/video/em28xx/em28xx-dvb.c --- a/linux/drivers/media/video/em28xx/em28xx-dvb.c Wed Dec 30 09:10:33 2009 -0200 +++ b/linux/drivers/media/video/em28xx/em28xx-dvb.c Tue Jan 12 21:58:30 2010 +0100 @@ -504,6 +504,7 @@ break; case EM2880_BOARD_TERRATEC_HYBRID_XS: case EM2881_BOARD_PINNACLE_HYBRID_PRO: + case EM2882_BOARD_KWORLD_VS_DVBT: dvb->frontend = dvb_attach(zl10353_attach, &em28xx_zl10353_xc3028_no_i2c_gate, &dev->i2c_adap);