1// SPDX-License-Identifier: GPL-2.0+
2// ati-tv-wonder-hd-600.h - Keytable for ati_tv_wonder_hd_600 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/* ATI TV Wonder HD 600 USB
12 Devin Heitmueller <devin.heitmueller@gmail.com>
13 */
14
15static struct rc_map_table ati_tv_wonder_hd_600[] = {
16 { 0x00, KEY_RECORD}, /* Row 1 */
17 { 0x01, KEY_PLAYPAUSE},
18 { 0x02, KEY_STOP},
19 { 0x03, KEY_POWER},
20 { 0x04, KEY_PREVIOUS}, /* Row 2 */
21 { 0x05, KEY_REWIND},
22 { 0x06, KEY_FORWARD},
23 { 0x07, KEY_NEXT},
24 { 0x08, KEY_EPG}, /* Row 3 */
25 { 0x09, KEY_HOME},
26 { 0x0a, KEY_MENU},
27 { 0x0b, KEY_CHANNELUP},
28 { 0x0c, KEY_BACK}, /* Row 4 */
29 { 0x0d, KEY_UP},
30 { 0x0e, KEY_INFO},
31 { 0x0f, KEY_CHANNELDOWN},
32 { 0x10, KEY_LEFT}, /* Row 5 */
33 { 0x11, KEY_SELECT},
34 { 0x12, KEY_RIGHT},
35 { 0x13, KEY_VOLUMEUP},
36 { 0x14, KEY_LAST}, /* Row 6 */
37 { 0x15, KEY_DOWN},
38 { 0x16, KEY_MUTE},
39 { 0x17, KEY_VOLUMEDOWN},
40};
41
42static struct rc_map_list ati_tv_wonder_hd_600_map = {
43 .map = {
44 .scan = ati_tv_wonder_hd_600,
45 .size = ARRAY_SIZE(ati_tv_wonder_hd_600),
46 .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
47 .name = RC_MAP_ATI_TV_WONDER_HD_600,
48 }
49};
50
51static int __init init_rc_map_ati_tv_wonder_hd_600(void)
52{
53 return rc_map_register(map: &ati_tv_wonder_hd_600_map);
54}
55
56static void __exit exit_rc_map_ati_tv_wonder_hd_600(void)
57{
58 rc_map_unregister(map: &ati_tv_wonder_hd_600_map);
59}
60
61module_init(init_rc_map_ati_tv_wonder_hd_600)
62module_exit(exit_rc_map_ati_tv_wonder_hd_600)
63
64MODULE_LICENSE("GPL");
65MODULE_AUTHOR("Mauro Carvalho Chehab");
66MODULE_DESCRIPTION("ati-tv-wonder-hd-600 remote controller keytable");
67

source code of linux/drivers/media/rc/keymaps/rc-ati-tv-wonder-hd-600.c