Difference between revisions of "Afatech AF9015"
|Line 11:||Line 11:|
http://linuxtv.org/hg/~anttip/af9015/ (MT2060MT2061 .)
Revision as of 22:27, 23 December 2007
This chip is the main USB control/demux in some cheap DVB-T USB devices currently available, such as:
- The WandTV
- The Elements High Definition DVB-T Receiver Model no DK-5203.
- Dongles with USB ID 15a4:9016 (or 15a4:9015 ?), such as the A-Link DTU (m)
http://linuxtv.org/hg/~anttip/af9015/ (Supported tuners are: MT2060, MT2061 and QT1010.)
There's a reportedly working vendor-written driver available from http://af.zsolttech.com/ (See also http://forum.ubuntuusers.de/topic/127976/#1029411 and http://marc.info/?l=linux-dvb&m=119437953031536&w=2 and http://marc.info/?l=linux-dvb&m=119437137719022&w=2 )
I confirm that the driver from http://af.zsolttech.com/ works fine for Geniatech T328B in x86_64 linux (I use 220.127.116.11 SMP) when you patch the file MT2060M.h in the following way: replace
typedef unsigned long UData_t;
typedef unsigned int UData_t;
Then compile, install, modprobe dvb_usb_af9015 and you are finished. Remote control does not work for me. Anybody knows how to do this?
Driver Development Log
I'm currently writing a driver for this chip, and as there's not much around in terms of a howto on this subject, I thought it might be worth documenting the process.
I've got a head start in that there is an earlier chip from Afatech, the AF9005, for which drivers were recently written/developed. I've got the driver source code for that chip along with the documentation for that and my chip, so I'm going to be working on modifying the AF9005 drivers to work with the AF9015. I'm not sure if I'm allowed to post the documentations here, I'll find out and if so a link will be posted.
To start with, there are some great Linux USB tutorials on Linux Journal:
- start here: How to Write a Linux USB Device Driver
- then here: Writing a Simple USB Driver
- Hot Plug
- and then: Snooping the USB Data Stream
Also get the source for V4L-DVB:
You will find the usb drivers are in ./v4l-dvb/linux/drivers/media/dvb/dvb-usb. Have a bit of a browse through them while you're reading through the first article above, get a feel for how the driver is put together. (There is a procedure described in http://www.ubuntuforums.org/showthread.php?p=1067326).