Moderator Control Panel ]

IR module for TBS6984 [solved]

IR module for TBS6984 [solved]

Postby nyov » Fri Mar 02, 2012 1:54 pm

Hello,

I am having trouble getting the IR receiver work on my TBS6984. I hope that is actually possible with Linux?
Maybe I just miss to modprobe the right module. (I checked the PCB but couldn't find any hint to what, if any, dedicated chip that might be)

At first I built the tree against debian flavoured 3.2.0-1-amd64 kernel-headers, which worked well enough for dvb, except the cx23885 module (which I hoped might be the one for getting me IR) wouldn't load when trying to modprobe with this error:
Code: Select All Code
kernel: [ 8248.136529] videodev: disagrees about version of symbol media_entity_put
kernel: [ 8248.136533] videodev: Unknown symbol media_entity_put (err -22)
kernel: [ 8248.136554] videodev: disagrees about version of symbol media_device_register_entity
kernel: [ 8248.136556] videodev: Unknown symbol media_device_register_entity (err -22)
kernel: [ 8248.136600] videodev: disagrees about version of symbol media_entity_get
kernel: [ 8248.136602] videodev: Unknown symbol media_entity_get (err -22)
kernel: [ 8248.136607] videodev: disagrees about version of symbol media_device_unregister_entity
kernel: [ 8248.136609] videodev: Unknown symbol media_device_unregister_entity (err -22)


Then, since I couldn't get the drivers built against a current linux-media-LATEST.tar.bz2, built them on a (debian squeeze) 2.6.32-5-amd64 kernel.
They work (except a few drivers in the tree which cry for newer ksource, who shouldn't matter I think)
Now I can modprobe cx23885 and cx25840 (which seems to be what the 6981 works with, from another thread) and modules load up ok.
Only they don't detect any new hardware subsytem. Loaded them with all kinds of debugging-flags and tried some remote buttons, but nothing shows in the logs.
/dev/input/[by-path/] doesn't show anything like the tbs-ir in the other thread.

And now I'm out of ideas. Am I missing something or is IR managed by the saa716x and not in the driver? At least I couldn't find any obvious hints there in the code.
:|
Last edited by nyov on Tue May 01, 2012 2:30 pm, edited 1 time in total.
nyov
 
Posts: 4
Joined: Fri Mar 02, 2012 10:09 am

Re: IR module for TBS6984 ?

Postby SergioDanielG » Fri Mar 02, 2012 7:12 pm

Hello. Can you try
Code: Select All Code
cat /proc/bus/input/devices

and see if you have something like
Code: Select All Code
I: Bus=0001 Vendor=6920 Product=8888 Version=0001
N: Name="cx23885 IR (TurboSight TBS 6920)"
P: Phys=pci-0000:03:00.0/ir0
S: Sysfs=/devices/pci0000:00/0000:00:06.0/0000:03:00.0/rc/rc1/input9
U: Uniq=
H: Handlers=kbd event9
B: PROP=0
B: EV=100013
B: KEY=3000000100c0000 34301100000000 0 100000 408000000800 8e168000000000 ffc
B: MSC=10

This is for TBS6920, that use cx23885 too.

Best regards.
SergioDanielG
 
Posts: 356
Joined: Tue May 31, 2011 3:53 am
Location: Tostado (SF) Argentina

Re: IR module for TBS6984 ?

Postby nyov » Fri Mar 02, 2012 9:27 pm

Thanks for replying,

I already checked /proc, /sys and /dev but I checked again.
There is no input device related to anything IR or tbs.
I hope you believe me even if I don't paste that whole output here ;) It's only serial and virtual devices, sound and power button.
And I even tried the virtual acpi keyboard input with lirc in the remote event that it might be related but no dice :mrgreen:

The modules when loading, even with debug stuff, don't give any output which should be enough indication that no hardware was found.
And I put what fw I found in /lib/firmware already, just in case.

Anyway, I'd love to get some hint on what hardware or kernel module should actually be responsible for that IR, on this very card.

Thanks
nyov
 
Posts: 4
Joined: Fri Mar 02, 2012 10:09 am

Re: IR module for TBS6984 ?

Postby SergioDanielG » Fri Mar 02, 2012 9:45 pm

I'm actually using Debian 6 (sid) kernel 3.2.0.1
I realy don´t remember if with this kernel work ir because I don't use it, but I remember that work wit kernel 2.6.39, maybe with 2.6.28 too.
If you can wait two hours, I'll can take a test and inform you if it working with this kernels.

Another question... How do you install the drivers? With make & make install? Or use other thinks like checkinstall.
I allways install using make & checkinstall because checkinstall make a .deb package (if it's all ok, else install nothing)

Best regards.
SergioDanielG
 
Posts: 356
Joined: Tue May 31, 2011 3:53 am
Location: Tostado (SF) Argentina

Re: IR module for TBS6984 ?

Postby SergioDanielG » Sat Mar 03, 2012 12:43 am

Well, I'm here...
Code: Select All Code
# uname -a
Linux hogar 3.2.0-1-amd64 #1 SMP Tue Feb 28 15:35:32 UTC 2012 x86_64 GNU/Linux

Code: Select All Code
$ cat /proc/bus/input/devices
I: Bus=0001 Vendor=6920 Product=8888 Version=0001
N: Name="cx23885 IR (TurboSight TBS 6920)"
P: Phys=pci-0000:04:00.0/ir0
S: Sysfs=/devices/pci0000:00/0000:00:06.0/0000:04:00.0/rc/rc1/input9
U: Uniq=
H: Handlers=kbd event9
B: PROP=0
B: EV=100013
B: KEY=3000000100c0000 34301100000000 0 100000 408000000800 8e168000000000 ffc
B: MSC=10

Also, I put battery to remote and test it with all ok.
Best regards.
SergioDanielG
 
Posts: 356
Joined: Tue May 31, 2011 3:53 am
Location: Tostado (SF) Argentina

Re: IR module for TBS6984 ?

Postby nyov » Sat Mar 03, 2012 3:01 am

Yes, and thanks again.
But as you said yourself, that's an TBS6920 you got there.
And if you look at the PCB of that one, it's easy to identify the Conexant chipset (logo) on there: http://www.tbsdtv.com/products/images/tbs6920/tbs6920_2.jpg
Now in contrast, the 6984 does not have such a chip. Well, I double-checked.
There's the 4 Tridents and towards the back, not so easily to identify on the image here, the SAA7160E: http://www.tbsdtv.com/products/images/tbs6984/tbs6984_2.jpg
No Connexant chip or logo in sight.
So I'm strongly assuming now that the philips does handle the IR. Reading the datasheet for the 7160 seems to support that.
Which leads me to believe the linux driver doesn't implement support for the IR. Is that correct?


(Not so) Fun fact: I actually own and switched from a Hauppauge WinTV-HVR-4400 (because they couldn't get any linux drivers done in the 3 or 4 years that it gathered dust in my attic),
which does have a cx23888 Conexant chip though. And even though the decoders don't work, the cx23885 driver loaded every boot with the card in.
And that should be the case here too, if it detected such a chip.
(Incidentially that unsupported NXP TDA10071 chip on there seems to be Trident owned now, too. Maybe the predecessor tech :lol: )
nyov
 
Posts: 4
Joined: Fri Mar 02, 2012 10:09 am

Re: IR module for TBS6984 ?

Postby SergioDanielG » Sat Mar 03, 2012 3:46 am

Great detail! :o :shock:
If isn't cx23885, wich? As you say, SAA7160 could support IR.
Well... lets wait that tbs support confirm that.

Best regards.
SergioDanielG
 
Posts: 356
Joined: Tue May 31, 2011 3:53 am
Location: Tostado (SF) Argentina

Re: IR module for TBS6984 ?

Postby nyov » Tue May 01, 2012 2:29 pm

I just downloaded the newest driver package,
with the intend to waste the day trying to retrofit the IR code I found elsewhere for this chip into the tree.

But oh glory day, doing a diff against my old build tree, I see some lines with "saa716x_ir" and new files in the path.
Could it be true?

A "quick" cleanup and compile later...
YES! The remote works!

Thank you. A message would have been nice,
but for a day spent without compiling and debugging kernel stuff I can't complain.
nyov
 
Posts: 4
Joined: Fri Mar 02, 2012 10:09 am

Re: IR module for TBS6984 [solved]

Postby SergioDanielG » Tue May 01, 2012 9:19 pm

Yes It's true! IR funtion for 6922 6925 6991 6220 6284 6928 was added in version of 2012-04-05 and was announced in news seccion of tbs site.
Enjoy your day free of compiling :D

Best regards.
SergioDanielG
 
Posts: 356
Joined: Tue May 31, 2011 3:53 am
Location: Tostado (SF) Argentina


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest