original_kernel/drivers/media/rc
James Hogan 18bc174481 [media] media: rc: change 32bit NEC scancode format
Change 32bit NEC scancode format (used by Apple and TiVo remotes) to
encode the data with the correct bit order. Previously the raw bits were
used without being bit reversed, now each 16bit half is bit reversed
compared to before.

So for the raw NEC data:
  (LSB/First) 0xAAaaCCcc (MSB/Last)
(where traditionally AA=address, aa=~address, CC=command, cc=~command)

We now generate the scancodes:
  (MSB) 0x0000AACC (LSB) (normal NEC)
  (MSB) 0x00AAaaCC (LSB) (extended NEC, address check wrong)
  (MSB) 0xaaAAccCC (LSB) (32-bit NEC, command check wrong)

Note that the address byte order in 32-bit NEC scancodes is different to
that of the extended NEC scancodes. I chose this way as it maintains the
order of the bits in the address/command fields, and CC is clearly
intended to be the LSB of the command if the TiVo codes are anything to
go by so it makes sense for AA to also be the LSB.

The TiVo keymap is updated accordingly.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: Jarod Wilson <jarod@redhat.com>
Cc: linux-media@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-02-06 09:20:07 -02:00
..
keymaps [media] media: rc: change 32bit NEC scancode format 2014-02-06 09:20:07 -02:00
Kconfig [media] media: rc: add raw decoder for Sharp protocol 2014-02-04 15:43:13 -02:00
Makefile [media] media: rc: add raw decoder for Sharp protocol 2014-02-04 15:43:13 -02:00
ati_remote.c
ene_ir.c
ene_ir.h
fintek-cir.c
fintek-cir.h
gpio-ir-recv.c
iguanair.c [media] iguanair: simplify tx loop 2014-02-04 17:23:06 -02:00
imon.c
ir-jvc-decoder.c
ir-lirc-codec.c
ir-mce_kbd-decoder.c
ir-nec-decoder.c [media] media: rc: change 32bit NEC scancode format 2014-02-06 09:20:07 -02:00
ir-raw.c [media] rc: ir-raw: Load ir-sharp-decoder module at init 2014-02-06 09:18:30 -02:00
ir-rc5-decoder.c
ir-rc5-sz-decoder.c
ir-rc6-decoder.c
ir-rx51.c
ir-sanyo-decoder.c
ir-sharp-decoder.c [media] media: rc: add raw decoder for Sharp protocol 2014-02-04 15:43:13 -02:00
ir-sony-decoder.c
ite-cir.c
ite-cir.h
lirc_dev.c
mceusb.c [media] mceusb: improve error logging 2014-02-04 17:35:35 -02:00
nuvoton-cir.c [media] nuvoton-cir: Don't touch PS/2 interrupts while initializing 2014-02-04 17:47:26 -02:00
nuvoton-cir.h [media] nuvoton-cir: Don't touch PS/2 interrupts while initializing 2014-02-04 17:47:26 -02:00
rc-core-priv.h [media] rc: ir-raw: Load ir-sharp-decoder module at init 2014-02-06 09:18:30 -02:00
rc-loopback.c
rc-main.c [media] media: rc: add sysfs scancode filtering interface 2014-02-06 09:18:57 -02:00
redrat3.c
st_rc.c
streamzap.c
ttusbir.c
winbond-cir.c