patch(bttv-0.7.103/snapshot20030129) miro pctv pro matchbox radio, hauppauge 848 autodetect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,
this patch (against latest snapshot at http://bytesex.org/snapshot/ ) adds
- Fix Miro PCTV Pro Matchbox radio (mutes is we apply the readback)
- Autodetect Hauppauge 848 cards by eeprom

Regards, Gunther

--- bttv7-20030129gm/driver/bttv-cards.c-orig	Thu Jan 30 23:26:57 2003
+++ bttv7-20030129gm/driver/bttv-cards.c	Thu Jan 30 23:29:35 2003
@@ -1696,15 +1696,19 @@
  * (most) board specific initialisations goes here
  */
 
-/* Some Modular Technology cards have an eeprom, but no subsystem ID */
 void identify_by_eeprom(struct bttv *btv, unsigned char eeprom_data[256])
 {
 	int type = -1;
 	
 	if (0 == strncmp(eeprom_data,"GET.MM20xPCTV",13))
+		// Some Modular Technology cards have an eeprom, but no subsystem ID (despite 878)
 		type = BTTV_MODTEC_205;
 	else if (0 == strncmp(eeprom_data+20,"Picolo",7))
 		type = BTTV_EURESYS_PICOLO;
+	else if (eeprom_data[0] == 0x84 && eeprom_data[2]== 0)
+                // Hauppauge Bt848 cards have eeprom, but no subsystem ID
+                // Fixme: for msp cards we must probably re-attach MSP after bttv_init_card1
+                type = BTTV_HAUPPAUGE;
 
 	if (-1 != type) {
 		btv->type = type;
@@ -2790,8 +2794,11 @@
 	
 	dprintk("tea5757_set_freq %d\n",freq);
 	tea5757_write(btv, 5 * freq + 0x358); /* add 10.7MHz (see docs) */
+#if 0
+	// Avoid readback on Miro PCTV Pro bt848 with matchbox daughterboard, else mute!
 	value = tea5757_read(btv);
 	dprintk("bttv%d: tea5757 readback=0x%x\n",btv->nr,value);
+#endif
 }
 
 

[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux