// SPDX-License-Identifier: GPL-2.0+
// Keytable for the Pine64 IR Remote Controller
// Copyright (c) 2017 Jonas Karlman
#include <media/rc-map.h>
#include <linux/module.h>
static struct rc_map_table pine64[] = {
{ 0 x40404d, KEY_POWER },
{ 0 x40401f, KEY_WWW },
{ 0 x40400a, KEY_MUTE },
{ 0 x404017, KEY_VOLUMEDOWN },
{ 0 x404018, KEY_VOLUMEUP },
{ 0 x404010, KEY_LEFT },
{ 0 x404011, KEY_RIGHT },
{ 0 x40400b, KEY_UP },
{ 0 x40400e, KEY_DOWN },
{ 0 x40400d, KEY_OK },
{ 0 x40401d, KEY_MENU },
{ 0 x40401a, KEY_HOME },
{ 0 x404045, KEY_BACK },
{ 0 x404001, KEY_NUMERIC_1 },
{ 0 x404002, KEY_NUMERIC_2 },
{ 0 x404003, KEY_NUMERIC_3 },
{ 0 x404004, KEY_NUMERIC_4 },
{ 0 x404005, KEY_NUMERIC_5 },
{ 0 x404006, KEY_NUMERIC_6 },
{ 0 x404007, KEY_NUMERIC_7 },
{ 0 x404008, KEY_NUMERIC_8 },
{ 0 x404009, KEY_NUMERIC_9 },
{ 0 x40400c, KEY_BACKSPACE },
{ 0 x404000, KEY_NUMERIC_0 },
{ 0 x404047, KEY_EPG }, // mouse
};
static struct rc_map_list pine64_map = {
.map = {
.scan = pine64,
.size = ARRAY_SIZE(pine64),
.rc_proto = RC_PROTO_NECX,
.name = RC_MAP_PINE64,
}
};
static int __init init_rc_map_pine64(void )
{
return rc_map_register(&pine64_map);
}
static void __exit exit_rc_map_pine64(void )
{
rc_map_unregister(&pine64_map);
}
module_init(init_rc_map_pine64)
module_exit(exit_rc_map_pine64)
MODULE_LICENSE("GPL" );
MODULE_AUTHOR("Jonas Karlman" );
MODULE_DESCRIPTION("Pine64 IR remote controller keytable" );
Messung V0.5 in Prozent C=94 H=93 G=93
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-06-08)
¤
*© Formatika GbR, Deutschland