media: rc: XBox DVD Remote uses 12 bits scancodes
authorSean Young <sean@mess.org>
Thu, 18 Oct 2018 11:03:33 +0000 (07:03 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 22 Nov 2018 18:28:24 +0000 (13:28 -0500)
commitcea1c41d6ba010559f9ccdcfc80ce185e7fab080
tree564c6eba8b69c60feab31d978a5212143a0ccd23
parent02d32bdad3123d7376244256936a6b3b6ee434e8
media: rc: XBox DVD Remote uses 12 bits scancodes

The xbox dvd remote sends 24 bits, the first 12 bits are repeated
and inverted so only 12 bits are used. The upper 4 bits can be read
at offset 3. Ensure we pass this to rc-core and update the keymap
accordingly.

Tested-by: Benjamin Valentin <benpicco@googlemail.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/rc/keymaps/rc-xbox-dvd.c
drivers/media/rc/xbox_remote.c