Porting Linux driver of TV tuner device to OSX

Discussion in 'Mac Programming' started by iamnotme, Jan 24, 2015.

  1. iamnotme macrumors regular

    iamnotme

    Joined:
    Jan 24, 2015
    Location:
    SW Ontario, Canada
    #1
    Hi All,

    First post here, new user. Just got my first ever mac, a 13" rMBP with 512GB SSD and 16GB ram. I absolutely love the machine. Would love to have the quad core but I need to be portable and I thought the 15" is a bit too big, but that's really for another thread.

    I am a fairly experienced C and Java programmer but the reason behind me going Apple OS X is I have a device I work with with linux and Windoz drivers that I need to port to OS X. I'm reading the manual from Apple's dev site but I wanted to see if anyone has any pointers. The device itself is not overly complicated, it is essentially a DVB-T tv tuner stick. It isn't too different from an off the shelf TV tuner, it's just got some functions that I use at work.

    So if anyone has done anything similar, I would really welcome pointers.

    Thanks
     
  2. moongravy macrumors member

    moongravy

    Joined:
    Mar 21, 2006
    Location:
    Cardiff, Wales UK
    #2
    Have a look at the drivers for iTele. Might be useful as a start.
     
  3. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #3
    Do you have the source code for the Linux driver?

    Do you have documentation on the protocols the device uses?

    If you have neither, I feel you're SOOL.
     
  4. iamnotme thread starter macrumors regular

    iamnotme

    Joined:
    Jan 24, 2015
    Location:
    SW Ontario, Canada
    #4
    Yes I have it all.
     
  5. moonman239 macrumors 68000

    Joined:
    Mar 27, 2009
    #5
    Correction: SOL.

    Edit: OP, you can build OS X programs with your C knowledge. In fact, I can write Objective-C and C++ in the same source file(s).
     
  6. Madd the Sane macrumors 6502

    Madd the Sane

    Joined:
    Nov 8, 2010
    Location:
    Utah
    #6
    It depends on where you want the driver to be: user space or driver. Writing a kernel driver (for IOKit) will require learning C++. As for user-space, all the APIs you would need to access the hardware are in C, although they use the retain-release cycle.
     

Share This Page