From patchwork Fri Feb 3 09:34:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 52427 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp736392wrn; Fri, 3 Feb 2023 01:38:38 -0800 (PST) X-Google-Smtp-Source: AK7set/BP3Uw4P5oSQrSC0Gjw/SKqG3WifRYH6xAp75z8ADUA3MCcCBMmaw0KrWgpHEyHrHXc1Rc X-Received: by 2002:a05:6a21:3990:b0:bf:8840:ffd0 with SMTP id ad16-20020a056a21399000b000bf8840ffd0mr6618381pzc.29.1675417117841; Fri, 03 Feb 2023 01:38:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675417117; cv=none; d=google.com; s=arc-20160816; b=C8UH76bJ6vcZ9ne8sH8yiwIdVdmrZvmNpdbhwCCv3jOG+rcP7rSMhSsFkju3h7qmPN j+tRHiAEMmFaWzISNTxWYaRW2dEUlcQuVUJXr9RM6yFsnoDtEVZLwAIKMKzyIc44jojv y18+ym2LxGVE63KkOlpk/teSB927HnXfQBhMeEaLooHAfwRSg/cMtno36W7M/HCZu8U+ NYEJWttKdW2xbjcndnPX1EYBNl9WxNu9cgPSu9HlqH3+D5eeG/t6LuAKNhiYWMXXqyCA MSx8YOX7Pc+afjmtDv4YuxLFjTSnSqadSuiTppLAV17XLY9pmfbX5AdxlVye2VBeWf1T LSug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6rK0jiumf10CNfjIHGx8FDIqbyhB3AWsgtWtXiKzKMg=; b=aTTI1WscoCARkbhbL7KgiQ3j1c9xLoWKFuYKhuFS2DoEbFmX5HH4cEfsLcPKuaYYXW 3BEV+iJBv6Y2pqMcpMJ7w0LxtRI8bVuvDu6qadqLqgBFDJ/OV4WoMg9lREyk+HKWOPpf wWZa863vCmQZl2rheZ+8AAxRb3aNoj1Z0y9BLVp+zImpn6m0JGmfpw0yD9F7Tvwq7NRY vFNNbUVD+OeReBww033xpzwv4LwFfrkpMvU8+bnSoMER4+BtDvXRhQe5nL53LKVR+rMk JzgntN3Bfw5KT7pNXlz08dryQ8/N2ztaDi8QvFt7A9WEbSypqjzJwHwFgRY8YGJNsi/i t2Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=okoKz4eS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m8-20020a656a08000000b004e382954739si2956990pgu.664.2023.02.03.01.38.25; Fri, 03 Feb 2023 01:38:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=okoKz4eS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232673AbjBCJeb (ORCPT + 99 others); Fri, 3 Feb 2023 04:34:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232587AbjBCJeR (ORCPT ); Fri, 3 Feb 2023 04:34:17 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 520F361D5A; Fri, 3 Feb 2023 01:34:13 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id r27so261072wrr.1; Fri, 03 Feb 2023 01:34:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6rK0jiumf10CNfjIHGx8FDIqbyhB3AWsgtWtXiKzKMg=; b=okoKz4eSrfO1XK3dfuH+cU9O6eWvt7CetR2sR4RFM14epnjCeA8rubZcW6XjzH/LKS 7FagHPt0pC0QY1rc68eTr96qvLQBvj5xQmQCrGlegAOTVytsypCarQMv/XyPW069qODr 3kyxzFnqTydVXAB6H3tXlVw8MRdn3Vl3L9ztAPsc/w2VWCmkT7QzOBW34gqAJ5kKstFF S8T0n4fqDsWjYEaB8h2mnal0b/FW4esNEXoBtuxYlRFTIPEEnBXW2SQwf2N2cQiBiRZF MQ7xBkY0/P+QhcCYnpuiP2Evtu/JKfLJCINmeoj2x5+vwMW9odK5kF7Bv+OQacAtydU6 s3pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6rK0jiumf10CNfjIHGx8FDIqbyhB3AWsgtWtXiKzKMg=; b=vJe952Hf9ZKGUxTdg9HUyvxWVXF7n8vUfWyNi+eIPPOpZGw/1F2qqWmMBEY0xwyhg7 fJbHjJp0UJLolvJr7vpzIuOoD0qGAgMfx1QlcBZm6R+Y7tlQmwJWna3UnnOsDbhti2Cm c7Z3gUm3Y/n7IX1nJnDnNFztg1bpQsjnbO/V3Glk291aKHMdKtaGaLiXsc3zItF6y3ph 15bD5A9N7PIcL/qkmI7cqHEQW2Hz+12zaxQyIDkG24hVFo4qJKDW6sV/yhIfvbQ2z8jq IPGvdiC1R/Rdd1BNFnoQ6uD3349JzK6bwCW54oMA+AbDA1QhLX30+ppEVagyXaod/6pZ qy0Q== X-Gm-Message-State: AO0yUKXT2bsgfe+r3EzKhGNeFk/jV+ES3fIT1PYI/aSPqIwmhzADHWq+ VyBFlh153lbOLdNUXREzo+s= X-Received: by 2002:adf:e3c5:0:b0:2c3:da85:ad81 with SMTP id k5-20020adfe3c5000000b002c3da85ad81mr321035wrm.20.1675416851914; Fri, 03 Feb 2023 01:34:11 -0800 (PST) Received: from toolbox.. ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id r7-20020adff107000000b002c285b4d2b5sm1533259wro.101.2023.02.03.01.34.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Feb 2023 01:34:11 -0800 (PST) From: Christian Hewitt To: Sean Young , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org Cc: Christian Hewitt , Emanuel Strobel Subject: [PATCH v2 1/2] dt-bindings: media: rc: add rc-dreambox binding Date: Fri, 3 Feb 2023 09:34:04 +0000 Message-Id: <20230203093405.1616564-2-christianshewitt@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230203093405.1616564-1-christianshewitt@gmail.com> References: <20230203093405.1616564-1-christianshewitt@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756802179815695018?= X-GMAIL-MSGID: =?utf-8?q?1756802179815695018?= Add a binding for the rc-dreambox remote keymap Signed-off-by: Christian Hewitt Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/media/rc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/rc.yaml b/Documentation/devicetree/bindings/media/rc.yaml index e732b7f3a635..e7d2ae5a7eb9 100644 --- a/Documentation/devicetree/bindings/media/rc.yaml +++ b/Documentation/devicetree/bindings/media/rc.yaml @@ -55,6 +55,7 @@ properties: - rc-dm1105-nec - rc-dntv-live-dvb-t - rc-dntv-live-dvbt-pro + - rc-dreambox - rc-dtt200u - rc-dvbsky - rc-dvico-mce From patchwork Fri Feb 3 09:34:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 52426 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp736376wrn; Fri, 3 Feb 2023 01:38:36 -0800 (PST) X-Google-Smtp-Source: AK7set/DaVRpEquzPoWZE6Z0LhX/k/364bPjMKkrGzc8pDWhJl50gbcb0AumhuDo0fYYGNkNWFNN X-Received: by 2002:a17:902:f68b:b0:196:8158:fa8c with SMTP id l11-20020a170902f68b00b001968158fa8cmr12164497plg.11.1675417116320; Fri, 03 Feb 2023 01:38:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675417116; cv=none; d=google.com; s=arc-20160816; b=0VN9DCCOijLgKn4hC8A4pVc7Xqurc2mlPifPobnFlbDlQvDJqGkJsW5PGHjRxLN6YL qm2OeTz70bPwwp0sCMkDRAJqlpMRSGpVBSLu2ji4g3sDWZ0sXWozKzoQmufcLVZD7D7w yOPqceA2ioXl10gD7bDYSUj8J6h4lJznLZ/8CZryEBx5V4asBJ21rG7yKSFwg0eHgxbq e4+uE+FYXHIw65DXpDuFxUMJxjNnJO04rkJpHaYAvKESOm98VCRmZkzjpftX6bIqzNd0 jAdDfyb+8HQOnfvzuTFM/4xeYOsLiu6Ue5U1SmCuwPfcIoGiHsN8bQiPwpBW2in/Yban km8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DSoTwx1PKMizxi9LAMpHct689dKl++Ljc1WejA3R234=; b=y5ZOlvkG/GvW/N+bephXb6kmZjeRk7ZatZtDzQVVK8SN4Ai3bHrk4L71f8ivG/VQ73 Okz3xiQiwjghHY2vqafezS+C34/NkSwOiFuEUCUBXGpNy/qTYPs5JVZBjukhXaa44LE7 6WpVceguZRhcFPp3RE49knPFi1TyhtYbIGbU3v5mHIcUdtiM3lBEkCIxHcwEf9a+uSgK aVkWMA3RjAwThbFTTsrKfPwdA21dLItFYK4zyfLNJ/ieQdiUI99Ca6/FPZ/NCUJmOEl8 0QSe307LAZo04/P0ihoPbVnj7bKoRJOvzc6/2/DhkyVibKjCS4gohZJVzz79auu1VRzF /ycw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Pp9YxhI2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020a170902cecb00b001967580f630si2391712plg.133.2023.02.03.01.38.24; Fri, 03 Feb 2023 01:38:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Pp9YxhI2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232653AbjBCJe1 (ORCPT + 99 others); Fri, 3 Feb 2023 04:34:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231726AbjBCJeS (ORCPT ); Fri, 3 Feb 2023 04:34:18 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2E66199E7; Fri, 3 Feb 2023 01:34:15 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id h16so4054391wrz.12; Fri, 03 Feb 2023 01:34:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DSoTwx1PKMizxi9LAMpHct689dKl++Ljc1WejA3R234=; b=Pp9YxhI2qTs1Ndc4oqJQuEdBmEBREjpiN6XzEwREp/cqRxoBkXkKBkeSgzFJqfdEig pIE6i3z/KsUnj16djI+tn99hvcxNS+Y1gxSPSZXoZFVPg7TnmVQ6VNGG0UNxMyxo6Dak NyliJdqe8chami4pMcp8uIBx8WakiB3BGEdLVxPb1Z5HFbQPtemWUnclSHLpiwcv22O1 KWP2OJ4F3VjTZ3pHmZCVCcbaU2kmNcWRQQK6vLpHBc2XZjg43SAfUyXh9Y/bz7IYuqCE gNWYJUGJdpPHfOvlwfM5hscl8WzJO228KP4npE/amS/ezlLZUcDoTdWf99FpR/qseMHn 9eBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DSoTwx1PKMizxi9LAMpHct689dKl++Ljc1WejA3R234=; b=vKNpmZVIIaSHy0eL5xXimCqvMHLlPPsse7ZWgxlVBZJiR1Xn8M0Bt2FjFPDReP3K3g mV7eSQWlevR15efMTssXyWd7UpnmS0P2AhkjyDNlXlC1ylAuSMkw3UWyQlZgdxhJ2YUP viHwfzgOcLCXdnKTwkrIVugV0xVGhLbzaJu1eZ0CI0V7YOCvqI1lCmEV2gvF84E48nov Ob4tpSYu1sGrAJSkTCLPZzmKwXjMGiR3yGEfWiFEaS8JUiMepGX0p71HyC4O+yenXywp 1HH9/awUqPnFemvtuw9NjCH/MfTMcdm6Q0RhVApEET9bVRkkkYXrNbwLgdXgZEzd97bb vO8A== X-Gm-Message-State: AO0yUKVIT/GhsirDvN7iS4B481pRktGIuIefNMdDAzNmnDAR9/EfUZs1 OQVyrlb++fu7d6BEfhntxj8= X-Received: by 2002:adf:a28d:0:b0:2bf:c0d3:430c with SMTP id s13-20020adfa28d000000b002bfc0d3430cmr8122291wra.11.1675416854084; Fri, 03 Feb 2023 01:34:14 -0800 (PST) Received: from toolbox.. ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id r7-20020adff107000000b002c285b4d2b5sm1533259wro.101.2023.02.03.01.34.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Feb 2023 01:34:13 -0800 (PST) From: Christian Hewitt To: Sean Young , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org Cc: Christian Hewitt , Emanuel Strobel Subject: [PATCH v2 2/2] media: rc: add common keymap for Dreambox RC10/RC0 and RC20/RC-BT remotes Date: Fri, 3 Feb 2023 09:34:05 +0000 Message-Id: <20230203093405.1616564-3-christianshewitt@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230203093405.1616564-1-christianshewitt@gmail.com> References: <20230203093405.1616564-1-christianshewitt@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756802178358200218?= X-GMAIL-MSGID: =?utf-8?q?1756802178358200218?= From: Emanuel Strobel Add a common keymap for the RC10/RC0 and RC20/RC-BT remotes used with the Dreambox One and Dreambox Two DVB-S/T boxes. The maps are combined since the IR codes do not conflict and both boxes have shipped with both remote designs over time. Both remote types can be programmed to control TVs, so include non-IR keys that are used to switch-to or toggle the remote mode: - DREAM in RC10/RC0 switches to (Dreambox) STB control mode - TV in RC10/RC0 switches to TV control mode - MODE in RC20/RC-BT toggles between STB/TV/BT control modes In the RC20 keymap the Android MIC (voice search) key maps to KEY_HELP and EXIT is mapped to KEY_ESC to replicate the go-backwards navigation behaviour in the Android vendor OS that ships on Dreambox devices. Signed-off-by: Emanuel Strobel Signed-off-by: Christian Hewitt --- drivers/media/rc/keymaps/Makefile | 1 + drivers/media/rc/keymaps/rc-dreambox.c | 151 +++++++++++++++++++++++++ include/media/rc-map.h | 1 + 3 files changed, 153 insertions(+) create mode 100644 drivers/media/rc/keymaps/rc-dreambox.c diff --git a/drivers/media/rc/keymaps/Makefile b/drivers/media/rc/keymaps/Makefile index f513ff5caf4e..6931c89fca99 100644 --- a/drivers/media/rc/keymaps/Makefile +++ b/drivers/media/rc/keymaps/Makefile @@ -37,6 +37,7 @@ obj-$(CONFIG_RC_MAP) += \ rc-dm1105-nec.o \ rc-dntv-live-dvb-t.o \ rc-dntv-live-dvbt-pro.o \ + rc-dreambox.o \ rc-dtt200u.o \ rc-dvbsky.o \ rc-dvico-mce.o \ diff --git a/drivers/media/rc/keymaps/rc-dreambox.c b/drivers/media/rc/keymaps/rc-dreambox.c new file mode 100644 index 000000000000..dea024fa3a22 --- /dev/null +++ b/drivers/media/rc/keymaps/rc-dreambox.c @@ -0,0 +1,151 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (c) 2021 Emanuel Strobel + */ + +#include +#include + +/* + * Keytable for Dreambox RC10/RC0 and RC20/RC-BT remote controls + * + * Keys that are not IR addressable: + * + * // DREAM switches to STB control mode + * // TV switches to TV control mode + * // MODE toggles STB/TV/BT control modes + * + */ + +static struct rc_map_table dreambox[] = { + /* Dreambox RC10/RC0/RCU-BT remote */ + { 0x3200, KEY_POWER }, + + // DREAM + { 0x3290, KEY_HELP }, + // TV + + { 0x3201, KEY_1 }, + { 0x3202, KEY_2 }, + { 0x3203, KEY_3 }, + { 0x3204, KEY_4 }, + { 0x3205, KEY_5 }, + { 0x3206, KEY_6 }, + { 0x3207, KEY_7 }, + { 0x3208, KEY_8 }, + { 0x3209, KEY_9 }, + { 0x320a, KEY_PREVIOUS }, + { 0x320b, KEY_0 }, + { 0x320c, KEY_NEXT }, + + { 0x321f, KEY_RED }, + { 0x3220, KEY_GREEN }, + { 0x3221, KEY_YELLOW }, + { 0x3222, KEY_BLUE }, + + { 0x3210, KEY_INFO }, + { 0x3212, KEY_MENU }, + { 0x320e, KEY_AUDIO }, + { 0x3218, KEY_PVR }, + + { 0x3213, KEY_LEFT }, + { 0x3211, KEY_UP }, + { 0x3215, KEY_RIGHT }, + { 0x3217, KEY_DOWN }, + { 0x3214, KEY_OK }, + + { 0x3219, KEY_VOLUMEUP }, + { 0x321c, KEY_VOLUMEDOWN }, + + { 0x321d, KEY_ESC }, // EXIT + { 0x321a, KEY_MUTE }, + + { 0x321b, KEY_PAGEUP }, + { 0x321e, KEY_PAGEDOWN }, + + { 0x3223, KEY_PREVIOUSSONG }, + { 0x3224, KEY_PLAYPAUSE }, + { 0x3225, KEY_STOP }, + { 0x3226, KEY_NEXTSONG }, + + { 0x3227, KEY_TV }, + { 0x3228, KEY_RADIO }, + { 0x3229, KEY_TEXT }, + { 0x322a, KEY_RECORD }, + + /* Dreambox RC20/RC-BT */ + { 0x3407, KEY_MUTE }, + // MODE + { 0x3401, KEY_POWER }, + + { 0x3432, KEY_PREVIOUSSONG }, + { 0x3433, KEY_PLAYPAUSE }, + { 0x3435, KEY_NEXTSONG }, + + { 0x3436, KEY_RECORD }, + { 0x3434, KEY_STOP }, + { 0x3425, KEY_TEXT }, + + { 0x341f, KEY_RED }, + { 0x3420, KEY_GREEN }, + { 0x3421, KEY_YELLOW }, + { 0x3422, KEY_BLUE }, + + { 0x341b, KEY_INFO }, + { 0x341c, KEY_MENU }, + { 0x3430, KEY_AUDIO }, + { 0x3431, KEY_PVR }, + + { 0x3414, KEY_LEFT }, + { 0x3411, KEY_UP }, + { 0x3416, KEY_RIGHT }, + { 0x3419, KEY_DOWN }, + { 0x3415, KEY_OK }, + + { 0x3413, KEY_VOLUMEUP }, + { 0x3418, KEY_VOLUMEDOWN }, + + { 0x3412, KEY_ESC }, // EXIT + { 0x3426, KEY_HELP }, // MIC + + { 0x3417, KEY_PAGEUP }, + { 0x341a, KEY_PAGEDOWN }, + + { 0x3404, KEY_1 }, + { 0x3405, KEY_2 }, + { 0x3406, KEY_3 }, + { 0x3408, KEY_4 }, + { 0x3409, KEY_5 }, + { 0x340a, KEY_6 }, + { 0x340c, KEY_7 }, + { 0x340d, KEY_8 }, + { 0x340e, KEY_9 }, + { 0x340b, KEY_PREVIOUS }, + { 0x3410, KEY_0 }, + { 0x340f, KEY_NEXT }, +}; + +static struct rc_map_list dreambox_map = { + .map = { + .scan = dreambox, + .size = ARRAY_SIZE(dreambox), + .rc_proto = RC_PROTO_NEC, + .name = RC_MAP_DREAMBOX, + } +}; + +static int __init init_rc_map_dreambox(void) +{ + return rc_map_register(&dreambox_map); +} + +static void __exit exit_rc_map_dreambox(void) +{ + rc_map_unregister(&dreambox_map); +} + +module_init(init_rc_map_dreambox) +module_exit(exit_rc_map_dreambox) + +MODULE_LICENSE("GPL"); +MODULE_AUTHOR("Emanuel Strobel "); diff --git a/include/media/rc-map.h b/include/media/rc-map.h index 793b54342dff..94ee968d4722 100644 --- a/include/media/rc-map.h +++ b/include/media/rc-map.h @@ -241,6 +241,7 @@ struct rc_map *rc_map_get(const char *name); #define RC_MAP_DM1105_NEC "rc-dm1105-nec" #define RC_MAP_DNTV_LIVE_DVB_T "rc-dntv-live-dvb-t" #define RC_MAP_DNTV_LIVE_DVBT_PRO "rc-dntv-live-dvbt-pro" +#define RC_MAP_DREAMBOX "rc-dreambox" #define RC_MAP_DTT200U "rc-dtt200u" #define RC_MAP_DVBSKY "rc-dvbsky" #define RC_MAP_DVICO_MCE "rc-dvico-mce"