162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later 262306a36Sopenharmony_ci/* videomate-k100.h - Keytable for videomate_k100 Remote Controller 362306a36Sopenharmony_ci * 462306a36Sopenharmony_ci * keymap imported from ir-keymaps.c 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci * Copyright (c) 2010 by Pavel Osnova <pvosnova@gmail.com> 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#include <media/rc-map.h> 1062306a36Sopenharmony_ci#include <linux/module.h> 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_cistatic struct rc_map_table videomate_k100[] = { 1362306a36Sopenharmony_ci { 0x01, KEY_POWER }, 1462306a36Sopenharmony_ci { 0x31, KEY_TUNER }, 1562306a36Sopenharmony_ci { 0x33, KEY_VIDEO }, 1662306a36Sopenharmony_ci { 0x2f, KEY_RADIO }, 1762306a36Sopenharmony_ci { 0x30, KEY_CAMERA }, 1862306a36Sopenharmony_ci { 0x2d, KEY_NEW }, /* TV record button */ 1962306a36Sopenharmony_ci { 0x17, KEY_CYCLEWINDOWS }, 2062306a36Sopenharmony_ci { 0x2c, KEY_ANGLE }, 2162306a36Sopenharmony_ci { 0x2b, KEY_LANGUAGE }, 2262306a36Sopenharmony_ci { 0x32, KEY_SEARCH }, /* '...' button */ 2362306a36Sopenharmony_ci { 0x11, KEY_UP }, 2462306a36Sopenharmony_ci { 0x13, KEY_LEFT }, 2562306a36Sopenharmony_ci { 0x15, KEY_OK }, 2662306a36Sopenharmony_ci { 0x14, KEY_RIGHT }, 2762306a36Sopenharmony_ci { 0x12, KEY_DOWN }, 2862306a36Sopenharmony_ci { 0x16, KEY_BACKSPACE }, 2962306a36Sopenharmony_ci { 0x02, KEY_ZOOM }, /* WIN key */ 3062306a36Sopenharmony_ci { 0x04, KEY_INFO }, 3162306a36Sopenharmony_ci { 0x05, KEY_VOLUMEUP }, 3262306a36Sopenharmony_ci { 0x03, KEY_MUTE }, 3362306a36Sopenharmony_ci { 0x07, KEY_CHANNELUP }, 3462306a36Sopenharmony_ci { 0x06, KEY_VOLUMEDOWN }, 3562306a36Sopenharmony_ci { 0x08, KEY_CHANNELDOWN }, 3662306a36Sopenharmony_ci { 0x0c, KEY_RECORD }, 3762306a36Sopenharmony_ci { 0x0e, KEY_STOP }, 3862306a36Sopenharmony_ci { 0x0a, KEY_BACK }, 3962306a36Sopenharmony_ci { 0x0b, KEY_PLAY }, 4062306a36Sopenharmony_ci { 0x09, KEY_FORWARD }, 4162306a36Sopenharmony_ci { 0x10, KEY_PREVIOUS }, 4262306a36Sopenharmony_ci { 0x0d, KEY_PAUSE }, 4362306a36Sopenharmony_ci { 0x0f, KEY_NEXT }, 4462306a36Sopenharmony_ci { 0x1e, KEY_NUMERIC_1 }, 4562306a36Sopenharmony_ci { 0x1f, KEY_NUMERIC_2 }, 4662306a36Sopenharmony_ci { 0x20, KEY_NUMERIC_3 }, 4762306a36Sopenharmony_ci { 0x21, KEY_NUMERIC_4 }, 4862306a36Sopenharmony_ci { 0x22, KEY_NUMERIC_5 }, 4962306a36Sopenharmony_ci { 0x23, KEY_NUMERIC_6 }, 5062306a36Sopenharmony_ci { 0x24, KEY_NUMERIC_7 }, 5162306a36Sopenharmony_ci { 0x25, KEY_NUMERIC_8 }, 5262306a36Sopenharmony_ci { 0x26, KEY_NUMERIC_9 }, 5362306a36Sopenharmony_ci { 0x2a, KEY_NUMERIC_STAR }, /* * key */ 5462306a36Sopenharmony_ci { 0x1d, KEY_NUMERIC_0 }, 5562306a36Sopenharmony_ci { 0x29, KEY_SUBTITLE }, /* # key */ 5662306a36Sopenharmony_ci { 0x27, KEY_CLEAR }, 5762306a36Sopenharmony_ci { 0x34, KEY_SCREEN }, 5862306a36Sopenharmony_ci { 0x28, KEY_ENTER }, 5962306a36Sopenharmony_ci { 0x19, KEY_RED }, 6062306a36Sopenharmony_ci { 0x1a, KEY_GREEN }, 6162306a36Sopenharmony_ci { 0x1b, KEY_YELLOW }, 6262306a36Sopenharmony_ci { 0x1c, KEY_BLUE }, 6362306a36Sopenharmony_ci { 0x18, KEY_TEXT }, 6462306a36Sopenharmony_ci}; 6562306a36Sopenharmony_ci 6662306a36Sopenharmony_cistatic struct rc_map_list videomate_k100_map = { 6762306a36Sopenharmony_ci .map = { 6862306a36Sopenharmony_ci .scan = videomate_k100, 6962306a36Sopenharmony_ci .size = ARRAY_SIZE(videomate_k100), 7062306a36Sopenharmony_ci .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 7162306a36Sopenharmony_ci .name = RC_MAP_VIDEOMATE_K100, 7262306a36Sopenharmony_ci } 7362306a36Sopenharmony_ci}; 7462306a36Sopenharmony_ci 7562306a36Sopenharmony_cistatic int __init init_rc_map_videomate_k100(void) 7662306a36Sopenharmony_ci{ 7762306a36Sopenharmony_ci return rc_map_register(&videomate_k100_map); 7862306a36Sopenharmony_ci} 7962306a36Sopenharmony_ci 8062306a36Sopenharmony_cistatic void __exit exit_rc_map_videomate_k100(void) 8162306a36Sopenharmony_ci{ 8262306a36Sopenharmony_ci rc_map_unregister(&videomate_k100_map); 8362306a36Sopenharmony_ci} 8462306a36Sopenharmony_ci 8562306a36Sopenharmony_cimodule_init(init_rc_map_videomate_k100) 8662306a36Sopenharmony_cimodule_exit(exit_rc_map_videomate_k100) 8762306a36Sopenharmony_ci 8862306a36Sopenharmony_ciMODULE_LICENSE("GPL"); 8962306a36Sopenharmony_ciMODULE_AUTHOR("Pavel Osnova <pvosnova@gmail.com>"); 90