Skip to contentSkip to conversation

AverMedia CardBus Plus (E501R)

DISCUSSION Grigory Milev 2 participants 2 messages Mar 12, 2009 – Mar 23, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Does any body know, why support for this card don't exists in v4l2 kernel drivers?
May be sombody know how to use Radio and IR on this card.

Thanks.

Signature · 5 lines
+--------------------------------------------------------+
Grigory Milev	mailto:[email protected]
ALT Linux Team	http://www.altlinux.ru
+--------------------------------------------------------+
Life too beautiful and interesting. Don't worry, be happy.

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#1 lore raw
Quoted 4 lines · Grigory Milev

Does any body know, why support for this card don't exists in v4l2 kernel drivers?
May be sombody know how to use Radio and IR on this card.

Hi Grigory,

I have this card somewhere, I was using it up to 2.6.25 with the attached patch (doesn't apply to the latest kernel). The IR should be the same as it is in E506R (that I have now), so the patch for E506R's IR should work for you too.

1. Look at the attached patch for E501R (Cardbus Plus). You need to tweak it a little bit (change the constant, maybe other initialization code) to make it work. Hopefully you will be successful.

2. The IR patch and instructions for E506R (applies to 2.6.28 cleanly, it is part of linux-next branch in linux-dvb tree now) can be found in
http://en.gentoo-wiki.com/wiki/AverMedia_AverTV_Cardbus_Hybrid_E506R

3. You need to activate the IR by inserting line

  dev->has_remote = SAA7134_REMOTE_I2C;

in the card initialization code (saa7134-cards.c, lines after case SAA7134_BOARD_AVERMEDIA_CARDBUS_PLUS:, but before the break).

Cheers,
Oldrich.

Quoted 1 line

Thanks.

drivers/media/video/saa7134/saa7134-cards.c +45 -0
diff -ur linux-2.6.25-rc4.orig/drivers/media/video/saa7134/saa7134-cards.c linux-2.6.25-rc4/drivers/media/video/saa7134/saa7134-cards.c
@@ -1641,6 +1641,38 @@
 			.amux = LINE1,
 		},
 	},
+	[SAA7134_BOARD_AVERMEDIA_CARDBUS_PLUS] = {
+		.name           = "AVerMedia Cardbus Plus TV/Radio (E501)",
+		.audio_clock    = 0x187de7,
+		.tuner_type     = TUNER_ALPS_TSBE5_PAL,
+		.radio_type     = TUNER_TEA5767,
+		.tuner_addr	= 0x61,
+		.radio_addr	= 0x60,
+		.tda9887_conf	= TDA9887_PRESENT,
+		.gpiomask	= 0x0C400003,
+		.inputs         = {{
+			.name = name_tv,
+			.vmux = 1,
+			.amux = TV,
+			.tv   = 1,
+			.gpio = 0x0C400001,
+		},{
+			.name = name_comp1,
+			.vmux = 3,
+			.amux = LINE1,
+			.gpio = 0x0C400002,
+		},{
+			.name = name_svideo,
+			.vmux = 8,
+			.amux = LINE1,
+			.gpio = 0x0C400002,
+		}},
+		.radio = {
+			.name = name_radio,
+			.amux = LINE2,
+			.gpio = 0x04400001,
+		},
+	},
 	[SAA7134_BOARD_CINERGY400_CARDBUS] = {
 		.name           = "Terratec Cinergy 400 mobile",
 		.audio_clock    = 0x187de7,
@@ -4247,6 +4279,13 @@
 		.subdevice    = 0xd6ee,
 		.driver_data  = SAA7134_BOARD_AVERMEDIA_CARDBUS,
 	},{
+		/* AVerMedia CardBus Plus */
+		.vendor       = PCI_VENDOR_ID_PHILIPS,
+		.device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
+		.subvendor    = 0x1461, /* Avermedia Technologies Inc */
+		.subdevice    = 0xb7e9,
+		.driver_data  = SAA7134_BOARD_AVERMEDIA_CARDBUS_PLUS,
+	},{
 		/* TransGear 3000TV */
 		.vendor       = PCI_VENDOR_ID_PHILIPS,
 		.device       = PCI_DEVICE_ID_PHILIPS_SAA7130,
@@ -5111,6 +5150,12 @@
 		saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x00040000, 0x00040000);
 		saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00040000, 0x00000000);
 		break;
+	case SAA7134_BOARD_AVERMEDIA_CARDBUS_PLUS:
+		/* power-up tuner chip */
+		saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x0C440003, 0x0C440003);
+		saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x0C400000, 0x0C400000);
+		msleep(1);
+		break;
 	case SAA7134_BOARD_PINNACLE_300I_DVBT_PAL:
 		/* this turns the remote control chip off to work around a bug in it */
 		saa_writeb(SAA7134_GPIO_GPMODE1, 0x80);
drivers/media/video/saa7134/saa7134.h +1 -0
diff -ur linux-2.6.25-rc4.orig/drivers/media/video/saa7134/saa7134.h linux-2.6.25-rc4/drivers/media/video/saa7134/saa7134.h
@@ -254,6 +254,7 @@
 #define SAA7134_BOARD_BEHOLD_M6		130
 #define SAA7134_BOARD_TWINHAN_DTV_DVB_3056 131
 #define SAA7134_BOARD_GENIUS_TVGO_A11MCE 132
+#define SAA7134_BOARD_AVERMEDIA_CARDBUS_PLUS 133
 
 #define SAA7134_MAXBOARDS 8
 #define SAA7134_INPUT_MAX 8

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list