aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/keymaps/rc-streamzap.c
blob: 6684e2e86bc96ff39dc38abb088a79954000c663 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// SPDX-License-Identifier: GPL-2.0-or-later
/* rc-streamzap.c - Keytable for Streamzap PC Remote, for use
 * with the Streamzap PC Remote IR Receiver.
 *
 * Copyright (c) 2010 by Jarod Wilson <jarod@redhat.com>
 */

#include <media/rc-map.h>
#include <linux/module.h>

static struct rc_map_table streamzap[] = {
/*
 * The Streamzap remote is almost, but not quite, RC-5, as it has an extra
 * bit in it.
 */
	{ 0x28c0, KEY_NUMERIC_0 },
	{ 0x28c1, KEY_NUMERIC_1 },
	{ 0x28c2, KEY_NUMERIC_2 },
	{ 0x28c3, KEY_NUMERIC_3 },
	{ 0x28c4, KEY_NUMERIC_4 },
	{ 0x28c5, KEY_NUMERIC_5 },
	{ 0x28c6, KEY_NUMERIC_6 },
	{ 0x28c7, KEY_NUMERIC_7 },
	{ 0x28c8, KEY_NUMERIC_8 },
	{ 0x28c9, KEY_NUMERIC_9 },
	{ 0x28ca, KEY_POWER },
	{ 0x28cb, KEY_MUTE },
	{ 0x28cc, KEY_CHANNELUP },
	{ 0x28cd, KEY_VOLUMEUP },
	{ 0x28ce, KEY_CHANNELDOWN },
	{ 0x28cf, KEY_VOLUMEDOWN },
	{ 0x28d0, KEY_UP },
	{ 0x28d1, KEY_LEFT },
	{ 0x28d2, KEY_OK },
	{ 0x28d3, KEY_RIGHT },
	{ 0x28d4, KEY_DOWN },
	{ 0x28d5, KEY_MENU },
	{ 0x28d6, KEY_EXIT },
	{ 0x28d7, KEY_PLAY },
	{ 0x28d8, KEY_PAUSE },
	{ 0x28d9, KEY_STOP },
	{ 0x28da, KEY_BACK },
	{ 0x28db, KEY_FORWARD },
	{ 0x28dc, KEY_RECORD },
	{ 0x28dd, KEY_REWIND },
	{ 0x28de, KEY_FASTFORWARD },
	{ 0x28e0, KEY_RED },
	{ 0x28e1, KEY_GREEN },
	{ 0x28e2, KEY_YELLOW },
	{ 0x28e3, KEY_BLUE },

};

static struct rc_map_list streamzap_map = {
	.map = {
		.scan     = streamzap,
		.size     = ARRAY_SIZE(streamzap),
		.rc_proto = RC_PROTO_RC5_SZ,
		.name     = RC_MAP_STREAMZAP,
	}
};

static int __init init_rc_map_streamzap(void)
{
	return rc_map_register(&streamzap_map);
}

static void __exit exit_rc_map_streamzap(void)
{
	rc_map_unregister(&streamzap_map);
}

module_init(init_rc_map_streamzap)
module_exit(exit_rc_map_streamzap)

MODULE_LICENSE("GPL");
MODULE_AUTHOR("Jarod Wilson <jarod@redhat.com>");
4ce4ec3f39e1190ab702f51f141e18cdcc1e&follow=1'>gitweb: Add links to blobdiffs in from-file/to-file header for mergesJakub Narebski1-3/+14 2007-06-10gitweb: Create special from-file/to-file header for combined diffJakub Narebski1-11/+27 2007-06-10gitweb: Split git_patchset_body into separate subroutinesJakub Narebski1-111/+202 2007-06-10gitweb: Improve "next" link in commitdiff viewJakub Narebski1-1/+8 2007-06-10gitweb: Provide links to commitdiff to each parent in 'commitdiff' viewJakub Narebski2-0/+26 2007-06-10mktag: minimally update the description.Junio C Hamano1-7/+7 2007-06-10Makefile: add an explicit rule for building assembly outputLinus Torvalds2-1/+3 2007-06-10tutorial: use "project history" instead of "changelog" in headerJ. Bruce Fields1-2/+2 2007-06-10Documentation: user-manual todoJ. Bruce Fields1-0/+4 2007-06-10user-manual: add a missing section IDJ. Bruce Fields1-0/+1 2007-06-10Fix typo in remote branch example in git user manualGerrit Pape1-1/+1 2007-06-10user-manual: quick-start updatesJ. Bruce Fields1-5/+5 2007-06-10git-mergetool: Make default selection of merge-tool more intelligentTheodore Ts'o1-17/+29 2007-06-10[PATCH] git-mergetool: Allow gvimdiff to be used as a mergetoolDan McGee3-4/+12 2007-06-09Remove unnecessary code and comments on non-existing 8kB tag object restrictionJohan Herland1-7/+0 2007-06-09Make command description imperative statement, not third-person present.william pursell3-3/+3 2007-06-09t5000: silence unzip availability checkRené Scharfe1-1/+1 2007-06-09cmd_log_init: remove parsing of --encoding command line parameterJeff King1-7/+1 2007-06-08Even more missing staticJunio C Hamano9-32/+6 2007-06-08More missing staticJunio C Hamano3-6/+4 2007-06-08More missing staticJunio C Hamano2-11/+8 2007-06-08Missing statics.Pierre Habouzit5-7/+7 2007-06-08Active_nr is unsigned, hence can't be < 0Pierre Habouzit1-2/+0 2007-06-08cvsserver: Make req_Root more critical of its input dataFrank Lichtenheld2-0/+45 2007-06-08gitview: Define __slots__ for CommitMichael Ellerman1-0/+3 2007-06-08gitview: Use new-style classesMichael Ellerman1-4/+4 2007-06-08checkout: do not get confused with ambiguous tag/branch namesJunio C Hamano2-1/+42