Skip to contentSkip to conversation

Avermedia A312 - patch for review

linux-dvb Devin Heitmueller 3 participants 11 messages Dec 15, 2008 – Dec 17, 2008 3 messages not in the archive Media (V4L/DVB)

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 4 lines · Daniel Perzynski

Hi,

Quoted 8 lines

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

Signature · 8 lines
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
#2 lore raw

-----Original Message-----
From: Devin Heitmueller [mailto:[email protected]]
Sent: Monday, December 15, 2008 11:29 PM
To: Daniel Perzynski
Cc: [email protected]
Subject: Re: Avermedia A312 - patch for review

Quoted 5 lines · Daniel Perzynski

Hi,

According to the suggestions I've modified dvb-usb-ids.h and cxusb.c to

add

Quoted 7 lines

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

Signature · 15 lines
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller

Good question, 

How to check it? What about analog TV?

Daniel 


_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
#4 lore raw
In reply to a message not in the archive
Quoted 34 lines · Daniel Perzynski

-----Original Message-----
From: Devin Heitmueller [mailto:[email protected]]
Sent: Monday, December 15, 2008 11:29 PM
To: Daniel Perzynski
Cc: [email protected]
Subject: Re: Avermedia A312 - patch for review

Quoted 5 lines · Daniel Perzynski

Hi,

According to the suggestions I've modified dvb-usb-ids.h and cxusb.c to

add

Quoted 7 lines

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

Quoted 5 lines

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

Signature · 8 lines
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
#5 lore raw

-----Original Message-----
From: Devin Heitmueller [mailto:[email protected]]
Sent: Tuesday, December 16, 2008 12:12 AM
To: Daniel Perzynski
Cc: [email protected]
Subject: Re: Avermedia A312 - patch for review

Quoted 44 lines · Daniel Perzynski

-----Original Message-----
From: Devin Heitmueller [mailto:[email protected]]
Sent: Monday, December 15, 2008 11:29 PM
To: Daniel Perzynski
Cc: [email protected]
Subject: Re: Avermedia A312 - patch for review

Quoted 5 lines · Daniel Perzynski

Hi,

According to the suggestions I've modified dvb-usb-ids.h and cxusb.c to

add

Quoted 7 lines

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:

Quoted 12 lines

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

Signature · 3 lines
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
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#7 lore raw
In reply to a message not in the archive
Quoted 68 lines · Daniel Perzynski

-----Original Message-----
From: Devin Heitmueller [mailto:[email protected]]
Sent: Tuesday, December 16, 2008 12:12 AM
To: Daniel Perzynski
Cc: [email protected]
Subject: Re: Avermedia A312 - patch for review

Quoted 50 lines · Daniel Perzynski

-----Original Message-----
From: Devin Heitmueller [mailto:[email protected]]
Sent: Monday, December 15, 2008 11:29 PM
To: Daniel Perzynski
Cc: [email protected]
Subject: Re: Avermedia A312 - patch for review

Quoted 5 lines · Daniel Perzynski

Hi,

According to the suggestions I've modified dvb-usb-ids.h and cxusb.c to

add

Quoted 7 lines

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?

Quoted 6 lines

Devin

--
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller

Quoted 6 lines

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

Signature · 8 lines
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
#8 lore raw

-----Original Message-----
From: Devin Heitmueller [mailto:[email protected]]
Sent: Tuesday, December 16, 2008 12:28 AM
To: Daniel Perzynski
Cc: [email protected]
Subject: Re: Avermedia A312 - patch for review

Quoted 63 lines · Daniel Perzynski

-----Original Message-----
From: Devin Heitmueller [mailto:[email protected]]
Sent: Tuesday, December 16, 2008 12:12 AM
To: Daniel Perzynski
Cc: [email protected]
Subject: Re: Avermedia A312 - patch for review

Quoted 52 lines · Daniel Perzynski

-----Original Message-----
From: Devin Heitmueller [mailto:[email protected]]
Sent: Monday, December 15, 2008 11:29 PM
To: Daniel Perzynski
Cc: [email protected]
Subject: Re: Avermedia A312 - patch for review

Quoted 5 lines · Daniel Perzynski

Hi,

According to the suggestions I've modified dvb-usb-ids.h and cxusb.c to

add

Quoted 7 lines

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

Quoted 8 lines
Quoted 4 lines

--
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

Quoted 2 lines

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

Quoted 12 lines

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

Signature · 3 lines
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller

Thank you very much, I would appreciate that.

Daniel,

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#9 lore raw
In reply to Devin Heitmueller
Quoted 5 lines · Devin Heitmueller
Quoted 2 lines · Daniel Perzynski

Devin,

Quoted 8 lines
Quoted 4 lines

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

Quoted 2 lines

Devin

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#10 lore raw
Quoted 21 lines · Andy Walls
Quoted 5 lines · Devin Heitmueller
Quoted 2 lines · Daniel Perzynski

Devin,

Quoted 8 lines
Quoted 4 lines

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

Quoted 7 lines

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

Signature · 8 lines
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
#11 lore raw

-----Original Message-----
From: Devin Heitmueller [mailto:[email protected]]
Sent: Tuesday, December 16, 2008 6:08 AM
To: Andy Walls
Cc: Daniel Perzynski; [email protected]
Subject: Re: [linux-dvb] Avermedia A312 - patch for review

Quoted 7 lines · Andy Walls
Quoted 6 lines · Devin Heitmueller
Quoted 3 lines · Daniel Perzynski

Devin,

The problem is that I'm in Poland and we don't have ATSC here as far as

I'm

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

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

Quoted 26 lines
Quoted 5 lines
Quoted 1 line

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).

Quoted 13 lines

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

Signature · 3 lines
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
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#12 lore raw
Quoted 36 lines · Daniel Perzynski

From: Devin Heitmueller [mailto:[email protected]]

Quoted 5 lines · Andy Walls
Quoted 4 lines · Devin Heitmueller
Quoted 1 line · Daniel Perzynski

Could you please look at the wiki for that card and tell me what will

be the

Quoted 20 lines
Quoted 5 lines
Quoted 1 line

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

Quoted 6 lines

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.

Quoted 3 lines

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.

Quoted 2 lines

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.

Quoted 3 lines

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

Quoted 1 line

Daniel,

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#13 lore raw

-----Original Message-----
From: Andy Walls [mailto:[email protected]]
Sent: Wednesday, December 17, 2008 3:51 AM
To: Daniel Perzynski
Cc: 'Devin Heitmueller'; [email protected]
Subject: RE: [linux-dvb] Avermedia A312 - patch for review

Quoted 36 lines · Daniel Perzynski

From: Devin Heitmueller [mailto:[email protected]]

Quoted 5 lines · Andy Walls
Quoted 4 lines · Devin Heitmueller
Quoted 1 line · Daniel Perzynski

Could you please look at the wiki for that card and tell me what will

be the

Quoted 20 lines
Quoted 5 lines
Quoted 1 line

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

Quoted 6 lines

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.

Quoted 1 line

Hmm, not good then :( How we can start that project? I have to tell you

that

Quoted 2 lines

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.

Quoted 2 lines

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.

Quoted 3 lines

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

Quoted 1 line

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
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb