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>
This commit is contained in:
Sean Young
2018-10-18 07:03:33 -04:00
committed by Mauro Carvalho Chehab
부모 02d32bdad3
커밋 cea1c41d6b
2개의 변경된 파일31개의 추가작업 그리고 30개의 파일을 삭제

파일 보기

@@ -7,35 +7,35 @@
/* based on lircd.conf.xbox */
static struct rc_map_table xbox_dvd[] = {
{0x0b, KEY_OK},
{0xa6, KEY_UP},
{0xa7, KEY_DOWN},
{0xa8, KEY_RIGHT},
{0xa9, KEY_LEFT},
{0xc3, KEY_INFO},
{0xa0b, KEY_OK},
{0xaa6, KEY_UP},
{0xaa7, KEY_DOWN},
{0xaa8, KEY_RIGHT},
{0xaa9, KEY_LEFT},
{0xac3, KEY_INFO},
{0xc6, KEY_9},
{0xc7, KEY_8},
{0xc8, KEY_7},
{0xc9, KEY_6},
{0xca, KEY_5},
{0xcb, KEY_4},
{0xcc, KEY_3},
{0xcd, KEY_2},
{0xce, KEY_1},
{0xcf, KEY_0},
{0xac6, KEY_9},
{0xac7, KEY_8},
{0xac8, KEY_7},
{0xac9, KEY_6},
{0xaca, KEY_5},
{0xacb, KEY_4},
{0xacc, KEY_3},
{0xacd, KEY_2},
{0xace, KEY_1},
{0xacf, KEY_0},
{0xd5, KEY_ANGLE},
{0xd8, KEY_BACK},
{0xdd, KEY_PREVIOUSSONG},
{0xdf, KEY_NEXTSONG},
{0xe0, KEY_STOP},
{0xe2, KEY_REWIND},
{0xe3, KEY_FASTFORWARD},
{0xe5, KEY_TITLE},
{0xe6, KEY_PAUSE},
{0xea, KEY_PLAY},
{0xf7, KEY_MENU},
{0xad5, KEY_ANGLE},
{0xad8, KEY_BACK},
{0xadd, KEY_PREVIOUSSONG},
{0xadf, KEY_NEXTSONG},
{0xae0, KEY_STOP},
{0xae2, KEY_REWIND},
{0xae3, KEY_FASTFORWARD},
{0xae5, KEY_TITLE},
{0xae6, KEY_PAUSE},
{0xaea, KEY_PLAY},
{0xaf7, KEY_MENU},
};
static struct rc_map_list xbox_dvd_map = {