Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Aug 1998 18:16:32 +0100
From:      Roger Hardiman <roger@cs.strath.ac.uk>
To:        current@FreeBSD.ORG, roger@cs.strath.ac.uk, multimedia@FreeBSD.ORG
Subject:   Patch for Bt848 driver to detect new Hauppauge 404 Cards
Message-ID:  <35C89370.A1EB29F8@cs.strath.ac.uk>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------30D9845A3F7ACB1405A3769F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,
Please can someone commit this patch for the bt848 driver.
It allows the new Hauppauge WinCastTV 404 card with NTSC tuner to be
detected.
It also tidies up some of my earlier initialisation code Amancio
commited for me.

Thanks
Roger Hardiman
Strathclyde Uni Telepresence Group
--------------30D9845A3F7ACB1405A3769F
Content-Type: text/plain; charset=us-ascii; name="patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="patch"

*** brooktree848.c	Wed Aug  5 18:08:21 1998
--- new_brooktree848.c	Wed Aug  5 18:11:04 1998
***************
*** 1,4 ****
! /* BT848 1.38 Driver for Brooktree's Bt848 based cards.
     The Brooktree  BT848 Driver driver is based upon Mark Tinguely and
     Jim Lowe's driver for the Matrox Meteor PCI card . The 
     Philips SAA 7116 and SAA 7196 are very different chipsets than
--- 1,4 ----
! /* BT848 1.39 Driver for Brooktree's Bt848 based cards.
     The Brooktree  BT848 Driver driver is based upon Mark Tinguely and
     Jim Lowe's driver for the Matrox Meteor PCI card . The 
     Philips SAA 7116 and SAA 7196 are very different chipsets than
***************
*** 267,272 ****
--- 267,279 ----
  1.38                       Further improvements on Hauppauge's rely on
                             eeprom[9] to determine the tuner type 8)
  
+                            AVerMedia card type added <sos@freebsd.org>
+ 
+ 1.39            08/05/98   Roger Hardiman <roger@cs.strath.ac.uk>
+                            Updated Hauppauge detection code for Tuner ID 0x0a 
+                            for newer NTSC WinCastTV 404 with Bt878 chipset.
+                            Tidied up PAL default in video_open()
+ 			   
  */
  
  #define DDB(x) x
*************** video_open( bktr_ptr_t bktr )
*** 1621,1639 ****
  	    BT848_IFORM_X_XT0  |
  	    BT848_IFORM_F_NTSCM;
  	  bktr->format_params = BT848_IFORM_F_NTSCM;
- 	  frame_rate = 30;
  
  	} else {
  	  bt848->iform = BT848_IFORM_M_MUX1 |
  	    BT848_IFORM_X_XT1  |
  	    BT848_IFORM_F_PALBDGHI;
- 	  bt848->adelay = format_params[BT848_IFORM_F_PALBDGHI].adelay;
- 	  bt848->bdelay = format_params[BT848_IFORM_F_PALBDGHI].bdelay;
  	  bktr->format_params = BT848_IFORM_F_PALBDGHI;
- 	  frame_rate = 25;
  
  	}
  
  	bktr->flags = (bktr->flags & ~METEOR_DEV_MASK) | METEOR_DEV0;
  
  	bktr->max_clip_node = 0;
--- 1628,1646 ----
  	    BT848_IFORM_X_XT0  |
  	    BT848_IFORM_F_NTSCM;
  	  bktr->format_params = BT848_IFORM_F_NTSCM;
  
  	} else {
  	  bt848->iform = BT848_IFORM_M_MUX1 |
  	    BT848_IFORM_X_XT1  |
  	    BT848_IFORM_F_PALBDGHI;
  	  bktr->format_params = BT848_IFORM_F_PALBDGHI;
  
  	}
  
+ 	bt848->adelay = format_params[bktr->format_params].adelay;
+ 	bt848->bdelay = format_params[bktr->format_params].bdelay;
+ 	frame_rate    = format_params[bktr->format_params].frame_rate;
+ 
  	bktr->flags = (bktr->flags & ~METEOR_DEV_MASK) | METEOR_DEV0;
  
  	bktr->max_clip_node = 0;
*************** checkTuner:
*** 4413,4418 ****
--- 4420,4426 ----
  		 bktr->card.tuner = &tuners[ PHILIPS_NTSC  ];
  		 goto checkDBX;
  
+                case 0x0a:
                 case 0x12:
  	       case 0x17:
  		 bktr->card.tuner = &tuners[ PHILIPS_FR1236_NTSC  ];

--------------30D9845A3F7ACB1405A3769F--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35C89370.A1EB29F8>