From patchwork Thu Mar 12 22:46:49 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan McIvor X-Patchwork-Id: 11537 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 n2CN5VpK030522 for ; Thu, 12 Mar 2009 23:05:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755043AbZCLXFb (ORCPT ); Thu, 12 Mar 2009 19:05:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755338AbZCLXFb (ORCPT ); Thu, 12 Mar 2009 19:05:31 -0400 Received: from 203-109-246-148.static.bliink.ihug.co.nz ([203.109.246.148]:19872 "EHLO mail.reveal.local" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755043AbZCLXFa (ORCPT ); Thu, 12 Mar 2009 19:05:30 -0400 X-Greylist: delayed 914 seconds by postgrey-1.27 at vger.kernel.org; Thu, 12 Mar 2009 19:05:30 EDT Received: from pelican.reveal.local ([10.0.0.87]) by mail.reveal.local with Microsoft SMTPSVC(6.0.3790.3959); Fri, 13 Mar 2009 11:50:12 +1300 Date: Fri, 13 Mar 2009 11:46:49 +1300 From: Alan McIvor To: linux-media@vger.kernel.org Subject: [PATCH] Add support for ProVideo PV-183 to bttv Message-Id: <20090313114649.e774c9be.alan.mcivor@reveal.co.nz> Organization: Reveal Ltd X-Mailer: Sylpheed 2.5.0 (GTK+ 2.4.14; i686-pc-linux-gnu) Mime-Version: 1.0 X-OriginalArrivalTime: 12 Mar 2009 22:50:12.0725 (UTC) FILETIME=[E72C0A50:01C9A364] Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch adds support for the ProVideo PV-183 card to the bttv device driver. The PV-183 is a PCI card with 8 BT878 devices plus a Hint Corp HiNT HB4 PCI-PCI Bridge. Each BT878 has two composite input channels available. There are no tuners on this card. This patch was generated against the V4L-DVB mercurial tree as of 12 March 2009. Signed-off-by: Alan McIvor --- 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 --- linux/drivers/media/video/bt8xx/bttv.h.orig 2009-03-13 10:12:09.000000000 +1300 +++ linux/drivers/media/video/bt8xx/bttv.h 2009-03-13 10:18:46.000000000 +1300 @@ -184,6 +184,7 @@ #define BTTV_BOARD_IVCE8784 0x9c #define BTTV_BOARD_GEOVISION_GV800S 0x9d #define BTTV_BOARD_GEOVISION_GV800S_SL 0x9e +#define BTTV_BOARD_PV183 0x9f /* more card-specific defines */ --- linux/drivers/media/video/bt8xx/bttv-cards.c.orig 2009-03-13 10:12:19.000000000 +1300 +++ linux/drivers/media/video/bt8xx/bttv-cards.c 2009-03-13 10:24:28.000000000 +1300 @@ -321,6 +321,16 @@ static struct CARD { { 0x763d800b, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" }, { 0x763d800c, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" }, { 0x763d800d, BTTV_BOARD_GEOVISION_GV800S_SL, "GeoVision GV-800(S) (slave)" }, + + { 0x15401830, BTTV_BOARD_PV183, "Provideo PV183-1" }, + { 0x15401831, BTTV_BOARD_PV183, "Provideo PV183-2" }, + { 0x15401832, BTTV_BOARD_PV183, "Provideo PV183-3" }, + { 0x15401833, BTTV_BOARD_PV183, "Provideo PV183-4" }, + { 0x15401834, BTTV_BOARD_PV183, "Provideo PV183-5" }, + { 0x15401835, BTTV_BOARD_PV183, "Provideo PV183-6" }, + { 0x15401836, BTTV_BOARD_PV183, "Provideo PV183-7" }, + { 0x15401837, BTTV_BOARD_PV183, "Provideo PV183-8" }, + { 0, -1, NULL } }; @@ -2910,6 +2920,20 @@ struct tvcard bttv_tvcards[] = { .no_tda9875 = 1, .muxsel_hook = gv800s_muxsel, }, + [BTTV_BOARD_PV183] = { + .name = "ProVideo PV183", /* 0x9f */ + .video_inputs = 2, + /* .audio_inputs= 0, */ + .svhs = NO_SVHS, + .gpiomask = 0, + .muxsel = MUXSEL(2, 3), + .gpiomux = { 0 }, + .needs_tvaudio = 0, + .no_msp34xx = 1, + .pll = PLL_28, + .tuner_type = TUNER_ABSENT, + .tuner_addr = ADDR_UNSET, + }, }; static const unsigned int bttv_num_tvcards = ARRAY_SIZE(bttv_tvcards);