rc-real-audio-220-32-keys.c (1774B)
1// SPDX-License-Identifier: GPL-2.0+ 2// real-audio-220-32-keys.h - Keytable for real_audio_220_32_keys Remote Controller 3// 4// keymap imported from ir-keymaps.c 5// 6// Copyright (c) 2010 by Mauro Carvalho Chehab 7 8#include <media/rc-map.h> 9#include <linux/module.h> 10 11/* Zogis Real Audio 220 - 32 keys IR */ 12 13static struct rc_map_table real_audio_220_32_keys[] = { 14 { 0x1c, KEY_RADIO}, 15 { 0x12, KEY_POWER2}, 16 17 { 0x01, KEY_NUMERIC_1}, 18 { 0x02, KEY_NUMERIC_2}, 19 { 0x03, KEY_NUMERIC_3}, 20 { 0x04, KEY_NUMERIC_4}, 21 { 0x05, KEY_NUMERIC_5}, 22 { 0x06, KEY_NUMERIC_6}, 23 { 0x07, KEY_NUMERIC_7}, 24 { 0x08, KEY_NUMERIC_8}, 25 { 0x09, KEY_NUMERIC_9}, 26 { 0x00, KEY_NUMERIC_0}, 27 28 { 0x0c, KEY_VOLUMEUP}, 29 { 0x18, KEY_VOLUMEDOWN}, 30 { 0x0b, KEY_CHANNELUP}, 31 { 0x15, KEY_CHANNELDOWN}, 32 { 0x16, KEY_ENTER}, 33 34 { 0x11, KEY_VIDEO}, /* Source */ 35 { 0x0d, KEY_AUDIO}, /* stereo */ 36 37 { 0x0f, KEY_PREVIOUS}, /* Prev */ 38 { 0x1b, KEY_TIME}, /* Timeshift */ 39 { 0x1a, KEY_NEXT}, /* Next */ 40 41 { 0x0e, KEY_STOP}, 42 { 0x1f, KEY_PLAY}, 43 { 0x1e, KEY_PLAYPAUSE}, /* Pause */ 44 45 { 0x1d, KEY_RECORD}, 46 { 0x13, KEY_MUTE}, 47 { 0x19, KEY_CAMERA}, /* Snapshot */ 48 49}; 50 51static struct rc_map_list real_audio_220_32_keys_map = { 52 .map = { 53 .scan = real_audio_220_32_keys, 54 .size = ARRAY_SIZE(real_audio_220_32_keys), 55 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */ 56 .name = RC_MAP_REAL_AUDIO_220_32_KEYS, 57 } 58}; 59 60static int __init init_rc_map_real_audio_220_32_keys(void) 61{ 62 return rc_map_register(&real_audio_220_32_keys_map); 63} 64 65static void __exit exit_rc_map_real_audio_220_32_keys(void) 66{ 67 rc_map_unregister(&real_audio_220_32_keys_map); 68} 69 70module_init(init_rc_map_real_audio_220_32_keys) 71module_exit(exit_rc_map_real_audio_220_32_keys) 72 73MODULE_LICENSE("GPL"); 74MODULE_AUTHOR("Mauro Carvalho Chehab");