From: Ulrich Eckhardt <uli@uli-eckhardt.de>
To: Mauro Carvalho Chehab <m.chehab@samsung.com>
Cc: jarod@wilsonet.com, linux-media@vger.kernel.org
Subject: Re: [PATCH 2/3] [media] imon: Add internal key table for 15c2:0034
Date: Sat, 26 Jul 2014 19:59:07 +0200 [thread overview]
Message-ID: <53D3EC6B.6020601@uli-eckhardt.de> (raw)
In-Reply-To: <53D3E991.9040006@uli-eckhardt.de>
Add the key table for the Thermaltake DH-102 to the USB-Id 15c2:0034.
Signed-off-by: Ulrich Eckhardt <uli@uli-eckhardt.de>
diff --git a/drivers/media/rc/imon.c b/drivers/media/rc/imon.c
index 74aa03e..c64acbf 100644
--- a/drivers/media/rc/imon.c
+++ b/drivers/media/rc/imon.c
@@ -307,6 +307,27 @@ static const struct imon_usb_dev_descr imon_OEM_VFD = {
}
};
+/* imon receiver front panel/knob key table for DH102*/
+static const struct imon_usb_dev_descr imon_DH102 = {
+ .flags = IMON_NO_FLAGS,
+ .key_table = {
+ { 0x000100000000ffeell, KEY_VOLUMEUP },
+ { 0x010000000000ffeell, KEY_VOLUMEDOWN },
+ { 0x000000010000ffeell, KEY_MUTE },
+ { 0x0000000f0000ffeell, KEY_MEDIA },
+ { 0x000000120000ffeell, KEY_UP },
+ { 0x000000130000ffeell, KEY_DOWN },
+ { 0x000000140000ffeell, KEY_LEFT },
+ { 0x000000150000ffeell, KEY_RIGHT },
+ { 0x000000160000ffeell, KEY_ENTER },
+ { 0x000000170000ffeell, KEY_ESC },
+ { 0x0000002b0000ffeell, KEY_EXIT },
+ { 0x0000002c0000ffeell, KEY_SELECT },
+ { 0x0000002d0000ffeell, KEY_MENU },
+ { 0, KEY_RESERVED }
+ }
+};
+
/*
* USB Device ID for iMON USB Control Boards
*
@@ -335,7 +356,7 @@ static struct usb_device_id imon_usb_id_table[] = {
*/
/* SoundGraph iMON OEM Touch LCD (IR & 7" VGA LCD) */
{ USB_DEVICE(0x15c2, 0x0034),
- .driver_info = (unsigned long)&imon_default_table },
+ .driver_info = (unsigned long)&imon_DH102 },
/* SoundGraph iMON OEM Touch LCD (IR & 4.3" VGA LCD) */
{ USB_DEVICE(0x15c2, 0x0035),
.driver_info = (unsigned long)&imon_default_table},
--
Ulrich Eckhardt Web : http://www.uli-eckhardt.de
Lebrecht Str.84 E-Mail : mailto:uli@uli-eckhardt.de
64846 Groß-Zimmern Fax : 06071/8269344
Tel: 06071/71921 Handy : 0179/5090545
next prev parent reply other threads:[~2014-07-26 18:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-15 16:02 [PATCH] [media] imon: Fix internal key table for 15c2:0034 Ulrich Eckhardt
2014-07-23 20:55 ` Mauro Carvalho Chehab
2014-07-26 9:40 ` Ulrich Eckhardt
2014-07-26 17:46 ` [PATCH 0/3] " Ulrich Eckhardt
2014-07-26 17:56 ` [PATCH 1/3] [media] imon: Define keytables per USB Device Id Ulrich Eckhardt
2014-07-26 17:59 ` Ulrich Eckhardt [this message]
2014-07-26 18:01 ` [PATCH 3/3] [media] imon: Fix not working front panel Ulrich Eckhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53D3EC6B.6020601@uli-eckhardt.de \
--to=uli@uli-eckhardt.de \
--cc=jarod@wilsonet.com \
--cc=linux-media@vger.kernel.org \
--cc=m.chehab@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.