From patchwork Sun Sep 6 16:47:41 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vladimir Geroy X-Patchwork-Id: 45980 X-Patchwork-Delegate: dougsland@redhat.com 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 n86GtvNF006435 for ; Sun, 6 Sep 2009 16:58:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758055AbZIFQ6R (ORCPT ); Sun, 6 Sep 2009 12:58:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758054AbZIFQ6Q (ORCPT ); Sun, 6 Sep 2009 12:58:16 -0400 Received: from forward3.yandex.ru ([77.88.46.8]:43530 "EHLO forward3.yandex.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754059AbZIFQ6Q (ORCPT ); Sun, 6 Sep 2009 12:58:16 -0400 X-Greylist: delayed 623 seconds by postgrey-1.27 at vger.kernel.org; Sun, 06 Sep 2009 12:58:15 EDT Received: from smtp3.yandex.ru (smtp3.yandex.ru [77.88.46.103]) by forward3.yandex.ru (Yandex) with ESMTP id 618841190871; Sun, 6 Sep 2009 20:47:53 +0400 (MSD) Received: from [94.179.236.42] (94.179.236.42.pool.3g.utel.ua [94.179.236.42]) by smtp3.yandex.ru (Yandex) with ESMTPSA id 4C4218B8073; Sun, 6 Sep 2009 20:47:51 +0400 (MSD) Message-ID: <4AA3E7AD.5080307@yandex.ru> Date: Sun, 06 Sep 2009 19:47:41 +0300 From: geroin22 User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Alex Deucher CC: linux-media@vger.kernel.org Subject: Re: [PATCH] Add support for Compro VideoMate E800 (DVB-T part only) References: <4AA3D64E.3070203@yandex.ru> In-Reply-To: X-Yandex-TimeMark: 1252255673 X-Yandex-Spam: 1 X-Yandex-Front: smtp3.yandex.ru Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Alex Deucher пишет: > On Sun, Sep 6, 2009 at 11:33 AM, geroin22 wrote: > >> >> Nothing new, just adding Compro VideoMate E800 (DVB-T part only). >> Tested with Ubuntu 9.04 kernel 2.6.28 work well. >> >> > > Please add your Signed-off-by. > > >> diff -Naur a/linux/Documentation/video4linux/CARDLIST.cx23885 >> b/linux/Documentation/video4linux/CARDLIST.cx23885 >> --- a/linux/Documentation/video4linux/CARDLIST.cx23885 2009-09-01 >> 16:43:46.000000000 +0300 >> +++ b/linux/Documentation/video4linux/CARDLIST.cx23885 2009-09-06 >> 15:37:13.373793025 +0300 >> @@ -23,3 +23,4 @@ >> 22 -> Mygica X8506 DMB-TH [14f1:8651] >> 23 -> Magic-Pro ProHDTV Extreme 2 [14f1:8657] >> 24 -> Hauppauge WinTV-HVR1850 [0070:8541] >> + 25 -> Compro VideoMate E800 [1858:e800] >> diff -Naur a/linux/drivers/media/video/cx23885/cx23885-cards.c >> b/linux/drivers/media/video/cx23885/cx23885-cards.c >> --- a/linux/drivers/media/video/cx23885/cx23885-cards.c 2009-09-01 >> 16:43:46.000000000 +0300 >> +++ b/linux/drivers/media/video/cx23885/cx23885-cards.c 2009-09-06 >> 15:35:23.434293199 +0300 >> @@ -211,6 +211,10 @@ >> .portb = CX23885_MPEG_ENCODER, >> .portc = CX23885_MPEG_DVB, >> }, >> + [CX23885_BOARD_COMPRO_VIDEOMATE_E800] = { >> + .name = "Compro VideoMate E800", >> + .portc = CX23885_MPEG_DVB, >> + }, >> }; >> const unsigned int cx23885_bcount = ARRAY_SIZE(cx23885_boards); >> >> @@ -342,6 +346,10 @@ >> .subvendor = 0x0070, >> .subdevice = 0x8541, >> .card = CX23885_BOARD_HAUPPAUGE_HVR1850, >> + }, { >> + .subvendor = 0x1858, >> + .subdevice = 0xe800, >> + .card = CX23885_BOARD_COMPRO_VIDEOMATE_E800, >> }, >> }; >> const unsigned int cx23885_idcount = ARRAY_SIZE(cx23885_subids); >> @@ -537,6 +545,7 @@ >> case CX23885_BOARD_HAUPPAUGE_HVR1500Q: >> case CX23885_BOARD_LEADTEK_WINFAST_PXDVR3200_H: >> case CX23885_BOARD_COMPRO_VIDEOMATE_E650F: >> + case CX23885_BOARD_COMPRO_VIDEOMATE_E800: >> /* Tuner Reset Command */ >> bitmask = 0x04; >> break; >> @@ -688,6 +697,7 @@ >> break; >> case CX23885_BOARD_LEADTEK_WINFAST_PXDVR3200_H: >> case CX23885_BOARD_COMPRO_VIDEOMATE_E650F: >> + case CX23885_BOARD_COMPRO_VIDEOMATE_E800: >> /* GPIO-2 xc3028 tuner reset */ >> >> /* The following GPIO's are on the internal AVCore (cx25840) >> */ >> @@ -912,6 +922,7 @@ >> case CX23885_BOARD_HAUPPAUGE_HVR1255: >> case CX23885_BOARD_HAUPPAUGE_HVR1210: >> case CX23885_BOARD_HAUPPAUGE_HVR1850: >> + case CX23885_BOARD_COMPRO_VIDEOMATE_E800: >> default: >> ts2->gen_ctrl_val = 0xc; /* Serial bus + punctured clock */ >> ts2->ts_clk_en_val = 0x1; /* Enable TS_CLK */ >> @@ -928,6 +939,7 @@ >> case CX23885_BOARD_LEADTEK_WINFAST_PXDVR3200_H: >> case CX23885_BOARD_COMPRO_VIDEOMATE_E650F: >> case CX23885_BOARD_NETUP_DUAL_DVBS2_CI: >> + case CX23885_BOARD_COMPRO_VIDEOMATE_E800: >> dev->sd_cx25840 = v4l2_i2c_new_subdev(&dev->v4l2_dev, >> &dev->i2c_bus[2].i2c_adap, >> "cx25840", "cx25840", 0x88 >> 1, NULL); >> diff -Naur a/linux/drivers/media/video/cx23885/cx23885-dvb.c >> b/linux/drivers/media/video/cx23885/cx23885-dvb.c >> --- a/linux/drivers/media/video/cx23885/cx23885-dvb.c 2009-09-01 >> 16:43:46.000000000 +0300 >> +++ b/linux/drivers/media/video/cx23885/cx23885-dvb.c 2009-09-06 >> 16:09:17.154602943 +0300 >> @@ -744,6 +744,7 @@ >> } >> case CX23885_BOARD_LEADTEK_WINFAST_PXDVR3200_H: >> case CX23885_BOARD_COMPRO_VIDEOMATE_E650F: >> + case CX23885_BOARD_COMPRO_VIDEOMATE_E800: >> i2c_bus = &dev->i2c_bus[0]; >> >> fe0->dvb.frontend = dvb_attach(zl10353_attach, >> diff -Naur a/linux/drivers/media/video/cx23885/cx23885.h >> b/linux/drivers/media/video/cx23885/cx23885.h >> --- a/linux/drivers/media/video/cx23885/cx23885.h 2009-09-01 >> 16:43:46.000000000 +0300 >> +++ b/linux/drivers/media/video/cx23885/cx23885.h 2009-09-06 >> 15:36:40.229792022 +0300 >> @@ -79,6 +79,7 @@ >> #define CX23885_BOARD_MYGICA_X8506 22 >> #define CX23885_BOARD_MAGICPRO_PROHDTVE2 23 >> #define CX23885_BOARD_HAUPPAUGE_HVR1850 24 >> +#define CX23885_BOARD_COMPRO_VIDEOMATE_E800 25 >> >> #define GPIO_0 0x00000001 >> #define GPIO_1 0x00000002 >> >> >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-media" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> >> > > Signed-off-by: Vladimir Geroy geroin22@yandex.ru --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -Naur a/linux/Documentation/video4linux/CARDLIST.cx23885 b/linux/Documentation/video4linux/CARDLIST.cx23885 --- a/linux/Documentation/video4linux/CARDLIST.cx23885 2009-09-01 16:43:46.000000000 +0300 +++ b/linux/Documentation/video4linux/CARDLIST.cx23885 2009-09-06 15:37:13.373793025 +0300 @@ -23,3 +23,4 @@ 22 -> Mygica X8506 DMB-TH [14f1:8651] 23 -> Magic-Pro ProHDTV Extreme 2 [14f1:8657] 24 -> Hauppauge WinTV-HVR1850 [0070:8541] + 25 -> Compro VideoMate E800 [1858:e800] diff -Naur a/linux/drivers/media/video/cx23885/cx23885-cards.c b/linux/drivers/media/video/cx23885/cx23885-cards.c --- a/linux/drivers/media/video/cx23885/cx23885-cards.c 2009-09-01 16:43:46.000000000 +0300 +++ b/linux/drivers/media/video/cx23885/cx23885-cards.c 2009-09-06 15:35:23.434293199 +0300 @@ -211,6 +211,10 @@ .portb = CX23885_MPEG_ENCODER, .portc = CX23885_MPEG_DVB, }, + [CX23885_BOARD_COMPRO_VIDEOMATE_E800] = { + .name = "Compro VideoMate E800", + .portc = CX23885_MPEG_DVB, + }, }; const unsigned int cx23885_bcount = ARRAY_SIZE(cx23885_boards); @@ -342,6 +346,10 @@ .subvendor = 0x0070, .subdevice = 0x8541, .card = CX23885_BOARD_HAUPPAUGE_HVR1850, + }, { + .subvendor = 0x1858, + .subdevice = 0xe800, + .card = CX23885_BOARD_COMPRO_VIDEOMATE_E800, }, }; const unsigned int cx23885_idcount = ARRAY_SIZE(cx23885_subids); @@ -537,6 +545,7 @@ case CX23885_BOARD_HAUPPAUGE_HVR1500Q: case CX23885_BOARD_LEADTEK_WINFAST_PXDVR3200_H: case CX23885_BOARD_COMPRO_VIDEOMATE_E650F: + case CX23885_BOARD_COMPRO_VIDEOMATE_E800: /* Tuner Reset Command */ bitmask = 0x04; break; @@ -688,6 +697,7 @@ break; case CX23885_BOARD_LEADTEK_WINFAST_PXDVR3200_H: case CX23885_BOARD_COMPRO_VIDEOMATE_E650F: + case CX23885_BOARD_COMPRO_VIDEOMATE_E800: /* GPIO-2 xc3028 tuner reset */ /* The following GPIO's are on the internal AVCore (cx25840) */ @@ -912,6 +922,7 @@ case CX23885_BOARD_HAUPPAUGE_HVR1255: case CX23885_BOARD_HAUPPAUGE_HVR1210: case CX23885_BOARD_HAUPPAUGE_HVR1850: + case CX23885_BOARD_COMPRO_VIDEOMATE_E800: default: ts2->gen_ctrl_val = 0xc; /* Serial bus + punctured clock */ ts2->ts_clk_en_val = 0x1; /* Enable TS_CLK */ @@ -928,6 +939,7 @@ case CX23885_BOARD_LEADTEK_WINFAST_PXDVR3200_H: case CX23885_BOARD_COMPRO_VIDEOMATE_E650F: case CX23885_BOARD_NETUP_DUAL_DVBS2_CI: + case CX23885_BOARD_COMPRO_VIDEOMATE_E800: dev->sd_cx25840 = v4l2_i2c_new_subdev(&dev->v4l2_dev, &dev->i2c_bus[2].i2c_adap, "cx25840", "cx25840", 0x88 >> 1, NULL); diff -Naur a/linux/drivers/media/video/cx23885/cx23885-dvb.c b/linux/drivers/media/video/cx23885/cx23885-dvb.c --- a/linux/drivers/media/video/cx23885/cx23885-dvb.c 2009-09-01 16:43:46.000000000 +0300 +++ b/linux/drivers/media/video/cx23885/cx23885-dvb.c 2009-09-06 16:09:17.154602943 +0300 @@ -744,6 +744,7 @@ } case CX23885_BOARD_LEADTEK_WINFAST_PXDVR3200_H: case CX23885_BOARD_COMPRO_VIDEOMATE_E650F: + case CX23885_BOARD_COMPRO_VIDEOMATE_E800: i2c_bus = &dev->i2c_bus[0]; fe0->dvb.frontend = dvb_attach(zl10353_attach, diff -Naur a/linux/drivers/media/video/cx23885/cx23885.h b/linux/drivers/media/video/cx23885/cx23885.h --- a/linux/drivers/media/video/cx23885/cx23885.h 2009-09-01 16:43:46.000000000 +0300 +++ b/linux/drivers/media/video/cx23885/cx23885.h 2009-09-06 15:36:40.229792022 +0300 @@ -79,6 +79,7 @@ #define CX23885_BOARD_MYGICA_X8506 22 #define CX23885_BOARD_MAGICPRO_PROHDTVE2 23 #define CX23885_BOARD_HAUPPAUGE_HVR1850 24 +#define CX23885_BOARD_COMPRO_VIDEOMATE_E800 25 #define GPIO_0 0x00000001 #define GPIO_1 0x00000002