All of lore.kernel.org
 help / color / mirror / Atom feed
From: "David Härdeman" <david@hardeman.nu>
To: James Hogan <james.hogan@imgtec.com>
Cc: linux-media@vger.kernel.org, m.chehab@samsung.com
Subject: Re: [PATCH] rc-core: do not change 32bit NEC scancode format for now
Date: Mon, 31 Mar 2014 21:43:39 +0200	[thread overview]
Message-ID: <20140331194339.GE9610@hardeman.nu> (raw)
In-Reply-To: <22162617.bKffkdqYH7@radagast>

On Fri, Mar 28, 2014 at 11:17:09PM +0000, James Hogan wrote:
>On Friday 28 March 2014 01:08:56 David Härdeman wrote:
>> On Thu, Mar 27, 2014 at 11:21:23PM +0000, James Hogan wrote:
>>>On Thursday 27 March 2014 22:00:37 David Härdeman wrote:
>>>> This reverts 18bc17448147e93f31cc9b1a83be49f1224657b2
>>>> 
>>>> The patch ignores the fact that NEC32 scancodes are generated not only in
>>>> the NEC raw decoder but also directly in some drivers. Whichever approach
>>>> is chosen it should be consistent across drivers and this patch needs
>>>> more
>>>> discussion.
>>>
>>>Fair enough. For reference which drivers are you referring to?
>> 
>> The ones I'm aware of right now are:
>
>Thanks, I hadn't looked properly outside of drivers/media/rc/ :(
>
>> drivers/media/usb/dvb-usb/dib0700_core.c
>
>AFAICT this only seems to support 16bit and 24bit NEC, so NEC-32 doesn't affect 
>it. I may have missed something subtle.

Nah. You're right, it can be converted to NEC32 by simply removing one
check, but it isn't NEC32 capable yet.

>> drivers/media/usb/dvb-usb-v2/az6007.c
>> drivers/media/usb/dvb-usb-v2/af9035.c
>> drivers/media/usb/dvb-usb-v2/rtl28xxu.c
>> drivers/media/usb/dvb-usb-v2/af9015.c
>> drivers/media/usb/em28xx/em28xx-input.c
>
>Note, it appears none of these do any bit reversing for the 32bit case 
>compared to 16/24 bit, so they're already different to the NEC32 scancode 
>encoding that the raw nec decoder and tivo keymap were using, which used a 
>different bitorder (!!) between the 32-bit and the 24/16-bit cases.

I think that might also be a reason to generate the NEC32 scancode in
the order that I've proposed (i.e. it only requires change to the sw NEC
decoder).

On the other hand I'm still dithering on whether your proposed NEC32
scancode (which is what the sw decoder uses) or my proposal (which is
what the other hw decoders use) should be canonical... :)

-- 
David Härdeman

      parent reply	other threads:[~2014-03-31 19:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-27 21:00 [PATCH] rc-core: do not change 32bit NEC scancode format for now David Härdeman
2014-03-27 23:21 ` James Hogan
2014-03-28  0:08   ` David Härdeman
2014-03-28 23:17     ` James Hogan
2014-03-29 16:14       ` David Härdeman
2014-03-31 19:43       ` David Härdeman [this message]

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=20140331194339.GE9610@hardeman.nu \
    --to=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 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.