* [PATCH] Updated analog only support of Avermedia A700 cards - adds RF input support via XC2028 tuner (untested)
@ 2008-03-16 10:31 Matthias Schwarzott
2008-03-18 12:26 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 4+ messages in thread
From: Matthias Schwarzott @ 2008-03-16 10:31 UTC (permalink / raw)
To: linux-dvb; +Cc: video4linux-list, Mauro Carvalho Chehab
[-- Attachment #1: Type: text/plain, Size: 321 bytes --]
Hi there!
I updated this patch to support both Avermedia A700 cards (AverTV DVB-S Pro
and AverTV DVB-S Hybrid+FM).
The RF input of the Hybrid+FM card (with XC2028 tuner) is still untested.
I would be happy if any of the XC2028 experts could have a look at this patch.
Regards
Matthias
--
Matthias Schwarzott (zzam)
[-- Attachment #2: avertv_A700_analog_part.diff --]
[-- Type: text/x-diff, Size: 4538 bytes --]
saa7134: add analog support for Avermedia A700 cards
Add analog support for Avermedia DVB-S Pro and
DVB-S Hybrid+FM card both labled A700 to saa7134 driver.
Still untested is support of analog tuner XC2028 on the Hybrid+FM card.
Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Index: v4l-dvb/linux/drivers/media/video/saa7134/saa7134-cards.c
===================================================================
--- v4l-dvb.orig/linux/drivers/media/video/saa7134/saa7134-cards.c
+++ v4l-dvb/linux/drivers/media/video/saa7134/saa7134-cards.c
@@ -4196,7 +4196,56 @@ struct saa7134_board saa7134_boards[] =
.name = name_radio,
.amux = TV,
}
- }
+ },
+ [SAA7134_BOARD_AVERMEDIA_A700_PRO] = {
+ /* Matthias Schwarzott <zzam@gentoo.org> */
+ .name = "Avermedia DVB-S Pro A700",
+ .audio_clock = 0x00187de7,
+ .tuner_type = TUNER_ABSENT,
+ .radio_type = UNSET,
+ .tuner_addr = ADDR_UNSET,
+ .radio_addr = ADDR_UNSET,
+ /* no DVB support for now */
+ /* .mpeg = SAA7134_MPEG_DVB, */
+ .inputs = {{
+ .name = name_comp,
+ .vmux = 1,
+ .amux = LINE1,
+ }, {
+ .name = name_svideo,
+ .vmux = 6,
+ .amux = LINE1,
+ }},
+ },
+ [SAA7134_BOARD_AVERMEDIA_A700_HYBRID] = {
+ /* Matthias Schwarzott <zzam@gentoo.org> */
+ .name = "Avermedia DVB-S Hybrid+FM A700",
+ .audio_clock = 0x00187de7,
+ .tuner_type = TUNER_XC2028,
+ .radio_type = UNSET,
+ .tuner_addr = ADDR_UNSET,
+ .radio_addr = ADDR_UNSET,
+ /* no DVB support for now */
+ /* .mpeg = SAA7134_MPEG_DVB, */
+ .inputs = {{
+ .name = name_tv,
+ .vmux = 3, /* untested */
+ .amux = TV,
+ .tv = 1,
+ }, {
+ .name = name_comp,
+ .vmux = 1,
+ .amux = LINE1,
+ }, {
+ .name = name_svideo,
+ .vmux = 6,
+ .amux = LINE1,
+ }},
+ .radio = {
+ .name = name_radio,
+ .amux = TV,
+ },
+ },
};
const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards);
@@ -4429,6 +4478,18 @@ struct pci_device_id saa7134_pci_tbl[] =
.driver_data = SAA7134_BOARD_MD2819,
},{
.vendor = PCI_VENDOR_ID_PHILIPS,
+ .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
+ .subvendor = 0x1461, /* Avermedia Technologies Inc */
+ .subdevice = 0xa7a1,
+ .driver_data = SAA7134_BOARD_AVERMEDIA_A700_PRO,
+ },{
+ .vendor = PCI_VENDOR_ID_PHILIPS,
+ .device = PCI_DEVICE_ID_PHILIPS_SAA7133,
+ .subvendor = 0x1461, /* Avermedia Technologies Inc */
+ .subdevice = 0xa7a2,
+ .driver_data = SAA7134_BOARD_AVERMEDIA_A700_HYBRID,
+ },{
+ .vendor = PCI_VENDOR_ID_PHILIPS,
.device = PCI_DEVICE_ID_PHILIPS_SAA7130,
.subvendor = 0x1461, /* Avermedia Technologies Inc */
.subdevice = 0x2115,
@@ -5537,6 +5598,15 @@ int saa7134_board_init1(struct saa7134_d
saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x8c040007, 0x8c040007);
saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x0c0007cd, 0x0c0007cd);
break;
+ case SAA7134_BOARD_AVERMEDIA_A700_PRO:
+ case SAA7134_BOARD_AVERMEDIA_A700_HYBRID:
+ /* write windows gpio values */
+ saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x80040100, 0x80040100);
+ saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x80040100, 0x00040100);
+ printk("%s: %s: hybrid analog/dvb card\n"
+ "%s: Sorry, only the analog inputs are supported for now.\n",
+ dev->name,card(dev).name, dev->name);
+ break;
}
return 0;
}
Index: v4l-dvb/linux/drivers/media/video/saa7134/saa7134.h
===================================================================
--- v4l-dvb.orig/linux/drivers/media/video/saa7134/saa7134.h
+++ v4l-dvb/linux/drivers/media/video/saa7134/saa7134.h
@@ -268,6 +268,8 @@ struct saa7134_format {
#define SAA7134_BOARD_AVERMEDIA_A16D 137
#define SAA7134_BOARD_AVERMEDIA_M115 138
#define SAA7134_BOARD_VIDEOMATE_T750 139
+#define SAA7134_BOARD_AVERMEDIA_A700_PRO 140
+#define SAA7134_BOARD_AVERMEDIA_A700_HYBRID 141
#define SAA7134_MAXBOARDS 8
Index: v4l-dvb/linux/Documentation/video4linux/CARDLIST.saa7134
===================================================================
--- v4l-dvb.orig/linux/Documentation/video4linux/CARDLIST.saa7134
+++ v4l-dvb/linux/Documentation/video4linux/CARDLIST.saa7134
@@ -138,3 +138,5 @@
137 -> AVerMedia Hybrid TV/Radio (A16D) [1461:f936]
138 -> Avermedia M115 [1461:a836]
139 -> Compro VideoMate T750 [185b:c900]
+140 -> Avermedia DVB-S Pro A700 [1461:a7a1]
+141 -> Avermedia DVB-S Hybrid+FM A700 [1461:a7a2]
[-- 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] 4+ messages in thread
* Re: [PATCH] Updated analog only support of Avermedia A700 cards - adds RF input support via XC2028 tuner (untested)
2008-03-16 10:31 [PATCH] Updated analog only support of Avermedia A700 cards - adds RF input support via XC2028 tuner (untested) Matthias Schwarzott
@ 2008-03-18 12:26 ` Mauro Carvalho Chehab
2008-03-18 12:39 ` Matthias Schwarzott
0 siblings, 1 reply; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2008-03-18 12:26 UTC (permalink / raw)
To: Matthias Schwarzott; +Cc: video4linux-list, linux-dvb
On Sun, 16 Mar 2008 11:31:37 +0100
Matthias Schwarzott <zzam@gentoo.org> wrote:
> Hi there!
>
> I updated this patch to support both Avermedia A700 cards (AverTV DVB-S Pro
> and AverTV DVB-S Hybrid+FM).
>
> The RF input of the Hybrid+FM card (with XC2028 tuner) is still untested.
>
> I would be happy if any of the XC2028 experts could have a look at this patch.
For this to work, you'll need to set xc3028 parameters. This device needs a
reset during firmware load. This is done via xc3028_callback. To reset, you
need to turn some GPIO values, and then, return they back to their original
values. The GPIO's are device dependent. So, you'll need to check with some
software like Dscaler's regspy.exe what pins are changed during reset.
Also, there are two ways for audio to work with xc3028/2028: MTS mode and
non-mts. You'll need to test both ways.
A final notice: most current devices work fine with firmware v2.7. However, a
few devices only work if you use an older firmware version.
Could you please send us the logs with i2c_scan=1?
Please, use the latest version of v4l-dvb, since I did some fixes for cx88 and
saa7134 there recently.
Cheers,
Mauro
--
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] 4+ messages in thread
* Re: [PATCH] Updated analog only support of Avermedia A700 cards - adds RF input support via XC2028 tuner (untested)
2008-03-18 12:26 ` Mauro Carvalho Chehab
@ 2008-03-18 12:39 ` Matthias Schwarzott
2008-03-18 12:59 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 4+ messages in thread
From: Matthias Schwarzott @ 2008-03-18 12:39 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: video4linux-list, linux-dvb, Peter Meszmer
On Dienstag, 18. März 2008, Mauro Carvalho Chehab wrote:
> On Sun, 16 Mar 2008 11:31:37 +0100
>
> For this to work, you'll need to set xc3028 parameters. This device needs a
> reset during firmware load. This is done via xc3028_callback. To reset, you
> need to turn some GPIO values, and then, return they back to their original
> values. The GPIO's are device dependent. So, you'll need to check with some
> software like Dscaler's regspy.exe what pins are changed during reset.
I can only have a look at the wiring.
>
> Also, there are two ways for audio to work with xc3028/2028: MTS mode and
> non-mts. You'll need to test both ways.
>
> A final notice: most current devices work fine with firmware v2.7. However,
> a few devices only work if you use an older firmware version.
>
> Could you please send us the logs with i2c_scan=1?
>
I do not have that hardware. I only have the A700 without XC2028 soldered on
it. But maybe Peter can help out on this.
> Please, use the latest version of v4l-dvb, since I did some fixes for cx88
> and saa7134 there recently.
>
I do use latest v4l-dvb tree and create patches on top of this.
As this card is labled Hybrid+FM I should also add a radio section, I guess.
Regards
Matthias
--
Matthias Schwarzott (zzam)
--
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] 4+ messages in thread
* Re: [PATCH] Updated analog only support of Avermedia A700 cards - adds RF input support via XC2028 tuner (untested)
2008-03-18 12:39 ` Matthias Schwarzott
@ 2008-03-18 12:59 ` Mauro Carvalho Chehab
0 siblings, 0 replies; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2008-03-18 12:59 UTC (permalink / raw)
To: Matthias Schwarzott; +Cc: video4linux-list, linux-dvb, Peter Meszmer
On Tue, 18 Mar 2008 13:39:12 +0100
Matthias Schwarzott <zzam@gentoo.org> wrote:
> On Dienstag, 18. März 2008, Mauro Carvalho Chehab wrote:
> > On Sun, 16 Mar 2008 11:31:37 +0100
> >
> > For this to work, you'll need to set xc3028 parameters. This device needs a
> > reset during firmware load. This is done via xc3028_callback. To reset, you
> > need to turn some GPIO values, and then, return they back to their original
> > values. The GPIO's are device dependent. So, you'll need to check with some
> > software like Dscaler's regspy.exe what pins are changed during reset.
>
> I can only have a look at the wiring.
This may help, but should be validated with the hardware test, since it may
need to enable/disable more than one bit.
> > Also, there are two ways for audio to work with xc3028/2028: MTS mode and
> > non-mts. You'll need to test both ways.
> >
> > A final notice: most current devices work fine with firmware v2.7. However,
> > a few devices only work if you use an older firmware version.
> >
> > Could you please send us the logs with i2c_scan=1?
> >
>
> I do not have that hardware. I only have the A700 without XC2028 soldered on
> it. But maybe Peter can help out on this.
It would be nice if he could help us.
> > Please, use the latest version of v4l-dvb, since I did some fixes for cx88
> > and saa7134 there recently.
> >
> I do use latest v4l-dvb tree and create patches on top of this.
> As this card is labled Hybrid+FM I should also add a radio section, I guess.
Yes, but you've already added it. Radio entry is generally identical to TV, on
the devices with xc3028. I suspect that your radio entry should work.
Cheers,
Mauro
--
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] 4+ messages in thread
end of thread, other threads:[~2008-03-18 13:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-16 10:31 [PATCH] Updated analog only support of Avermedia A700 cards - adds RF input support via XC2028 tuner (untested) Matthias Schwarzott
2008-03-18 12:26 ` Mauro Carvalho Chehab
2008-03-18 12:39 ` Matthias Schwarzott
2008-03-18 12:59 ` Mauro Carvalho Chehab
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.