DXR3

From APIDesign

Revision as of 19:48, 7 June 2012 by JaroslavTulach (Talk | contribs)
Jump to: navigation, search

DXR3 is a hardware MPEG-2 decoder card. I may be one of the last users of DXR3 on the planet, but I still find it useful for sending S-Video and Dolby Digital signals to my home theatre system attached to my computer.

However two weeks ago, my harddrive crashed and I had to upgrade the internals of my computer. While recovering from the failure, I upgraded to Kubuntu 12.04. However, then I noticed that the em8300 driver (for DXR3 card) no longer compiles (I guess this is another sign that the amount of DXR3 users is decreasing). After considering all alternatives I decided to do a bit of kernel hacking and update the driver code myself.

I've downloaded the latest version I could find (0.18.0) and tried to make it compile on Kubuntu 12.04. Linux kernel is famous for ignoring BackwardCompatibility and rather requiring everyone to rewrite to new APIs. This sort of works, while there is enough people who are really interested in particular drivers. In fact upgrading was not that hard. I would call it google based upgrade:

  1. type make
  2. wait for the error message
  3. put it into your favourite search engine
  4. among first three references finds the one from kernel.org mailing list to get a clue of what to do

The ridiculous observation I made is the common enthusiastic feeling the people on the mailing list have that they broke somebody else's code! The announcement usually does not concentrate on the reasons and suggestions how to upgrade. Rather most of the messages explain why it is so cool that the guys could rename some function or field in a structure or change the number of arguments!

It must be a fun to be Linux kernel developer. Too bad I don't share the same sense of humor and I rather keep the old API elements around, delegating to the new alternatives. But it's just me. Or wait, isn't that a Java? C does not have overloaded functions - so it would not be easy to keep the old methods with less parameters around!

Anyway I am glad I made the em8300 driver work on Linux kernel 3.2.0. The patch is available in dxr3.sf.net bugtracking system. If you find it useful, please let me know. I'll be glad to hear that my Linux/C coding flashback was useful for more people than just me.

<comments/>

Personal tools
buy