All of lore.kernel.org
 help / color / mirror / Atom feed
* RC Support on TT-S2400 devices (ttusb2)
@ 2014-08-11 15:13 Ernst Bachmann
  0 siblings, 0 replies; only message in thread
From: Ernst Bachmann @ 2014-08-11 15:13 UTC (permalink / raw)
  To: linux-media

Hi,

I'm using a Technotrend S2400 USB DVB-S Receiver (driver is ttusb2).
That device includes a IR Remote Control.

I was wondering if there was a specific reason why the RC receiver is
not supported by the ttusb2 driver?

The protocol seems to be identical to the one used by the CT-3650 Device
(in the same driver).

I simply re-compiled the driver with the .rc.core initializer copied
from ttusb2_properties_ct3650
to ttusb2_properties_s2400, and the remote seems to be working fine.

-------------

*** ttusb2.c.orig       2014-08-10 20:42:03.000000000 +0200
--- ttusb2.c    2014-08-10 20:42:03.000000000 +0200
***************
*** 684,699 ****
--- 684,706 ----
  static struct dvb_usb_device_properties ttusb2_properties_s2400 = {
        .caps = DVB_USB_IS_AN_I2C_ADAPTER,
 
        .usb_ctrl = CYPRESS_FX2,
        .firmware = "dvb-usb-tt-s2400-01.fw",
 
        .size_of_priv = sizeof(struct ttusb2_state),
 
+       .rc.core = {
+               .rc_interval      = 150, /* Less than IR_KEYPRESS_TIMEOUT */
+               .rc_codes         = RC_MAP_TT_1500,
+               .rc_query         = tt3650_rc_query,
+               .allowed_protos   = RC_BIT_RC5,
+       },
+
        .num_adapters = 1,
        .adapter = {
                {
                .num_frontends = 1,
                .fe = {{
                        .streaming_ctrl   = NULL,
 
                        .frontend_attach  = ttusb2_frontend_tda10086_attach,

------------

I don't know if it runs stable over a longer period, some other post I
found mentioned there might be a timing problem with RC-Polling
interrupting other accesses?

However, it would be great to have working RC Support for that device
out-of-the box (without recompile) sometime in the future, so I'd really
appreciate if you could look into it.


Thanks in advance,
Ernst Bachmann

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-11 15:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-11 15:13 RC Support on TT-S2400 devices (ttusb2) Ernst Bachmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.