all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 8d0f28c8dc16bcbdba4f6220569b8ae879066f38 4484 bytes (raw)
name: gnu/packages/patches/amlogic-0061-WIP-media-rc-add-keymap-for-Venz-V10-remote.patch 	 # note: path name is non-authoritative(*)

  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
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
 
From 420bb2b17660a31cb5928df4cb38b8236c07db49 Mon Sep 17 00:00:00 2001
From: Christian Hewitt <christianshewitt@gmail.com>
Date: Sun, 10 Apr 2022 11:51:38 +0000
Subject: [PATCH 61/73] WIP: media: rc: add keymap for Venz V10 remote

Add a keymap and bindings for the IR (NEC) remote used with
the Venz V10 Android STB device.

Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
---
 .../devicetree/bindings/media/rc.yaml         |  1 +
 drivers/media/rc/keymaps/Makefile             |  1 +
 drivers/media/rc/keymaps/rc-venz-v10.c        | 92 +++++++++++++++++++
 include/media/rc-map.h                        |  1 +
 4 files changed, 95 insertions(+)
 create mode 100644 drivers/media/rc/keymaps/rc-venz-v10.c

diff --git a/Documentation/devicetree/bindings/media/rc.yaml b/Documentation/devicetree/bindings/media/rc.yaml
index 5e3039e71312..f441a35ce7f4 100644
--- a/Documentation/devicetree/bindings/media/rc.yaml
+++ b/Documentation/devicetree/bindings/media/rc.yaml
@@ -151,6 +151,7 @@ properties:
       - rc-videomate-tv-pvr
       - rc-videostrong-kii-pro
       - rc-vega-s9x
+      - rc-venz-v10
       - rc-wetek-hub
       - rc-wetek-play2
       - rc-winfast
diff --git a/drivers/media/rc/keymaps/Makefile b/drivers/media/rc/keymaps/Makefile
index ef48a6bbeca4..77d8b5a69815 100644
--- a/drivers/media/rc/keymaps/Makefile
+++ b/drivers/media/rc/keymaps/Makefile
@@ -128,6 +128,7 @@ obj-$(CONFIG_RC_MAP) += \
 			rc-twinhan1027.o \
 			rc-twinhan-dtv-cab-ci.o \
 			rc-vega-s9x.o \
+			rc-venz-v10.o \
 			rc-videomate-m1f.o \
 			rc-videomate-s350.o \
 			rc-videomate-tv-pvr.o \
diff --git a/drivers/media/rc/keymaps/rc-venz-v10.c b/drivers/media/rc/keymaps/rc-venz-v10.c
new file mode 100644
index 000000000000..f0a99a31a1d7
--- /dev/null
+++ b/drivers/media/rc/keymaps/rc-venz-v10.c
@@ -0,0 +1,92 @@
+// SPDX-License-Identifier: GPL-2.0+
+//
+// Copyright (C) 2022 Christian Hewitt <christianshewitt@gmail.com>
+
+#include <media/rc-map.h>
+#include <linux/module.h>
+
+//
+// Keytable for the Venz V10 remote control
+//
+
+static struct rc_map_table venz_v10[] = {
+	{ 0x847912, KEY_POWER },
+	{ 0x847903, KEY_MUTE },
+
+	{ 0x847921, KEY_EPG },
+	{ 0x847922, KEY_ZOOMIN },
+	{ 0x847923, KEY_ZOOMOUT },
+	{ 0x847924, KEY_SCREEN }, // LAUNCHER
+
+	// UP
+	// DOWN
+	// LEFT
+	// RIGHT
+
+	{ 0x847904, KEY_FAVORITES }, // TV-SYS
+	{ 0x84790a, KEY_INFO }, // RATIO
+	{ 0x84791f, KEY_LANGUAGE }, // TRACK
+	{ 0x84791e, KEY_SUBTITLE }, // SUB-T
+
+	{ 0x847929, KEY_RED },
+	{ 0x847930, KEY_GREEN },
+	{ 0x847931, KEY_YELLOW },
+	{ 0x847932, KEY_BLUE },
+
+	{ 0x847906, KEY_HOME },
+	{ 0x84791b, KEY_CONFIG },
+
+	{ 0x847905, KEY_UP },
+	{ 0x847907, KEY_LEFT },
+	{ 0x847908, KEY_OK },
+	{ 0x847909, KEY_RIGHT },
+	{ 0x847900, KEY_DOWN },
+
+	{ 0x847920, KEY_CONTEXT_MENU },
+	{ 0x84791a, KEY_BACK },
+
+	{ 0x847910, KEY_VOLUMEUP },
+	{ 0x84790f, KEY_VOLUMEDOWN },
+	{ 0x847919, KEY_PLAYPAUSE },
+	{ 0x84791c, KEY_STOP },
+	{ 0x84791d, KEY_PREVIOUS },
+	{ 0x847928, KEY_NEXT },
+
+	{ 0x84790b, KEY_1 },
+	{ 0x84790c, KEY_2 },
+	{ 0x84790d, KEY_3 },
+	{ 0x84790e, KEY_4 },
+	{ 0x847911, KEY_5 },
+	{ 0x847927, KEY_6 },
+	{ 0x847913, KEY_7 },
+	{ 0x847914, KEY_8 },
+	{ 0x847915, KEY_9 },
+	{ 0x847916, KEY_MENU }, // MOUSE
+	{ 0x847917, KEY_0 },
+	{ 0x847918, KEY_DELETE },
+};
+
+static struct rc_map_list venz_v10_map = {
+	.map = {
+		.scan     = venz_v10,
+		.size     = ARRAY_SIZE(venz_v10),
+		.rc_proto = RC_PROTO_NEC,
+		.name     = RC_MAP_VENZ_V10,
+	}
+};
+
+static int __init init_rc_map_venz_v10(void)
+{
+	return rc_map_register(&venz_v10_map);
+}
+
+static void __exit exit_rc_map_venz_v10(void)
+{
+	rc_map_unregister(&venz_v10_map);
+}
+
+module_init(init_rc_map_venz_v10)
+module_exit(exit_rc_map_venz_v10)
+
+MODULE_LICENSE("GPL");
+MODULE_AUTHOR("Christian Hewitt <christianshewitt@gmail.com");
diff --git a/include/media/rc-map.h b/include/media/rc-map.h
index 9b6f09a6fd3a..43d254930daa 100644
--- a/include/media/rc-map.h
+++ b/include/media/rc-map.h
@@ -333,6 +333,7 @@ struct rc_map *rc_map_get(const char *name);
 #define RC_MAP_TT_1500                   "rc-tt-1500"
 #define RC_MAP_TWINHAN_DTV_CAB_CI        "rc-twinhan-dtv-cab-ci"
 #define RC_MAP_TWINHAN_VP1027_DVBS       "rc-twinhan1027"
+#define RC_MAP_VENZ_V10                  "rc-venz-v10"
 #define RC_MAP_VEGA_S9X                  "rc-vega-s9x"
 #define RC_MAP_VIDEOMATE_K100            "rc-videomate-k100"
 #define RC_MAP_VIDEOMATE_S350            "rc-videomate-s350"
-- 
2.17.1


debug log:

solving 8d0f28c8dc ...
found 8d0f28c8dc in https://yhetil.org/guix/C2ORkCSHJz-4jxwCauZznk4tZlP9KS4u_3Ywe4q2QrfJ7tvIswRWw4vX6OuzXDIHRriNNTQaCiYC67GgL30p8g80J9OcduCgaoZ8XNf-amE=@protonmail.com/

applying [1/1] https://yhetil.org/guix/C2ORkCSHJz-4jxwCauZznk4tZlP9KS4u_3Ywe4q2QrfJ7tvIswRWw4vX6OuzXDIHRriNNTQaCiYC67GgL30p8g80J9OcduCgaoZ8XNf-amE=@protonmail.com/
diff --git a/gnu/packages/patches/amlogic-0061-WIP-media-rc-add-keymap-for-Venz-V10-remote.patch b/gnu/packages/patches/amlogic-0061-WIP-media-rc-add-keymap-for-Venz-V10-remote.patch
new file mode 100644
index 0000000000..8d0f28c8dc

1:41: space before tab in indent.
 			rc-twinhan1027.o \
1:42: space before tab in indent.
 			rc-twinhan-dtv-cab-ci.o \
1:43: space before tab in indent.
 			rc-vega-s9x.o \
1:45: space before tab in indent.
 			rc-videomate-m1f.o \
1:46: space before tab in indent.
 			rc-videomate-s350.o \
Checking patch gnu/packages/patches/amlogic-0061-WIP-media-rc-add-keymap-for-Venz-V10-remote.patch...
Applied patch gnu/packages/patches/amlogic-0061-WIP-media-rc-add-keymap-for-Venz-V10-remote.patch cleanly.
warning: squelched 3 whitespace errors
warning: 8 lines add whitespace errors.

index at:
100644 8d0f28c8dc16bcbdba4f6220569b8ae879066f38	gnu/packages/patches/amlogic-0061-WIP-media-rc-add-keymap-for-Venz-V10-remote.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.