linux-sg2042/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 [media] rc: Make probe cleanup goto labels more verbose 2012-12-21 18:26:08 -02:00
ene_ir.c [media] ene_ir: disable the device if wake is disabled 2013-07-29 11:48:26 -03:00
ene_ir.h [media] ene_ir: don't use pr_debug after all 2013-07-29 11:49:45 -03:00
fintek-cir.c Merge branch 'v4l_for_linus' into staging/for_v3.9 2013-01-24 18:49:18 -02:00
fintek-cir.h [media] rc: Fir warnings on m68k arch 2013-11-08 09:45:37 -02:00
gpio-ir-recv.c [media] gpio-ir-recv: Include linux/of.h header 2013-10-31 08:19:02 -02:00
iguanair.c [media] iguanair: simplify tx loop 2014-02-04 17:23:06 -02:00
imon.c [media] media: Remove OOM message after input_allocate_device 2014-01-07 08:01:42 -02:00
ir-jvc-decoder.c [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
ir-lirc-codec.c [media] media: lirc: Allow lirc dev to talk to rc device 2013-07-31 16:30:27 -03:00
ir-mce_kbd-decoder.c [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
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 [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
ir-rc5-sz-decoder.c [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
ir-rc6-decoder.c [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
ir-rx51.c [media] ir-rx51: remove deprecated IRQF_DISABLED 2013-10-17 06:09:02 -03:00
ir-sanyo-decoder.c [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
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 [media] rc-core: don't treat dev->rc_map.rc_type as a bitmap 2013-03-23 11:25:54 -03:00
ite-cir.c [media] rc: ite-cir: fix potential double free in ite_probe() 2013-04-14 21:37:53 -03:00
ite-cir.h [media] ite-cir: 8709 needs to use pnp resource 2 2011-07-01 16:31:38 -03:00
lirc_dev.c [media] media: lirc: Allow lirc dev to talk to rc device 2013-07-31 16:30:27 -03:00
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 [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
rc-main.c [media] media: rc: add sysfs scancode filtering interface 2014-02-06 09:18:57 -02:00
redrat3.c [media] media_tree: Fix spelling errors 2013-11-29 14:43:50 -02:00
st_rc.c [media] media: st-rc: Add reset support 2014-01-15 11:45:22 -02:00
streamzap.c Drivers: media: remove __dev* attributes. 2013-01-03 15:57:02 -08:00
ttusbir.c [media] ttusbir: wire up rc feedback led 2013-08-22 11:48:32 -03:00
winbond-cir.c [media] winbond-cir: remove deprecated IRQF_DISABLED 2013-10-17 06:09:14 -03:00