Path: blob/master/drivers/media/rc/keymaps/rc-avertv-303.c
15112 views
/* avertv-303.h - Keytable for avertv_303 Remote Controller1*2* keymap imported from ir-keymaps.c3*4* Copyright (c) 2010 by Mauro Carvalho Chehab <[email protected]>5*6* This program is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License as published by8* the Free Software Foundation; either version 2 of the License, or9* (at your option) any later version.10*/1112#include <media/rc-map.h>1314/* AVERTV STUDIO 303 Remote */1516static struct rc_map_table avertv_303[] = {17{ 0x2a, KEY_1 },18{ 0x32, KEY_2 },19{ 0x3a, KEY_3 },20{ 0x4a, KEY_4 },21{ 0x52, KEY_5 },22{ 0x5a, KEY_6 },23{ 0x6a, KEY_7 },24{ 0x72, KEY_8 },25{ 0x7a, KEY_9 },26{ 0x0e, KEY_0 },2728{ 0x02, KEY_POWER },29{ 0x22, KEY_VIDEO },30{ 0x42, KEY_AUDIO },31{ 0x62, KEY_ZOOM },32{ 0x0a, KEY_TV },33{ 0x12, KEY_CD },34{ 0x1a, KEY_TEXT },3536{ 0x16, KEY_SUBTITLE },37{ 0x1e, KEY_REWIND },38{ 0x06, KEY_PRINT },3940{ 0x2e, KEY_SEARCH },41{ 0x36, KEY_SLEEP },42{ 0x3e, KEY_SHUFFLE },43{ 0x26, KEY_MUTE },4445{ 0x4e, KEY_RECORD },46{ 0x56, KEY_PAUSE },47{ 0x5e, KEY_STOP },48{ 0x46, KEY_PLAY },4950{ 0x6e, KEY_RED },51{ 0x0b, KEY_GREEN },52{ 0x66, KEY_YELLOW },53{ 0x03, KEY_BLUE },5455{ 0x76, KEY_LEFT },56{ 0x7e, KEY_RIGHT },57{ 0x13, KEY_DOWN },58{ 0x1b, KEY_UP },59};6061static struct rc_map_list avertv_303_map = {62.map = {63.scan = avertv_303,64.size = ARRAY_SIZE(avertv_303),65.rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */66.name = RC_MAP_AVERTV_303,67}68};6970static int __init init_rc_map_avertv_303(void)71{72return rc_map_register(&avertv_303_map);73}7475static void __exit exit_rc_map_avertv_303(void)76{77rc_map_unregister(&avertv_303_map);78}7980module_init(init_rc_map_avertv_303)81module_exit(exit_rc_map_avertv_303)8283MODULE_LICENSE("GPL");84MODULE_AUTHOR("Mauro Carvalho Chehab <[email protected]>");858687