* Re: AverMedia CardBus Plus (E501R)
2009-03-12 0:41 AverMedia CardBus Plus (E501R) Grigory Milev
@ 2009-03-23 22:05 ` Oldrich Jedlicka
0 siblings, 0 replies; 2+ messages in thread
From: Oldrich Jedlicka @ 2009-03-23 22:05 UTC (permalink / raw)
To: video4linux-list
[-- Attachment #1: Type: text/plain, Size: 1133 bytes --]
On Thursday 12 of March 2009 at 01:41:41, Grigory Milev wrote:
> 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.
> Thanks.
[-- Attachment #2: avermedia-2.6.25.patch --]
[-- Type: text/x-diff, Size: 2887 bytes --]
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
--- linux-2.6.25-rc4.orig/drivers/media/video/saa7134/saa7134-cards.c 2008-03-05 18:57:43.000000000 +0100
+++ linux-2.6.25-rc4/drivers/media/video/saa7134/saa7134-cards.c 2008-03-05 19:04:29.000000000 +0100
@@ -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);
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
--- linux-2.6.25-rc4.orig/drivers/media/video/saa7134/saa7134.h 2008-03-05 18:57:43.000000000 +0100
+++ linux-2.6.25-rc4/drivers/media/video/saa7134/saa7134.h 2008-03-05 19:05:14.000000000 +0100
@@ -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
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
^ permalink raw reply [flat|nested] 2+ messages in thread