From: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
To: Chris Rankin <rankincj@googlemail.com>
Cc: Devin Heitmueller <dheitmueller@kernellabs.com>,
Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: Trying to enable RC6 IR for PCTV T2 290e
Date: Sun, 15 Nov 2015 20:46:15 -0200 [thread overview]
Message-ID: <20151115204615.0831ff21@recife.lan> (raw)
In-Reply-To: <CAK2bqVLk1TxiS9-3P7GoWjGtkyH3D36K4vnxv6vmDtxYyK_PiA@mail.gmail.com>
Em Sun, 15 Nov 2015 22:18:48 +0000
Chris Rankin <rankincj@googlemail.com> escreveu:
> > How are you "switching back to RC5"?
>
> I use the command "ir-keytable -p rc-5" or "ir-keytable -p rc-6" to
> switch between IR protocols, which does seem to invoke the
> em2874_ir_change_protocol() function. I'm not sure that I have a
> suitable RC6 keymap for this IR, and was expecting to have to create
> it myself by logging the scancodes returned by the driver.
Did you test with ir-keytable -t? If you don't load a keytable,
you'll be able to only see the scancodes.
Also, AFAIKT, the hardware decoder on em2874 only supports one
variant of RC6 protocol.
>
> Cheers,
> Chris
>
> On Sun, Nov 15, 2015 at 9:48 PM, Devin Heitmueller
> <dheitmueller@kernellabs.com> wrote:
> >> I've dug a bit deeper and discovered that the reason the
> >> em28xx_info(...) lines that I'd added to em2874_polling_getkey()
> >> weren't appearing is because I'd loaded the wrong version of the
> >> em28xx-rc module! (Doh!)
> >
> > Ok, good.
> >
> >> The polling function *is* being called regularly, but
> >> em28xx_ir_handle_key() isn't noticing any keypresses. (However, it
> >> does notice when I switch back to RC5).
> >
> > How are you "switching back to RC5"? Are you actually loading in an
> > RC6 versus RC5 keymap? The reason I ask is because the onboard
> > receiver has to be explicitly configured into one of the two modes,
> > and IIRC this happens based on code type for the loaded keymap. Hence
> > if you have an RC5 keymap loaded, you'll never see the IR receiver
> > reporting RC6 codes.
> >
> > And of course it's always possible you've hit a bug/regression. I
> > haven't touched that code in years and I know it's been through a
> > couple of rounds of refactoring.
> >
> > Devin
> >
> > --
> > Devin J. Heitmueller - Kernel Labs
> > http://www.kernellabs.com
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-11-15 22:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-15 20:49 Trying to enable RC6 IR for PCTV T2 290e Chris Rankin
2015-11-15 20:59 ` Devin Heitmueller
2015-11-15 21:25 ` Chris Rankin
2015-11-15 21:48 ` Devin Heitmueller
2015-11-15 22:18 ` Chris Rankin
2015-11-15 22:46 ` Mauro Carvalho Chehab [this message]
2015-11-15 23:09 ` Chris Rankin
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=20151115204615.0831ff21@recife.lan \
--to=mchehab@osg.samsung.com \
--cc=dheitmueller@kernellabs.com \
--cc=linux-media@vger.kernel.org \
--cc=rankincj@googlemail.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