1 // SPDX-License-Identifier: GPL-2.0+
2 // Keytable for Xbox DVD remote
3 // Copyright (c) 2018 by Benjamin Valentin <benpicco@googlemail.com>
5 #include <media/rc-map.h>
6 #include <linux/module.h>
8 /* based on lircd.conf.xbox */
9 static struct rc_map_table xbox_dvd
[] = {
17 {0xac6, KEY_NUMERIC_9
},
18 {0xac7, KEY_NUMERIC_8
},
19 {0xac8, KEY_NUMERIC_7
},
20 {0xac9, KEY_NUMERIC_6
},
21 {0xaca, KEY_NUMERIC_5
},
22 {0xacb, KEY_NUMERIC_4
},
23 {0xacc, KEY_NUMERIC_3
},
24 {0xacd, KEY_NUMERIC_2
},
25 {0xace, KEY_NUMERIC_1
},
26 {0xacf, KEY_NUMERIC_0
},
30 {0xadd, KEY_PREVIOUSSONG
},
31 {0xadf, KEY_NEXTSONG
},
34 {0xae3, KEY_FASTFORWARD
},
41 static struct rc_map_list xbox_dvd_map
= {
44 .size
= ARRAY_SIZE(xbox_dvd
),
45 .rc_proto
= RC_PROTO_XBOX_DVD
,
46 .name
= RC_MAP_XBOX_DVD
,
50 static int __init
init_rc_map(void)
52 return rc_map_register(&xbox_dvd_map
);
55 static void __exit
exit_rc_map(void)
57 rc_map_unregister(&xbox_dvd_map
);
60 module_init(init_rc_map
)
61 module_exit(exit_rc_map
)
63 MODULE_LICENSE("GPL");