Skip to contentSkip to conversation

RC Support on TT-S2400 devices (ttusb2)

DISCUSSION Ernst Bachmann 1 participant 1 message Aug 11, 2014 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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