mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
1910ea428f
Prefer KEY_NUMERIC_* for number buttons on remotes. Now all the remotes use KEY_NUMERIC_[0-9] for the number buttons rather than keys that could be affected by modifiers (Caps-Lock, or Num-Lock) or regional keymaps. Created using: sed -i 's/KEY_\([0-9]\) /KEY_NUMERIC_\1 /' *.c sed -i 's/KEY_\([0-9]\)}/KEY_NUMERIC_\1}/' *.c sed -i 's/``KEY_\([0-9]\)/``KEY_NUMERIC_\1/' Documentation/media/uapi/rc/rc-tables.rst Signed-off-by: Bastien Nocera <hadess@hadess.net> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
82 lines
2.3 KiB
C
82 lines
2.3 KiB
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* Anysee remote controller keytable
|
|
*
|
|
* Copyright (C) 2010 Antti Palosaari <crope@iki.fi>
|
|
*/
|
|
|
|
#include <media/rc-map.h>
|
|
#include <linux/module.h>
|
|
|
|
static struct rc_map_table anysee[] = {
|
|
{ 0x0800, KEY_NUMERIC_0 },
|
|
{ 0x0801, KEY_NUMERIC_1 },
|
|
{ 0x0802, KEY_NUMERIC_2 },
|
|
{ 0x0803, KEY_NUMERIC_3 },
|
|
{ 0x0804, KEY_NUMERIC_4 },
|
|
{ 0x0805, KEY_NUMERIC_5 },
|
|
{ 0x0806, KEY_NUMERIC_6 },
|
|
{ 0x0807, KEY_NUMERIC_7 },
|
|
{ 0x0808, KEY_NUMERIC_8 },
|
|
{ 0x0809, KEY_NUMERIC_9 },
|
|
{ 0x080a, KEY_POWER2 }, /* [red power button] */
|
|
{ 0x080b, KEY_VIDEO }, /* [*] MODE */
|
|
{ 0x080c, KEY_CHANNEL }, /* [symbol counterclockwise arrow] */
|
|
{ 0x080d, KEY_NEXT }, /* [>>|] */
|
|
{ 0x080e, KEY_MENU }, /* MENU */
|
|
{ 0x080f, KEY_EPG }, /* [EPG] */
|
|
{ 0x0810, KEY_CLEAR }, /* EXIT */
|
|
{ 0x0811, KEY_CHANNELUP },
|
|
{ 0x0812, KEY_VOLUMEDOWN },
|
|
{ 0x0813, KEY_VOLUMEUP },
|
|
{ 0x0814, KEY_CHANNELDOWN },
|
|
{ 0x0815, KEY_OK },
|
|
{ 0x0816, KEY_RADIO }, /* [symbol TV/radio] */
|
|
{ 0x0817, KEY_INFO }, /* [i] */
|
|
{ 0x0818, KEY_PREVIOUS }, /* [|<<] */
|
|
{ 0x0819, KEY_FAVORITES }, /* FAV. */
|
|
{ 0x081a, KEY_SUBTITLE }, /* Subtitle */
|
|
{ 0x081b, KEY_CAMERA }, /* [symbol camera] */
|
|
{ 0x081c, KEY_YELLOW },
|
|
{ 0x081d, KEY_RED },
|
|
{ 0x081e, KEY_LANGUAGE }, /* [symbol Second Audio Program] */
|
|
{ 0x081f, KEY_GREEN },
|
|
{ 0x0820, KEY_SLEEP }, /* Sleep */
|
|
{ 0x0821, KEY_SCREEN }, /* 16:9 / 4:3 */
|
|
{ 0x0822, KEY_ZOOM }, /* SIZE */
|
|
{ 0x0824, KEY_FN }, /* [F1] */
|
|
{ 0x0825, KEY_FN }, /* [F2] */
|
|
{ 0x0842, KEY_MUTE }, /* symbol mute */
|
|
{ 0x0844, KEY_BLUE },
|
|
{ 0x0847, KEY_TEXT }, /* TEXT */
|
|
{ 0x0848, KEY_STOP },
|
|
{ 0x0849, KEY_RECORD },
|
|
{ 0x0850, KEY_PLAY },
|
|
{ 0x0851, KEY_PAUSE },
|
|
};
|
|
|
|
static struct rc_map_list anysee_map = {
|
|
.map = {
|
|
.scan = anysee,
|
|
.size = ARRAY_SIZE(anysee),
|
|
.rc_proto = RC_PROTO_NEC,
|
|
.name = RC_MAP_ANYSEE,
|
|
}
|
|
};
|
|
|
|
static int __init init_rc_map_anysee(void)
|
|
{
|
|
return rc_map_register(&anysee_map);
|
|
}
|
|
|
|
static void __exit exit_rc_map_anysee(void)
|
|
{
|
|
rc_map_unregister(&anysee_map);
|
|
}
|
|
|
|
module_init(init_rc_map_anysee)
|
|
module_exit(exit_rc_map_anysee)
|
|
|
|
MODULE_LICENSE("GPL");
|
|
MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");
|