132cf86f6SMauro Carvalho Chehab /* pctv-sedna.h - Keytable for pctv_sedna Remote Controller 232cf86f6SMauro Carvalho Chehab * 332cf86f6SMauro Carvalho Chehab * keymap imported from ir-keymaps.c 432cf86f6SMauro Carvalho Chehab * 532cf86f6SMauro Carvalho Chehab * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com> 632cf86f6SMauro Carvalho Chehab * 732cf86f6SMauro Carvalho Chehab * This program is free software; you can redistribute it and/or modify 832cf86f6SMauro Carvalho Chehab * it under the terms of the GNU General Public License as published by 932cf86f6SMauro Carvalho Chehab * the Free Software Foundation; either version 2 of the License, or 1032cf86f6SMauro Carvalho Chehab * (at your option) any later version. 1132cf86f6SMauro Carvalho Chehab */ 1232cf86f6SMauro Carvalho Chehab 1332cf86f6SMauro Carvalho Chehab #include <media/rc-map.h> 1432cf86f6SMauro Carvalho Chehab 1532cf86f6SMauro Carvalho Chehab /* Mapping for the 28 key remote control as seen at 1632cf86f6SMauro Carvalho Chehab http://www.sednacomputer.com/photo/cardbus-tv.jpg 1732cf86f6SMauro Carvalho Chehab Pavel Mihaylov <bin@bash.info> 1832cf86f6SMauro Carvalho Chehab Also for the remote bundled with Kozumi KTV-01C card */ 1932cf86f6SMauro Carvalho Chehab 20*2f4f58d6SMauro Carvalho Chehab static struct rc_map_table pctv_sedna[] = { 2132cf86f6SMauro Carvalho Chehab { 0x00, KEY_0 }, 2232cf86f6SMauro Carvalho Chehab { 0x01, KEY_1 }, 2332cf86f6SMauro Carvalho Chehab { 0x02, KEY_2 }, 2432cf86f6SMauro Carvalho Chehab { 0x03, KEY_3 }, 2532cf86f6SMauro Carvalho Chehab { 0x04, KEY_4 }, 2632cf86f6SMauro Carvalho Chehab { 0x05, KEY_5 }, 2732cf86f6SMauro Carvalho Chehab { 0x06, KEY_6 }, 2832cf86f6SMauro Carvalho Chehab { 0x07, KEY_7 }, 2932cf86f6SMauro Carvalho Chehab { 0x08, KEY_8 }, 3032cf86f6SMauro Carvalho Chehab { 0x09, KEY_9 }, 3132cf86f6SMauro Carvalho Chehab 3232cf86f6SMauro Carvalho Chehab { 0x0a, KEY_AGAIN }, /* Recall */ 3332cf86f6SMauro Carvalho Chehab { 0x0b, KEY_CHANNELUP }, 3432cf86f6SMauro Carvalho Chehab { 0x0c, KEY_VOLUMEUP }, 3532cf86f6SMauro Carvalho Chehab { 0x0d, KEY_MODE }, /* Stereo */ 3632cf86f6SMauro Carvalho Chehab { 0x0e, KEY_STOP }, 3732cf86f6SMauro Carvalho Chehab { 0x0f, KEY_PREVIOUSSONG }, 3832cf86f6SMauro Carvalho Chehab { 0x10, KEY_ZOOM }, 3932cf86f6SMauro Carvalho Chehab { 0x11, KEY_TUNER }, /* Source */ 4032cf86f6SMauro Carvalho Chehab { 0x12, KEY_POWER }, 4132cf86f6SMauro Carvalho Chehab { 0x13, KEY_MUTE }, 4232cf86f6SMauro Carvalho Chehab { 0x15, KEY_CHANNELDOWN }, 4332cf86f6SMauro Carvalho Chehab { 0x18, KEY_VOLUMEDOWN }, 4432cf86f6SMauro Carvalho Chehab { 0x19, KEY_CAMERA }, /* Snapshot */ 4532cf86f6SMauro Carvalho Chehab { 0x1a, KEY_NEXTSONG }, 4632cf86f6SMauro Carvalho Chehab { 0x1b, KEY_TIME }, /* Time Shift */ 4732cf86f6SMauro Carvalho Chehab { 0x1c, KEY_RADIO }, /* FM Radio */ 4832cf86f6SMauro Carvalho Chehab { 0x1d, KEY_RECORD }, 4932cf86f6SMauro Carvalho Chehab { 0x1e, KEY_PAUSE }, 5032cf86f6SMauro Carvalho Chehab /* additional codes for Kozumi's remote */ 5132cf86f6SMauro Carvalho Chehab { 0x14, KEY_INFO }, /* OSD */ 5232cf86f6SMauro Carvalho Chehab { 0x16, KEY_OK }, /* OK */ 5332cf86f6SMauro Carvalho Chehab { 0x17, KEY_DIGITS }, /* Plus */ 5432cf86f6SMauro Carvalho Chehab { 0x1f, KEY_PLAY }, /* Play */ 5532cf86f6SMauro Carvalho Chehab }; 5632cf86f6SMauro Carvalho Chehab 5732cf86f6SMauro Carvalho Chehab static struct rc_keymap pctv_sedna_map = { 5832cf86f6SMauro Carvalho Chehab .map = { 5932cf86f6SMauro Carvalho Chehab .scan = pctv_sedna, 6032cf86f6SMauro Carvalho Chehab .size = ARRAY_SIZE(pctv_sedna), 6152b66144SMauro Carvalho Chehab .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */ 6232cf86f6SMauro Carvalho Chehab .name = RC_MAP_PCTV_SEDNA, 6332cf86f6SMauro Carvalho Chehab } 6432cf86f6SMauro Carvalho Chehab }; 6532cf86f6SMauro Carvalho Chehab 6632cf86f6SMauro Carvalho Chehab static int __init init_rc_map_pctv_sedna(void) 6732cf86f6SMauro Carvalho Chehab { 6832cf86f6SMauro Carvalho Chehab return ir_register_map(&pctv_sedna_map); 6932cf86f6SMauro Carvalho Chehab } 7032cf86f6SMauro Carvalho Chehab 7132cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_pctv_sedna(void) 7232cf86f6SMauro Carvalho Chehab { 7332cf86f6SMauro Carvalho Chehab ir_unregister_map(&pctv_sedna_map); 7432cf86f6SMauro Carvalho Chehab } 7532cf86f6SMauro Carvalho Chehab 7632cf86f6SMauro Carvalho Chehab module_init(init_rc_map_pctv_sedna) 7732cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_pctv_sedna) 7832cf86f6SMauro Carvalho Chehab 7932cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL"); 8032cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); 81