162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0+
262306a36Sopenharmony_ci// dntv-live-dvbt-pro.h - Keytable for dntv_live_dvbt_pro Remote Controller
362306a36Sopenharmony_ci//
462306a36Sopenharmony_ci// keymap imported from ir-keymaps.c
562306a36Sopenharmony_ci//
662306a36Sopenharmony_ci// Copyright (c) 2010 by Mauro Carvalho Chehab
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#include <media/rc-map.h>
962306a36Sopenharmony_ci#include <linux/module.h>
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci/* DigitalNow DNTV Live! DVB-T Pro Remote */
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_cistatic struct rc_map_table dntv_live_dvbt_pro[] = {
1462306a36Sopenharmony_ci	{ 0x16, KEY_POWER },
1562306a36Sopenharmony_ci	{ 0x5b, KEY_HOME },
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci	{ 0x55, KEY_TV },		/* live tv */
1862306a36Sopenharmony_ci	{ 0x58, KEY_TUNER },		/* digital Radio */
1962306a36Sopenharmony_ci	{ 0x5a, KEY_RADIO },		/* FM radio */
2062306a36Sopenharmony_ci	{ 0x59, KEY_DVD },		/* dvd menu */
2162306a36Sopenharmony_ci	{ 0x03, KEY_NUMERIC_1 },
2262306a36Sopenharmony_ci	{ 0x01, KEY_NUMERIC_2 },
2362306a36Sopenharmony_ci	{ 0x06, KEY_NUMERIC_3 },
2462306a36Sopenharmony_ci	{ 0x09, KEY_NUMERIC_4 },
2562306a36Sopenharmony_ci	{ 0x1d, KEY_NUMERIC_5 },
2662306a36Sopenharmony_ci	{ 0x1f, KEY_NUMERIC_6 },
2762306a36Sopenharmony_ci	{ 0x0d, KEY_NUMERIC_7 },
2862306a36Sopenharmony_ci	{ 0x19, KEY_NUMERIC_8 },
2962306a36Sopenharmony_ci	{ 0x1b, KEY_NUMERIC_9 },
3062306a36Sopenharmony_ci	{ 0x0c, KEY_CANCEL },
3162306a36Sopenharmony_ci	{ 0x15, KEY_NUMERIC_0 },
3262306a36Sopenharmony_ci	{ 0x4a, KEY_CLEAR },
3362306a36Sopenharmony_ci	{ 0x13, KEY_BACK },
3462306a36Sopenharmony_ci	{ 0x00, KEY_TAB },
3562306a36Sopenharmony_ci	{ 0x4b, KEY_UP },
3662306a36Sopenharmony_ci	{ 0x4e, KEY_LEFT },
3762306a36Sopenharmony_ci	{ 0x4f, KEY_OK },
3862306a36Sopenharmony_ci	{ 0x52, KEY_RIGHT },
3962306a36Sopenharmony_ci	{ 0x51, KEY_DOWN },
4062306a36Sopenharmony_ci	{ 0x1e, KEY_VOLUMEUP },
4162306a36Sopenharmony_ci	{ 0x0a, KEY_VOLUMEDOWN },
4262306a36Sopenharmony_ci	{ 0x02, KEY_CHANNELDOWN },
4362306a36Sopenharmony_ci	{ 0x05, KEY_CHANNELUP },
4462306a36Sopenharmony_ci	{ 0x11, KEY_RECORD },
4562306a36Sopenharmony_ci	{ 0x14, KEY_PLAY },
4662306a36Sopenharmony_ci	{ 0x4c, KEY_PAUSE },
4762306a36Sopenharmony_ci	{ 0x1a, KEY_STOP },
4862306a36Sopenharmony_ci	{ 0x40, KEY_REWIND },
4962306a36Sopenharmony_ci	{ 0x12, KEY_FASTFORWARD },
5062306a36Sopenharmony_ci	{ 0x41, KEY_PREVIOUSSONG },	/* replay |< */
5162306a36Sopenharmony_ci	{ 0x42, KEY_NEXTSONG },		/* skip >| */
5262306a36Sopenharmony_ci	{ 0x54, KEY_CAMERA },		/* capture */
5362306a36Sopenharmony_ci	{ 0x50, KEY_LANGUAGE },		/* sap */
5462306a36Sopenharmony_ci	{ 0x47, KEY_TV2 },		/* pip */
5562306a36Sopenharmony_ci	{ 0x4d, KEY_SCREEN },
5662306a36Sopenharmony_ci	{ 0x43, KEY_SUBTITLE },
5762306a36Sopenharmony_ci	{ 0x10, KEY_MUTE },
5862306a36Sopenharmony_ci	{ 0x49, KEY_AUDIO },		/* l/r */
5962306a36Sopenharmony_ci	{ 0x07, KEY_SLEEP },
6062306a36Sopenharmony_ci	{ 0x08, KEY_VIDEO },		/* a/v */
6162306a36Sopenharmony_ci	{ 0x0e, KEY_PREVIOUS },		/* recall */
6262306a36Sopenharmony_ci	{ 0x45, KEY_ZOOM },		/* zoom + */
6362306a36Sopenharmony_ci	{ 0x46, KEY_ANGLE },		/* zoom - */
6462306a36Sopenharmony_ci	{ 0x56, KEY_RED },
6562306a36Sopenharmony_ci	{ 0x57, KEY_GREEN },
6662306a36Sopenharmony_ci	{ 0x5c, KEY_YELLOW },
6762306a36Sopenharmony_ci	{ 0x5d, KEY_BLUE },
6862306a36Sopenharmony_ci};
6962306a36Sopenharmony_ci
7062306a36Sopenharmony_cistatic struct rc_map_list dntv_live_dvbt_pro_map = {
7162306a36Sopenharmony_ci	.map = {
7262306a36Sopenharmony_ci		.scan     = dntv_live_dvbt_pro,
7362306a36Sopenharmony_ci		.size     = ARRAY_SIZE(dntv_live_dvbt_pro),
7462306a36Sopenharmony_ci		.rc_proto = RC_PROTO_UNKNOWN,	/* Legacy IR type */
7562306a36Sopenharmony_ci		.name     = RC_MAP_DNTV_LIVE_DVBT_PRO,
7662306a36Sopenharmony_ci	}
7762306a36Sopenharmony_ci};
7862306a36Sopenharmony_ci
7962306a36Sopenharmony_cistatic int __init init_rc_map_dntv_live_dvbt_pro(void)
8062306a36Sopenharmony_ci{
8162306a36Sopenharmony_ci	return rc_map_register(&dntv_live_dvbt_pro_map);
8262306a36Sopenharmony_ci}
8362306a36Sopenharmony_ci
8462306a36Sopenharmony_cistatic void __exit exit_rc_map_dntv_live_dvbt_pro(void)
8562306a36Sopenharmony_ci{
8662306a36Sopenharmony_ci	rc_map_unregister(&dntv_live_dvbt_pro_map);
8762306a36Sopenharmony_ci}
8862306a36Sopenharmony_ci
8962306a36Sopenharmony_cimodule_init(init_rc_map_dntv_live_dvbt_pro)
9062306a36Sopenharmony_cimodule_exit(exit_rc_map_dntv_live_dvbt_pro)
9162306a36Sopenharmony_ci
9262306a36Sopenharmony_ciMODULE_LICENSE("GPL");
9362306a36Sopenharmony_ciMODULE_AUTHOR("Mauro Carvalho Chehab");
94