* Re: [linux-dvb] Avermedia A312 - patch for review
@ 2008-12-15 22:25 Daniel Perzynski
0 siblings, 0 replies; 12+ messages in thread
From: Daniel Perzynski @ 2008-12-15 22:25 UTC (permalink / raw)
To: linux-dvb
[-- Attachment #1.1: Type: text/plain, Size: 5520 bytes --]
Hi,
According to the suggestions I've modified dvb-usb-ids.h and cxusb.c to add
a support for that card.
I would appreciate someone to look at the code below and compare it with
spec on the wiki for that card.
--- ala/v4l-dvb/linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h
2008-12-14 23:11:28.000000000 +0100
+++ v4l-dvb/linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h 2008-12-14
22:08:17.000000000 +0100
@@ -234,5 +234,5 @@
#define USB_PID_XTENSIONS_XD_380
0x0381
#define USB_PID_TELESTAR_STARSTICK_2
0x8000
#define USB_PID_MSI_DIGI_VOX_MINI_III 0x8807
-
+#define USB_PID_AVERMEDIA_A312 0xa312
#endif
--- ala/v4l-dvb/linux/drivers/media/dvb/dvb-usb/cxusb.c
2008-12-14 23:11:28.000000000 +0100
+++ v4l-dvb/linux/drivers/media/dvb/dvb-usb/cxusb.c
2008-12-14 22:43:33.000000000 +0100
@@ -1224,6 +1224,8 @@
static struct dvb_usb_device_properties cxusb_bluebird_nano2_properties;
static struct dvb_usb_device_properties
cxusb_bluebird_nano2_needsfirmware_properties;
static struct dvb_usb_device_properties cxusb_aver_a868r_properties;
+static struct dvb_usb_device_properties cxusb_aver_a312_properties;
+
static struct dvb_usb_device_properties cxusb_d680_dmb_properties;
static int cxusb_probe(struct usb_interface *intf,
@@ -1248,6 +1250,8 @@
THIS_MODULE, NULL, adapter_nr) ||
0 == dvb_usb_device_init(intf,
&cxusb_aver_a868r_properties,
THIS_MODULE, NULL, adapter_nr) ||
+ 0 == dvb_usb_device_init(intf,
&cxusb_aver_a312_properties,
+
THIS_MODULE, NULL, adapter_nr) ||
0 == dvb_usb_device_init(intf,
&cxusb_bluebird_dualdig4_rev2_properties,
THIS_MODULE, NULL, adapter_nr) ||
@@ -1277,6 +1281,7 @@
{ USB_DEVICE(USB_VID_DVICO,
USB_PID_DVICO_BLUEBIRD_DVB_T_NANO_2) },
{ USB_DEVICE(USB_VID_DVICO,
USB_PID_DVICO_BLUEBIRD_DVB_T_NANO_2_NFW_WARM) },
{ USB_DEVICE(USB_VID_AVERMEDIA,
USB_PID_AVERMEDIA_VOLAR_A868R) },
+ { USB_DEVICE(USB_VID_AVERMEDIA, USB_PID_AVERMEDIA_A312) },
{ USB_DEVICE(USB_VID_DVICO,
USB_PID_DVICO_BLUEBIRD_DUAL_4_REV_2) },
{ USB_DEVICE(USB_VID_CONEXANT, USB_PID_CONEXANT_D680_DMB) },
{} /* Terminating entry */
@@ -1724,6 +1729,48 @@
}
};
+static struct dvb_usb_device_properties cxusb_aver_a312_properties = {
+ .caps = DVB_USB_IS_AN_I2C_ADAPTER,
+
+ .usb_ctrl = CYPRESS_FX2,
+
+ .size_of_priv = sizeof(struct cxusb_state),
+
+ .num_adapters = 1,
+ .adapter = {
+ {
+ .streaming_ctrl =
cxusb_aver_streaming_ctrl,
+ .frontend_attach =
cxusb_aver_lgdt3303_frontend_attach,
+ .tuner_attach =
cxusb_dvico_xc3028_tuner_attach,
+ /* parameter for the
MPEG2-data transfer */
+ .stream = {
+ .type =
USB_BULK,
+ .count = 5,
+ .endpoint =
0x04,
+ .u = {
+
.bulk = {
+
.buffersize = 8192,
+
}
+ }
+ },
+
+ },
+ },
+ .power_ctrl = cxusb_aver_power_ctrl,
+
+ .i2c_algo = &cxusb_i2c_algo,
+
+ .generic_bulk_ctrl_endpoint = 0x01,
+
+ .num_device_descs = 1,
+ .devices = {
+ { "AVerMedia AVerTVHD (A312)",
+ { NULL },
+ { &cxusb_table[17], NULL },
+ },
+ }
+};
+
static
struct dvb_usb_device_properties cxusb_bluebird_dualdig4_rev2_properties =
{
.caps = DVB_USB_IS_AN_I2C_ADAPTER,
After modprobing cxusb driver I have:
vb-usb: found a 'AVerMedia AVerTVHD (A312)' in warm state.
dvb-usb: will pass the complete MPEG2 transport stream to the software
demuxer.
DVB: registering new adapter (AVerMedia AVerTVHD (A312))
DVB: registering adapter 0 frontend 0 (LG Electronics LGDT3303 VSB/QAM
Frontend)...
xc2028 4-0061: creating new instance
xc2028 4-0061: type set to XCeive xc2028/xc3028 tuner
dvb-usb: AVerMedia AVerTVHD (A312) successfully initialized and connected.
usbcore: registered new interface driver dvb_usb_cxusb
h3xu5 v4l-dvb # ls -laR /dev/dvb/
/dev/dvb/:
total 0
drwxr-xr-x 3 root root 60 Dec 14 23:06 .
drwxr-xr-x 15 root root 4640 Dec 14 23:06 ..
drwxr-xr-x 2 root root 120 Dec 14 23:06 adapter0
/dev/dvb/adapter0:
total 0
drwxr-xr-x 2 root root 120 Dec 14 23:06 .
drwxr-xr-x 3 root root 60 Dec 14 23:06 ..
crw-rw---- 1 root video 212, 0 Dec 14 23:06 demux0
crw-rw---- 1 root video 212, 1 Dec 14 23:06 dvr0
crw-rw---- 1 root video 212, 3 Dec 14 23:06 frontend0
crw-rw---- 1 root video 212, 2 Dec 14 23:06 net0
The question is if it is ok or maybe something is missing here and what
should be next steps.
Regards,
[-- Attachment #1.2: Type: text/html, Size: 22096 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-dvb] Avermedia A312 - patch for review
[not found] <4728568367913277327@unknownmsgid>
@ 2008-12-15 22:28 ` Devin Heitmueller
2008-12-15 23:08 ` Daniel Perzynski
[not found] ` <8829222570103551382@unknownmsgid>
0 siblings, 2 replies; 12+ messages in thread
From: Devin Heitmueller @ 2008-12-15 22:28 UTC (permalink / raw)
To: Daniel Perzynski; +Cc: linux-dvb
On Mon, Dec 15, 2008 at 5:25 PM, Daniel Perzynski
<Daniel.Perzynski@aster.pl> wrote:
> Hi,
>
>
>
> According to the suggestions I've modified dvb-usb-ids.h and cxusb.c to add
> a support for that card.
>
>
>
> I would appreciate someone to look at the code below and compare it with
> spec on the wiki for that card.
>
<snip>
Does this patch actually work? Can you watch ATSC TV?
Devin
--
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-dvb] Avermedia A312 - patch for review
2008-12-15 22:28 ` [linux-dvb] Avermedia A312 - patch for review Devin Heitmueller
@ 2008-12-15 23:08 ` Daniel Perzynski
[not found] ` <8829222570103551382@unknownmsgid>
1 sibling, 0 replies; 12+ messages in thread
From: Daniel Perzynski @ 2008-12-15 23:08 UTC (permalink / raw)
To: 'Devin Heitmueller'; +Cc: linux-dvb
-----Original Message-----
From: Devin Heitmueller [mailto:devin.heitmueller@gmail.com]
Sent: Monday, December 15, 2008 11:29 PM
To: Daniel Perzynski
Cc: linux-dvb@linuxtv.org
Subject: Re: Avermedia A312 - patch for review
On Mon, Dec 15, 2008 at 5:25 PM, Daniel Perzynski
<Daniel.Perzynski@aster.pl> wrote:
> Hi,
>
>
>
> According to the suggestions I've modified dvb-usb-ids.h and cxusb.c to
add
> a support for that card.
>
>
>
> I would appreciate someone to look at the code below and compare it with
> spec on the wiki for that card.
>
<snip>
Does this patch actually work? Can you watch ATSC TV?
Devin
--
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller
Good question,
How to check it? What about analog TV?
Daniel
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-dvb] Avermedia A312 - patch for review
[not found] ` <8829222570103551382@unknownmsgid>
@ 2008-12-15 23:12 ` Devin Heitmueller
2008-12-15 23:23 ` Daniel Perzynski
[not found] ` <2944906433286851876@unknownmsgid>
0 siblings, 2 replies; 12+ messages in thread
From: Devin Heitmueller @ 2008-12-15 23:12 UTC (permalink / raw)
To: Daniel Perzynski; +Cc: linux-dvb
On Mon, Dec 15, 2008 at 6:08 PM, Daniel Perzynski
<Daniel.Perzynski@aster.pl> wrote:
>
> -----Original Message-----
> From: Devin Heitmueller [mailto:devin.heitmueller@gmail.com]
> Sent: Monday, December 15, 2008 11:29 PM
> To: Daniel Perzynski
> Cc: linux-dvb@linuxtv.org
> Subject: Re: Avermedia A312 - patch for review
>
> On Mon, Dec 15, 2008 at 5:25 PM, Daniel Perzynski
> <Daniel.Perzynski@aster.pl> wrote:
>> Hi,
>>
>>
>>
>> According to the suggestions I've modified dvb-usb-ids.h and cxusb.c to
> add
>> a support for that card.
>>
>>
>>
>> I would appreciate someone to look at the code below and compare it with
>> spec on the wiki for that card.
>>
> <snip>
>
> Does this patch actually work? Can you watch ATSC TV?
>
> Devin
>
> --
> Devin J. Heitmueller
> http://www.devinheitmueller.com
> AIM: devinheitmueller
>
> Good question,
>
> How to check it? What about analog TV?
>
> Daniel
Well, the /dev/dvb/adapter0/* files are for the ATSC interface (using
the lgdt3303). You would use tools like scan, azap, mplayer to test
digital support:
http://linuxtv.org/wiki/index.php/Testing_your_DVB_device
I'm not sure which analog video decoder that device uses and I'm not
confident you have provided any configuration to specify the decoder.
Do you have a /dev/video0 device?
Devin
--
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-dvb] Avermedia A312 - patch for review
2008-12-15 23:12 ` Devin Heitmueller
@ 2008-12-15 23:23 ` Daniel Perzynski
[not found] ` <2944906433286851876@unknownmsgid>
1 sibling, 0 replies; 12+ messages in thread
From: Daniel Perzynski @ 2008-12-15 23:23 UTC (permalink / raw)
To: 'Devin Heitmueller'; +Cc: linux-dvb
-----Original Message-----
From: Devin Heitmueller [mailto:devin.heitmueller@gmail.com]
Sent: Tuesday, December 16, 2008 12:12 AM
To: Daniel Perzynski
Cc: linux-dvb@linuxtv.org
Subject: Re: Avermedia A312 - patch for review
On Mon, Dec 15, 2008 at 6:08 PM, Daniel Perzynski
<Daniel.Perzynski@aster.pl> wrote:
>
> -----Original Message-----
> From: Devin Heitmueller [mailto:devin.heitmueller@gmail.com]
> Sent: Monday, December 15, 2008 11:29 PM
> To: Daniel Perzynski
> Cc: linux-dvb@linuxtv.org
> Subject: Re: Avermedia A312 - patch for review
>
> On Mon, Dec 15, 2008 at 5:25 PM, Daniel Perzynski
> <Daniel.Perzynski@aster.pl> wrote:
>> Hi,
>>
>>
>>
>> According to the suggestions I've modified dvb-usb-ids.h and cxusb.c to
> add
>> a support for that card.
>>
>>
>>
>> I would appreciate someone to look at the code below and compare it with
>> spec on the wiki for that card.
>>
> <snip>
>
> Does this patch actually work? Can you watch ATSC TV?
>
> Devin
>
> --
> Devin J. Heitmueller
> http://www.devinheitmueller.com
> AIM: devinheitmueller
>
> Good question,
>
> How to check it? What about analog TV?
>
> Daniel
> Well, the /dev/dvb/adapter0/* files are for the ATSC interface (using
> the lgdt3303). You would use tools like scan, azap, mplayer to test
> digital support:
> http://linuxtv.org/wiki/index.php/Testing_your_DVB_device
>
> I'm not sure which analog video decoder that device uses and I'm not
> confident you have provided any configuration to specify the decoder.
> Do you have a /dev/video0 device?
>
> Devin
>
> --
> Devin J. Heitmueller
> http://www.devinheitmueller.com
> AIM: devinheitmueller
Devin,
The problem is that I'm in Poland and we don't have ATSC here as far as I'm
aware but I will try to test it anyway.
Could you please look at the wiki for that card and tell me what will be the
analog video decoder for that card (I don't have /dev/videoX device).
Regards,
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-dvb] Avermedia A312 - patch for review
[not found] ` <2944906433286851876@unknownmsgid>
@ 2008-12-15 23:27 ` Devin Heitmueller
2008-12-15 23:30 ` Daniel Perzynski
2008-12-16 1:04 ` Andy Walls
0 siblings, 2 replies; 12+ messages in thread
From: Devin Heitmueller @ 2008-12-15 23:27 UTC (permalink / raw)
To: Daniel Perzynski; +Cc: linux-dvb
On Mon, Dec 15, 2008 at 6:23 PM, Daniel Perzynski
<Daniel.Perzynski@aster.pl> wrote:
>
>
> -----Original Message-----
> From: Devin Heitmueller [mailto:devin.heitmueller@gmail.com]
> Sent: Tuesday, December 16, 2008 12:12 AM
> To: Daniel Perzynski
> Cc: linux-dvb@linuxtv.org
> Subject: Re: Avermedia A312 - patch for review
>
> On Mon, Dec 15, 2008 at 6:08 PM, Daniel Perzynski
> <Daniel.Perzynski@aster.pl> wrote:
>>
>> -----Original Message-----
>> From: Devin Heitmueller [mailto:devin.heitmueller@gmail.com]
>> Sent: Monday, December 15, 2008 11:29 PM
>> To: Daniel Perzynski
>> Cc: linux-dvb@linuxtv.org
>> Subject: Re: Avermedia A312 - patch for review
>>
>> On Mon, Dec 15, 2008 at 5:25 PM, Daniel Perzynski
>> <Daniel.Perzynski@aster.pl> wrote:
>>> Hi,
>>>
>>>
>>>
>>> According to the suggestions I've modified dvb-usb-ids.h and cxusb.c to
>> add
>>> a support for that card.
>>>
>>>
>>>
>>> I would appreciate someone to look at the code below and compare it with
>>> spec on the wiki for that card.
>>>
>> <snip>
>>
>> Does this patch actually work? Can you watch ATSC TV?
>>
>> Devin
>>
>> --
>> Devin J. Heitmueller
>> http://www.devinheitmueller.com
>> AIM: devinheitmueller
>>
>> Good question,
>>
>> How to check it? What about analog TV?
>>
>> Daniel
>
>> Well, the /dev/dvb/adapter0/* files are for the ATSC interface (using
>> the lgdt3303). You would use tools like scan, azap, mplayer to test
>> digital support:
>
>> http://linuxtv.org/wiki/index.php/Testing_your_DVB_device
>>
>> I'm not sure which analog video decoder that device uses and I'm not
>> confident you have provided any configuration to specify the decoder.
>> Do you have a /dev/video0 device?
>>
>> Devin
>>
>> --
>> Devin J. Heitmueller
>> http://www.devinheitmueller.com
>> AIM: devinheitmueller
>
> Devin,
>
> The problem is that I'm in Poland and we don't have ATSC here as far as I'm
> aware but I will try to test it anyway.
> Could you please look at the wiki for that card and tell me what will be the
> analog video decoder for that card (I don't have /dev/videoX device).
Hmm.... It's a cx25843. I would have to look at the code to see how
to hook that into the CY7C68013A bridge. I'll take a look tonight
when I get home.
Devin
--
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-dvb] Avermedia A312 - patch for review
2008-12-15 23:27 ` Devin Heitmueller
@ 2008-12-15 23:30 ` Daniel Perzynski
2008-12-16 1:04 ` Andy Walls
1 sibling, 0 replies; 12+ messages in thread
From: Daniel Perzynski @ 2008-12-15 23:30 UTC (permalink / raw)
To: 'Devin Heitmueller'; +Cc: linux-dvb
-----Original Message-----
From: Devin Heitmueller [mailto:devin.heitmueller@gmail.com]
Sent: Tuesday, December 16, 2008 12:28 AM
To: Daniel Perzynski
Cc: linux-dvb@linuxtv.org
Subject: Re: Avermedia A312 - patch for review
On Mon, Dec 15, 2008 at 6:23 PM, Daniel Perzynski
<Daniel.Perzynski@aster.pl> wrote:
>
>
> -----Original Message-----
> From: Devin Heitmueller [mailto:devin.heitmueller@gmail.com]
> Sent: Tuesday, December 16, 2008 12:12 AM
> To: Daniel Perzynski
> Cc: linux-dvb@linuxtv.org
> Subject: Re: Avermedia A312 - patch for review
>
> On Mon, Dec 15, 2008 at 6:08 PM, Daniel Perzynski
> <Daniel.Perzynski@aster.pl> wrote:
>>
>> -----Original Message-----
>> From: Devin Heitmueller [mailto:devin.heitmueller@gmail.com]
>> Sent: Monday, December 15, 2008 11:29 PM
>> To: Daniel Perzynski
>> Cc: linux-dvb@linuxtv.org
>> Subject: Re: Avermedia A312 - patch for review
>>
>> On Mon, Dec 15, 2008 at 5:25 PM, Daniel Perzynski
>> <Daniel.Perzynski@aster.pl> wrote:
>>> Hi,
>>>
>>>
>>>
>>> According to the suggestions I've modified dvb-usb-ids.h and cxusb.c to
>> add
>>> a support for that card.
>>>
>>>
>>>
>>> I would appreciate someone to look at the code below and compare it with
>>> spec on the wiki for that card.
>>>
>> <snip>
>>
>> Does this patch actually work? Can you watch ATSC TV?
>>
>> Devin
>>
>> --
>> Devin J. Heitmueller
>> http://www.devinheitmueller.com
>> AIM: devinheitmueller
>>
>> Good question,
>>
>> How to check it? What about analog TV?
>>
>> Daniel
>
>> Well, the /dev/dvb/adapter0/* files are for the ATSC interface (using
>> the lgdt3303). You would use tools like scan, azap, mplayer to test
>> digital support:
>
>> http://linuxtv.org/wiki/index.php/Testing_your_DVB_device
>>
>> I'm not sure which analog video decoder that device uses and I'm not
>> confident you have provided any configuration to specify the decoder.
>> Do you have a /dev/video0 device?
>>
>> Devin
>>
>> --
>> Devin J. Heitmueller
>> http://www.devinheitmueller.com
>> AIM: devinheitmueller
>
> Devin,
>
> The problem is that I'm in Poland and we don't have ATSC here as far as
I'm
> aware but I will try to test it anyway.
> Could you please look at the wiki for that card and tell me what will be
the
> analog video decoder for that card (I don't have /dev/videoX device).
> Hmm.... It's a cx25843. I would have to look at the code to see how
> to hook that into the CY7C68013A bridge. I'll take a look tonight
> when I get home.
>
> Devin
>
> --
> Devin J. Heitmueller
> http://www.devinheitmueller.com
> AIM: devinheitmueller
Thank you very much, I would appreciate that.
Daniel,
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-dvb] Avermedia A312 - patch for review
2008-12-15 23:27 ` Devin Heitmueller
2008-12-15 23:30 ` Daniel Perzynski
@ 2008-12-16 1:04 ` Andy Walls
2008-12-16 5:07 ` Devin Heitmueller
1 sibling, 1 reply; 12+ messages in thread
From: Andy Walls @ 2008-12-16 1:04 UTC (permalink / raw)
To: Devin Heitmueller; +Cc: linux-dvb, Daniel Perzynski
On Mon, 2008-12-15 at 18:27 -0500, Devin Heitmueller wrote:
> On Mon, Dec 15, 2008 at 6:23 PM, Daniel Perzynski
> <Daniel.Perzynski@aster.pl> wrote:
> > Devin,
> >
> > The problem is that I'm in Poland and we don't have ATSC here as far as I'm
> > aware but I will try to test it anyway.
> > Could you please look at the wiki for that card and tell me what will be the
> > analog video decoder for that card (I don't have /dev/videoX device).
>
> Hmm.... It's a cx25843. I would have to look at the code to see how
> to hook that into the CY7C68013A bridge. I'll take a look tonight
> when I get home.
The cxusb.[ch] files seem to devoid of analog support. There's this
comment which sums it up:
* TODO: Use the cx25840-driver for the analogue part
Although the linux/media/video/pvrusb2 driver appears to have at least
two hybrid boards with a cx2584x and an FX2 (WinTV HVR-1900 and HVR-1950
in pvrusb2_devattr.c). Maybe that driver could help... (or maybe I
haven't got a clue :] )
Regards,
Andy
> Devin
>
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-dvb] Avermedia A312 - patch for review
2008-12-16 1:04 ` Andy Walls
@ 2008-12-16 5:07 ` Devin Heitmueller
2008-12-16 11:29 ` Daniel Perzynski
0 siblings, 1 reply; 12+ messages in thread
From: Devin Heitmueller @ 2008-12-16 5:07 UTC (permalink / raw)
To: Andy Walls; +Cc: linux-dvb, Daniel Perzynski
On Mon, Dec 15, 2008 at 8:04 PM, Andy Walls <awalls@radix.net> wrote:
> On Mon, 2008-12-15 at 18:27 -0500, Devin Heitmueller wrote:
>> On Mon, Dec 15, 2008 at 6:23 PM, Daniel Perzynski
>> <Daniel.Perzynski@aster.pl> wrote:
>
>> > Devin,
>> >
>> > The problem is that I'm in Poland and we don't have ATSC here as far as I'm
>> > aware but I will try to test it anyway.
>> > Could you please look at the wiki for that card and tell me what will be the
>> > analog video decoder for that card (I don't have /dev/videoX device).
>>
>> Hmm.... It's a cx25843. I would have to look at the code to see how
>> to hook that into the CY7C68013A bridge. I'll take a look tonight
>> when I get home.
>
> The cxusb.[ch] files seem to devoid of analog support. There's this
> comment which sums it up:
>
> * TODO: Use the cx25840-driver for the analogue part
>
>
> Although the linux/media/video/pvrusb2 driver appears to have at least
> two hybrid boards with a cx2584x and an FX2 (WinTV HVR-1900 and HVR-1950
> in pvrusb2_devattr.c). Maybe that driver could help... (or maybe I
> haven't got a clue :] )
>
> Regards,
> Andy
Ugh. It looks like Andy is right - nobody appears to have ever gotten
around to doing analog support for the cxusb driver. Worse, the
driver relies on the dvb_usb framework which doesn't have analog
support at all (this is why the Pinnacle 801e doesn't have analog
too).
Daniel - This is going to be a project - we're not talking adding just
another device profile. Analog support is a huge piece of the
framework that this driver outright doesn't exist. Someone would have
to add analog support to dvb_usb and then make it work with the cxusb
driver, and then add the appropriate device profile for the Avermedia
A312.
Devin
--
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-dvb] Avermedia A312 - patch for review
2008-12-16 5:07 ` Devin Heitmueller
@ 2008-12-16 11:29 ` Daniel Perzynski
2008-12-17 2:51 ` Andy Walls
0 siblings, 1 reply; 12+ messages in thread
From: Daniel Perzynski @ 2008-12-16 11:29 UTC (permalink / raw)
To: 'Devin Heitmueller', 'Andy Walls'; +Cc: linux-dvb
-----Original Message-----
From: Devin Heitmueller [mailto:devin.heitmueller@gmail.com]
Sent: Tuesday, December 16, 2008 6:08 AM
To: Andy Walls
Cc: Daniel Perzynski; linux-dvb@linuxtv.org
Subject: Re: [linux-dvb] Avermedia A312 - patch for review
On Mon, Dec 15, 2008 at 8:04 PM, Andy Walls <awalls@radix.net> wrote:
> On Mon, 2008-12-15 at 18:27 -0500, Devin Heitmueller wrote:
>> On Mon, Dec 15, 2008 at 6:23 PM, Daniel Perzynski
>> <Daniel.Perzynski@aster.pl> wrote:
>
>> > Devin,
>> >
>> > The problem is that I'm in Poland and we don't have ATSC here as far as
I'm
>> > aware but I will try to test it anyway.
>> > Could you please look at the wiki for that card and tell me what will
be the
>> > analog video decoder for that card (I don't have /dev/videoX device).
>>
>> Hmm.... It's a cx25843. I would have to look at the code to see how
>> to hook that into the CY7C68013A bridge. I'll take a look tonight
>> when I get home.
>
> The cxusb.[ch] files seem to devoid of analog support. There's this
> comment which sums it up:
>
> * TODO: Use the cx25840-driver for the analogue part
>
>
> Although the linux/media/video/pvrusb2 driver appears to have at least
> two hybrid boards with a cx2584x and an FX2 (WinTV HVR-1900 and HVR-1950
> in pvrusb2_devattr.c). Maybe that driver could help... (or maybe I
> haven't got a clue :] )
>
> Regards,
> Andy
> Ugh. It looks like Andy is right - nobody appears to have ever gotten
> around to doing analog support for the cxusb driver. Worse, the
> driver relies on the dvb_usb framework which doesn't have analog
> support at all (this is why the Pinnacle 801e doesn't have analog
> too).
>
> Daniel - This is going to be a project - we're not talking adding just
> another device profile. Analog support is a huge piece of the
> framework that this driver outright doesn't exist. Someone would have
> to add analog support to dvb_usb and then make it work with the cxusb
> driver, and then add the appropriate device profile for the Avermedia
> A312.
>
> Devin
>
> --
> Devin J. Heitmueller
> http://www.devinheitmueller.com
> AIM: devinheitmueller
Hmm, not good then :( How we can start that project? I have to tell you that
I'm not a programmer and I've added a312 support to cxusb based on the
similarities to Avermedia Volar.
There is a radio also in that card (I don't know which chipset is
responsible for that) + WM8739 for which the driver do exist (wm8739.c). I
can try to modify pvrusb2 but the question is if we shouldn't have one
"driver" to support both analog and digital TV + Radio on that card?
Daniel,
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-dvb] Avermedia A312 - patch for review
2008-12-16 11:29 ` Daniel Perzynski
@ 2008-12-17 2:51 ` Andy Walls
2008-12-17 21:24 ` Daniel Perzynski
0 siblings, 1 reply; 12+ messages in thread
From: Andy Walls @ 2008-12-17 2:51 UTC (permalink / raw)
To: Daniel Perzynski; +Cc: linux-dvb
On Tue, 2008-12-16 at 12:29 +0100, Daniel Perzynski wrote:
> From: Devin Heitmueller [mailto:devin.heitmueller@gmail.com]
> On Mon, Dec 15, 2008 at 8:04 PM, Andy Walls <awalls@radix.net> wrote:
> > On Mon, 2008-12-15 at 18:27 -0500, Devin Heitmueller wrote:
> >> On Mon, Dec 15, 2008 at 6:23 PM, Daniel Perzynski
> >> <Daniel.Perzynski@aster.pl> wrote:
> >
> >> > Could you please look at the wiki for that card and tell me what will
> be the
> >> > analog video decoder for that card (I don't have /dev/videoX device).
> >>
> >> Hmm.... It's a cx25843. I would have to look at the code to see how
> >> to hook that into the CY7C68013A bridge. I'll take a look tonight
> >> when I get home.
> >
> > The cxusb.[ch] files seem to devoid of analog support. There's this
> > comment which sums it up:
> >
> > * TODO: Use the cx25840-driver for the analogue part
> >
> >
> > Although the linux/media/video/pvrusb2 driver appears to have at least
> > two hybrid boards with a cx2584x and an FX2 (WinTV HVR-1900 and HVR-1950
> > in pvrusb2_devattr.c). Maybe that driver could help... (or maybe I
> > haven't got a clue :] )
> >
> > Regards,
> > Andy
> > Daniel - This is going to be a project - we're not talking adding just
> > another device profile. Analog support is a huge piece of the
> > framework that this driver outright doesn't exist. Someone would have
> > to add analog support to dvb_usb and then make it work with the cxusb
> > driver, and then add the appropriate device profile for the Avermedia
> > A312.
> Hmm, not good then :( How we can start that project? I have to tell you that
> I'm not a programmer and I've added a312 support to cxusb based on the
> similarities to Avermedia Volar.
Andy Walls' off the cuff steps to starting a project:
1. Define the requirements: analog TV and video, FM radio, and ideally
digital TV support for the AverMedia A312 in v4l-dvb. Done.
2. Identify resources and constraints: limited hardware test asset
availability due to laptop family specific packaging, limits of time for
experienced programmers, number of testers, ability of testers to
exercise all functions (e.g. ATSC in Europe is unlikely), who's going to
do the coding and the testing?, etc.
3. Develop some strategic options: add analog support to cxusb, modify
pvrusb2, write a new driver based on existing one, etc.
4. Asses relative feasibility of strategies and scope the work
5. Develop a work break down of the preferred strategy, with tasks and
milestones to accomplish, and set an overall schedule goal.
Of the above, I'd suggest assessing a strategy of modifying the pvrusb2
driver first, as I have a feeling that will have the best return on time
invested. Mike Isley would probably be able to provide you with an
expert opinion on feasibility of modifying pvrusb2 to support the A312,
given that he maintains the pvrusb2 driver, IIRC, and you can point him
to fairly decent information on the wiki page for the A312.
> There is a radio also in that card (I don't know which chipset is
> responsible for that) + WM8739 for which the driver do exist (wm8739.c).
Likely the tuner outputs baseband FM L and R audio that's fed into the
WM8739 for digitization, and then passed to the CX25843 as serial audio
data on the I2S input to the CX25843. That's the way it works on many
of the ivtv and cx18 supported cards.
> I
> can try to modify pvrusb2 but the question is if we shouldn't have one
> "driver" to support both analog and digital TV + Radio on that card?
That's an easy one to answer: Why shouldn't one driver do it?
There's precedent as other drivers do this: At least the cx18 driver
supports cards that can capture analog video, FM radio and digital TV.
The ivtv driver supports cards that perform analog video capture and FM
radio capture.
The real answer is that there are finite resources available (people
with time and experience and test assets) and that will limit what gets
done. So what's most important to you to get working?
(Not that I have time to really help - just apparently time enough to
write long rambling e-mails)
Regards,
Andy
> Daniel,
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [linux-dvb] Avermedia A312 - patch for review
2008-12-17 2:51 ` Andy Walls
@ 2008-12-17 21:24 ` Daniel Perzynski
0 siblings, 0 replies; 12+ messages in thread
From: Daniel Perzynski @ 2008-12-17 21:24 UTC (permalink / raw)
To: 'Andy Walls'; +Cc: linux-dvb
-----Original Message-----
From: Andy Walls [mailto:awalls@radix.net]
Sent: Wednesday, December 17, 2008 3:51 AM
To: Daniel Perzynski
Cc: 'Devin Heitmueller'; linux-dvb@linuxtv.org
Subject: RE: [linux-dvb] Avermedia A312 - patch for review
On Tue, 2008-12-16 at 12:29 +0100, Daniel Perzynski wrote:
> From: Devin Heitmueller [mailto:devin.heitmueller@gmail.com]
> On Mon, Dec 15, 2008 at 8:04 PM, Andy Walls <awalls@radix.net> wrote:
> > On Mon, 2008-12-15 at 18:27 -0500, Devin Heitmueller wrote:
> >> On Mon, Dec 15, 2008 at 6:23 PM, Daniel Perzynski
> >> <Daniel.Perzynski@aster.pl> wrote:
> >
> >> > Could you please look at the wiki for that card and tell me what will
> be the
> >> > analog video decoder for that card (I don't have /dev/videoX device).
> >>
> >> Hmm.... It's a cx25843. I would have to look at the code to see how
> >> to hook that into the CY7C68013A bridge. I'll take a look tonight
> >> when I get home.
> >
> > The cxusb.[ch] files seem to devoid of analog support. There's this
> > comment which sums it up:
> >
> > * TODO: Use the cx25840-driver for the analogue part
> >
> >
> > Although the linux/media/video/pvrusb2 driver appears to have at least
> > two hybrid boards with a cx2584x and an FX2 (WinTV HVR-1900 and HVR-1950
> > in pvrusb2_devattr.c). Maybe that driver could help... (or maybe I
> > haven't got a clue :] )
> >
> > Regards,
> > Andy
> > Daniel - This is going to be a project - we're not talking adding just
> > another device profile. Analog support is a huge piece of the
> > framework that this driver outright doesn't exist. Someone would have
> > to add analog support to dvb_usb and then make it work with the cxusb
> > driver, and then add the appropriate device profile for the Avermedia
> > A312.
> Hmm, not good then :( How we can start that project? I have to tell you
that
> I'm not a programmer and I've added a312 support to cxusb based on the
> similarities to Avermedia Volar.
Andy Walls' off the cuff steps to starting a project:
1. Define the requirements: analog TV and video, FM radio, and ideally
digital TV support for the AverMedia A312 in v4l-dvb. Done.
2. Identify resources and constraints: limited hardware test asset
availability due to laptop family specific packaging, limits of time for
experienced programmers, number of testers, ability of testers to
exercise all functions (e.g. ATSC in Europe is unlikely), who's going to
do the coding and the testing?, etc.
3. Develop some strategic options: add analog support to cxusb, modify
pvrusb2, write a new driver based on existing one, etc.
4. Asses relative feasibility of strategies and scope the work
5. Develop a work break down of the preferred strategy, with tasks and
milestones to accomplish, and set an overall schedule goal.
Of the above, I'd suggest assessing a strategy of modifying the pvrusb2
driver first, as I have a feeling that will have the best return on time
invested. Mike Isley would probably be able to provide you with an
expert opinion on feasibility of modifying pvrusb2 to support the A312,
given that he maintains the pvrusb2 driver, IIRC, and you can point him
to fairly decent information on the wiki page for the A312.
> There is a radio also in that card (I don't know which chipset is
> responsible for that) + WM8739 for which the driver do exist (wm8739.c).
Likely the tuner outputs baseband FM L and R audio that's fed into the
WM8739 for digitization, and then passed to the CX25843 as serial audio
data on the I2S input to the CX25843. That's the way it works on many
of the ivtv and cx18 supported cards.
> I
> can try to modify pvrusb2 but the question is if we shouldn't have one
> "driver" to support both analog and digital TV + Radio on that card?
That's an easy one to answer: Why shouldn't one driver do it?
There's precedent as other drivers do this: At least the cx18 driver
supports cards that can capture analog video, FM radio and digital TV.
The ivtv driver supports cards that perform analog video capture and FM
radio capture.
The real answer is that there are finite resources available (people
with time and experience and test assets) and that will limit what gets
done. So what's most important to you to get working?
(Not that I have time to really help - just apparently time enough to
write long rambling e-mails)
Regards,
Andy
> Daniel,
Hi Andy,
Thank you very much for that long and valuable post. The top priority for me
would be analog TV + Radio. If one driver can do analog TV and Video + Radio
and another digital TV the option would be to update pvrusb2 driver with
support for that card (analog TV + radio) and test my patch to cxusb driver
for digital TV (I need to find someone with A312 card in his/her laptop).
Regards,
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2008-12-17 21:25 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4728568367913277327@unknownmsgid>
2008-12-15 22:28 ` [linux-dvb] Avermedia A312 - patch for review Devin Heitmueller
2008-12-15 23:08 ` Daniel Perzynski
[not found] ` <8829222570103551382@unknownmsgid>
2008-12-15 23:12 ` Devin Heitmueller
2008-12-15 23:23 ` Daniel Perzynski
[not found] ` <2944906433286851876@unknownmsgid>
2008-12-15 23:27 ` Devin Heitmueller
2008-12-15 23:30 ` Daniel Perzynski
2008-12-16 1:04 ` Andy Walls
2008-12-16 5:07 ` Devin Heitmueller
2008-12-16 11:29 ` Daniel Perzynski
2008-12-17 2:51 ` Andy Walls
2008-12-17 21:24 ` Daniel Perzynski
2008-12-15 22:25 Daniel Perzynski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox