mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
media: rc: add keymap for Toshiba CT-90405 remote
This is an NEC remote control device shipped with some Toshiba TVs. Signed-off-by: Alexander Voronov <avv.0@ya.ru> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
04297b00df
commit
53a370f621
@ -45,6 +45,7 @@ properties:
|
||||
- rc-cec
|
||||
- rc-cinergy
|
||||
- rc-cinergy-1400
|
||||
- rc-ct-90405
|
||||
- rc-d680-dmb
|
||||
- rc-delock-61959
|
||||
- rc-dib0700-nec
|
||||
|
@ -23,6 +23,7 @@ obj-$(CONFIG_RC_MAP) += rc-adstech-dvb-t-pci.o \
|
||||
rc-budget-ci-old.o \
|
||||
rc-cinergy-1400.o \
|
||||
rc-cinergy.o \
|
||||
rc-ct-90405.o \
|
||||
rc-d680-dmb.o \
|
||||
rc-delock-61959.o \
|
||||
rc-dib0700-nec.o \
|
||||
|
86
drivers/media/rc/keymaps/rc-ct-90405.c
Normal file
86
drivers/media/rc/keymaps/rc-ct-90405.c
Normal file
@ -0,0 +1,86 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
/*
|
||||
* Toshiba CT-90405 remote controller keytable
|
||||
*
|
||||
* Copyright (C) 2021 Alexander Voronov <avv.0@ya.ru>
|
||||
*/
|
||||
|
||||
#include <media/rc-map.h>
|
||||
#include <linux/module.h>
|
||||
|
||||
static struct rc_map_table ct_90405[] = {
|
||||
{ 0x4014, KEY_SWITCHVIDEOMODE },
|
||||
{ 0x4012, KEY_POWER },
|
||||
{ 0x4044, KEY_TV },
|
||||
{ 0x40be43, KEY_3D_MODE },
|
||||
{ 0x400c, KEY_SUBTITLE },
|
||||
{ 0x4001, KEY_NUMERIC_1 },
|
||||
{ 0x4002, KEY_NUMERIC_2 },
|
||||
{ 0x4003, KEY_NUMERIC_3 },
|
||||
{ 0x4004, KEY_NUMERIC_4 },
|
||||
{ 0x4005, KEY_NUMERIC_5 },
|
||||
{ 0x4006, KEY_NUMERIC_6 },
|
||||
{ 0x4007, KEY_NUMERIC_7 },
|
||||
{ 0x4008, KEY_NUMERIC_8 },
|
||||
{ 0x4009, KEY_NUMERIC_9 },
|
||||
{ 0x4062, KEY_AUDIO_DESC },
|
||||
{ 0x4000, KEY_NUMERIC_0 },
|
||||
{ 0x401a, KEY_VOLUMEUP },
|
||||
{ 0x401e, KEY_VOLUMEDOWN },
|
||||
{ 0x4016, KEY_INFO },
|
||||
{ 0x4010, KEY_MUTE },
|
||||
{ 0x401b, KEY_CHANNELUP },
|
||||
{ 0x401f, KEY_CHANNELDOWN },
|
||||
{ 0x40da, KEY_VENDOR },
|
||||
{ 0x4066, KEY_PLAYER },
|
||||
{ 0x4017, KEY_TEXT },
|
||||
{ 0x4047, KEY_LIST },
|
||||
{ 0x4073, KEY_PAGEUP },
|
||||
{ 0x4045, KEY_PROGRAM },
|
||||
{ 0x4043, KEY_EXIT },
|
||||
{ 0x4074, KEY_PAGEDOWN },
|
||||
{ 0x4064, KEY_BACK },
|
||||
{ 0x405b, KEY_MENU },
|
||||
{ 0x4019, KEY_UP },
|
||||
{ 0x4040, KEY_RIGHT },
|
||||
{ 0x401d, KEY_DOWN },
|
||||
{ 0x4042, KEY_LEFT },
|
||||
{ 0x4021, KEY_OK },
|
||||
{ 0x4053, KEY_REWIND },
|
||||
{ 0x4067, KEY_PLAY },
|
||||
{ 0x400d, KEY_FASTFORWARD },
|
||||
{ 0x4054, KEY_PREVIOUS },
|
||||
{ 0x4068, KEY_STOP },
|
||||
{ 0x406a, KEY_PAUSE },
|
||||
{ 0x4015, KEY_NEXT },
|
||||
{ 0x4048, KEY_RED },
|
||||
{ 0x4049, KEY_GREEN },
|
||||
{ 0x404a, KEY_YELLOW },
|
||||
{ 0x404b, KEY_BLUE },
|
||||
{ 0x406f, KEY_RECORD }
|
||||
};
|
||||
|
||||
static struct rc_map_list ct_90405_map = {
|
||||
.map = {
|
||||
.scan = ct_90405,
|
||||
.size = ARRAY_SIZE(ct_90405),
|
||||
.rc_proto = RC_PROTO_NEC,
|
||||
.name = RC_MAP_CT_90405,
|
||||
}
|
||||
};
|
||||
|
||||
static int __init init_rc_map_ct_90405(void)
|
||||
{
|
||||
return rc_map_register(&ct_90405_map);
|
||||
}
|
||||
|
||||
static void __exit exit_rc_map_ct_90405(void)
|
||||
{
|
||||
rc_map_unregister(&ct_90405_map);
|
||||
}
|
||||
|
||||
module_init(init_rc_map_ct_90405)
|
||||
module_exit(exit_rc_map_ct_90405)
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Alexander Voronov <avv.0@ya.ru>");
|
@ -231,6 +231,7 @@ struct rc_map *rc_map_get(const char *name);
|
||||
#define RC_MAP_CEC "rc-cec"
|
||||
#define RC_MAP_CINERGY "rc-cinergy"
|
||||
#define RC_MAP_CINERGY_1400 "rc-cinergy-1400"
|
||||
#define RC_MAP_CT_90405 "rc-ct-90405"
|
||||
#define RC_MAP_D680_DMB "rc-d680-dmb"
|
||||
#define RC_MAP_DELOCK_61959 "rc-delock-61959"
|
||||
#define RC_MAP_DIB0700_NEC_TABLE "rc-dib0700-nec"
|
||||
|
Loading…
Reference in New Issue
Block a user