All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ernst Bachmann <ernst.vger@netandweb.de>
To: linux-media@vger.kernel.org
Subject: RC Support on TT-S2400 devices (ttusb2)
Date: Mon, 11 Aug 2014 17:13:25 +0200	[thread overview]
Message-ID: <53E8DD95.8070100@netandweb.de> (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

                 reply	other threads:[~2014-08-11 15:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53E8DD95.8070100@netandweb.de \
    --to=ernst.vger@netandweb.de \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.