Skip to contentSkip to conversation

media: rc: add keymap for KHAMSIN remote

PATCH Superseded Christian Hewitt 1 participant 1 message Nov 25, 2020

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 media: rc: add keymap for KHAMSIN remote

This remote ships with the Amlogic SML-5442TW IPTV/VOD Set-Top Box used by O2.cz. This keymap adds support for the default IR controls.

---

v2 changes:
- added rc.yaml bindings
- fixed typos and removed stray URL reference

 .../devicetree/bindings/media/rc.yaml         |  1 +
 drivers/media/rc/keymaps/Makefile             |  1 +
 drivers/media/rc/keymaps/rc-khamsin.c         | 75 +++++++++++++++++++
 include/media/rc-map.h                        |  1 +
 4 files changed, 78 insertions(+)
 create mode 100644 drivers/media/rc/keymaps/rc-khamsin.c
Documentation/devicetree/bindings/media/rc.yaml +1 -0
index 8ad2cba5f61f..03cf40f91d6c 100644
@@ -83,6 +83,7 @@ properties:
       - rc-it913x-v2
       - rc-kaiomy
       - rc-khadas
+      - rc-khamsin
       - rc-kworld-315u
       - rc-kworld-pc150u
       - rc-kworld-plus-tv-analog
drivers/media/rc/keymaps/Makefile +1 -0
index aaa1bf81d00d..1c4d6bec0ae4 100644
@@ -60,6 +60,7 @@ obj-$(CONFIG_RC_MAP) += rc-adstech-dvb-t-pci.o \
 			rc-it913x-v2.o \
 			rc-kaiomy.o \
 			rc-khadas.o \
+			rc-khamsin.o \
 			rc-kworld-315u.o \
 			rc-kworld-pc150u.o \
 			rc-kworld-plus-tv-analog.o \
drivers/media/rc/keymaps/rc-khamsin.c new file +75 -0

75 lines not on this page · raw message

include/media/rc-map.h +1 -0
index 7dbb91c601a7..fa270f16a97b 100644
@@ -263,6 +263,7 @@ struct rc_map *rc_map_get(const char *name);
 #define RC_MAP_IT913X_V2                 "rc-it913x-v2"
 #define RC_MAP_KAIOMY                    "rc-kaiomy"
 #define RC_MAP_KHADAS                    "rc-khadas"
+#define RC_MAP_KHAMSIN                   "rc-khamsin"
 #define RC_MAP_KWORLD_315U               "rc-kworld-315u"
 #define RC_MAP_KWORLD_PC150U             "rc-kworld-pc150u"
 #define RC_MAP_KWORLD_PLUS_TV_ANALOG     "rc-kworld-plus-tv-analog"
Signature · 1 line
2.17.1