public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Niels Laukens <niels@dest-unreach.be>
To: "David Härdeman" <david@hardeman.nu>
Cc: "Mauro Carvalho Chehab" <m.chehab@samsung.com>,
	linux-media@vger.kernel.org,
	"James Hogan" <james.hogan@imgtec.com>,
	"Antti Seppälä" <a.seppala@gmail.com>
Subject: Re: [BUG & PATCH] media/rc/ir-nec-decode : phantom keypress
Date: Thu, 12 Jun 2014 14:12:30 +0200	[thread overview]
Message-ID: <5399992E.8050502@dest-unreach.be> (raw)
In-Reply-To: <754858effccb1d52ebec59f91f860c26@hardeman.nu>

On 2014-06-12 13:51, David Härdeman wrote:
> On 2014-06-12 13:22, Niels Laukens wrote:
>> In that case, the alternative would be to start a timer when the
>> TRAILING_SPACE is entered, and trigger the key-event after, say 2
>> bit-times.
> 
> Another alternative is fix the driver to implement a timeout so that
> "unreasonable" values are not generated (I saw a 240550us space in your
> log).

OK, that sounds like a good way to solve this as well.
I'm very new to this subsystem, so I don't know what layer should
perform what function.


>>> Now, the question is why the trailing silence isn't generated
>>> within a reasonable time. Which hardware decoder do you use?
>>
>> I use the IR receiver built in to the TBS6281 DVB-T tuner card. I
>> also have a TBS6982 DVB-S card, but I guess it's the same hardware.
>
> Which driver?

I think it's the out-of-tree saa716x_tbs_dvb driver:

[    7.670565] input: saa716x IR (TurboSight TBS 6281) as
/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/rc/rc0/input6
[    7.671156] rc0: saa716x IR (TurboSight TBS 6281) as
/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/rc/rc0



> And it's what most of the popular hardware does.

So I'll have to rework this patch to function at this lower level, and
try to upstream it to TBS. Thank you for your time!


> For instance, the
> mceusb hardware will send a USB packet with timings including that
> trailing silence. And the decoder can only do their work once a packet
> has arrived (which will contain a number of samples). That also
> demonstrates a potential problem with your suggested approach (i.e.
> timings can be buffered so calls to the decoders are not necessarily
> "real-time").

I see what you mean, but I don't see how the proposed patch fails in
this sense. Or were you referring to the proposal of adding a timer at
the ir-nec-decoder level?


Niels

  reply	other threads:[~2014-06-12 12:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-31  8:37 [BUG & PATCH] media/rc/ir-nec-decode : phantom keypress Niels Laukens
2014-06-11  8:06 ` Niels Laukens
2014-06-12 10:42   ` David Härdeman
2014-06-12 11:22     ` Niels Laukens
2014-06-12 11:51       ` David Härdeman
2014-06-12 12:12         ` Niels Laukens [this message]
2014-06-12 12:42           ` David Härdeman
2014-06-12 15:19             ` Niels Laukens

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=5399992E.8050502@dest-unreach.be \
    --to=niels@dest-unreach.be \
    --cc=a.seppala@gmail.com \
    --cc=david@hardeman.nu \
    --cc=james.hogan@imgtec.com \
    --cc=linux-media@vger.kernel.org \
    --cc=m.chehab@samsung.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox