Skip to contentSkip to conversation

tm6000 and ir

DISCUSSION Stefan Ringel 2 participants 2 messages Jun 4, 2010 – Jun 6, 2010 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Mauro,

I write actually the ir implementation (tm6000-input.c). Can you give me any stuff what can help me?

Stefan Ringel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMCWoFAAoJEAWtPFjxMvFGvn8H/iJ2Xg4cabtrdDEgQ9WbXA+C TH6FTsqQ6eOZTkEOUxAkKOWXi+12UGrdqhQC6twqulhPpRi4bJm6kEqM8reeZJCl EUvqkfQdkqOrnhDnAvj1Q1sp/RLHLjXpCUFOk43f+fwnA2bc3/CJk2uKeMNDtLa7 f1pIN4Eu7+by7K0SPFW3qlmKoTO6bEFmBUCxtrszJFBVVpcpeX4iAoQ693Q5LFCb FTjPRpKFRdS47WGlXP4jBgC8DQ70KjNCVoXFiqeVbfCDEdYunhjPytxzVkD0Zgij WXbuTrfpoGIzOJ0QOXr7Fj8XaAMmlEIjzqTeviY/MLUMdOKxpaR4TMHXYkvuQvA= =loGv
-----END PGP SIGNATURE-----

#1 lore raw

Hi Stefan,

Em 04-06-2010 18:03, Stefan Ringel escreveu:

Quoted 7 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Mauro,

I write actually the ir implementation (tm6000-input.c). Can you give me any stuff what can help me?

I never tried to implement IR support for tm6000, but if you use the em28xx-input as reference, it shouldn't be hard to add support for IR.

I suspect that tm6000 have a hardware/firmware IR decoder, probably capable of handling NEC and RC-5 protocols.

Probably, all that you need to do is to send some initialization sequence at tm6000-input and periodically try to get data via URB (for example, you may run a workqueue or a timer, on every 50 ms, checking for the code reception). You may use the rc-empty table on your initial tests and, after having it working, you'll need to create a keymap table with your IR.

Cheers,
Mauro.