From: Mauro Carvalho Chehab <m.chehab@samsung.com>
To: Antti Palosaari <crope@iki.fi>
Cc: GEORGE <geoubuntu@gmail.com>,
Anca Emanuel <anca.emanuel@gmail.com>,
linux-media <linux-media@vger.kernel.org>
Subject: Re: [PATCH] saa7134: Add support for SnaZio TvPVR PRO
Date: Tue, 11 Mar 2014 11:49:53 -0300 [thread overview]
Message-ID: <20140311114953.2f8d3535@samsung.com> (raw)
In-Reply-To: <52F8637F.5070501@iki.fi>
Em Mon, 10 Feb 2014 07:28:31 +0200
Antti Palosaari <crope@iki.fi> escreveu:
> Moikka!
>
> On 10.02.2014 01:44, GEORGE wrote:
>
> > b/drivers/media/rc/keymaps/rc-snazio-tvpvr-pro.c
> > new file mode 100644
> > index 0000000..44f0c81
> > --- /dev/null
> > +++ b/drivers/media/rc/keymaps/rc-snazio-tvpvr-pro.c
> > @@ -0,0 +1,116 @@
> > +/* rc-snazio-tvpvr-pro.h - Keytable for snazio_tvpvr_pro Remote Controller
> > + *
> > + * keymap imported from ir-keymaps.c
> > + *
> > + * Copyright (c) 2010 by Mauro Carvalho Chehab
> > + * Copyright (c) 2014 by POJAR GEORGE <geoubuntu@gmail.com>
> > + *
> > + * This program is free software; you can redistribute it and/or modify
> > + * it under the terms of the GNU General Public License as published by
> > + * the Free Software Foundation; either version 2 of the License, or
> > + * (at your option) any later version.
> > + */
> > +
> > +#include <media/rc-map.h>
> > +#include <linux/module.h>
> > +
> > +/*
> > + Keycodes for remote on the SnaZio TvPVR PRO.
> > + POJAR GEORGE <geoubuntu@gmail.com>
> > +*/
> > +
> > +static struct rc_map_table snazio_tvpvr_pro[] = {
> > +
> > +/* ---- Remote Button Layout ----
> > +
> > + POWER SOURCE SCAN MUTE
> > + TV/FM 1 2 3
> > + |> 4 5 6
> > + <| 7 8 9
> > + ^^UP 0 + RECALL
> > + vvDN RECORD STOP PLAY
> > +
> > + MINIMIZE ZOOM
> > +
> > + CH+
> > + VOL- VOL+
> > + CH-
> > +
> > + SNAPSHOT MTS
> > +
> > + << FUNC >> RESET
> > +*/
> > +
> > + { 0x01, KEY_1 }, /* 1 */
> > + { 0x0b, KEY_2 }, /* 2 */
> > + { 0x1b, KEY_3 }, /* 3 */
> > + { 0x05, KEY_4 }, /* 4 */
> > + { 0x09, KEY_5 }, /* 5 */
> > + { 0x15, KEY_6 }, /* 6 */
> > + { 0x06, KEY_7 }, /* 7 */
> > + { 0x0a, KEY_8 }, /* 8 */
> > + { 0x12, KEY_9 }, /* 9 */
> > + { 0x02, KEY_0 }, /* 0 */
> > + { 0x10, KEY_KPPLUS }, /* + */
> > + { 0x13, KEY_AGAIN }, /* Recall */
Clearly, your emailer is doing something wrong here, replacing tabs by
white spaces.
That prevents us to be apply to apply it.
Also, please see the Antti comments below.
> > +
> > + { 0x1e, KEY_POWER }, /* Power */
> > + { 0x07, KEY_VIDEO }, /* Source */
> > + { 0x1c, KEY_SEARCH }, /* Scan */
> > + { 0x18, KEY_MUTE }, /* Mute */
> > +
> > + { 0x03, KEY_RADIO }, /* TV/FM */
> > + /* The next four keys are duplicates that appear to send the
> > + same IR code as Ch+, Ch-, >>, and << . The raw code assigned
> > + to them is the actual code + 0x20 - they will never be
> > + detected as such unless some way is discovered to distinguish
> > + these buttons from those that have the same code. */
> > + { 0x3f, KEY_RIGHT }, /* |> and Ch+ */
> > + { 0x37, KEY_LEFT }, /* <| and Ch- */
> > + { 0x2c, KEY_UP }, /* ^^Up and >> */
> > + { 0x24, KEY_DOWN }, /* vvDn and << */
> > +
> > + { 0x00, KEY_RECORD }, /* Record */
> > + { 0x08, KEY_STOP }, /* Stop */
> > + { 0x11, KEY_PLAY }, /* Play */
> > +
> > + { 0x0f, KEY_CLOSE }, /* Minimize */
> > + { 0x19, KEY_ZOOM }, /* Zoom */
> > + { 0x1a, KEY_CAMERA }, /* Snapshot */
> > + { 0x0d, KEY_LANGUAGE }, /* MTS */
> > +
> > + { 0x14, KEY_VOLUMEDOWN }, /* Vol- */
> > + { 0x16, KEY_VOLUMEUP }, /* Vol+ */
> > + { 0x17, KEY_CHANNELDOWN }, /* Ch- */
> > + { 0x1f, KEY_CHANNELUP }, /* Ch+ */
> > +
> > + { 0x04, KEY_REWIND }, /* << */
> > + { 0x0e, KEY_MENU }, /* Function */
> > + { 0x0c, KEY_FASTFORWARD }, /* >> */
> > + { 0x1d, KEY_RESTART }, /* Reset */
> > +};
> > +
> > +static struct rc_map_list snazio_tvpvr_pro_map = {
> > + .map = {
> > + .scan = snazio_tvpvr_pro,
> > + .size = ARRAY_SIZE(snazio_tvpvr_pro),
> > + .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
> > + .name = RC_MAP_SNAZIO_TVPVR_PRO,
> > + }
> > +};
> > +
> > +static int __init init_rc_map_snazio_tvpvr_pro(void)
> > +{
> > + return rc_map_register(&snazio_tvpvr_pro_map);
> > +}
> > +
> > +static void __exit exit_rc_map_snazio_tvpvr_pro(void)
> > +{
> > + rc_map_unregister(&snazio_tvpvr_pro_map);
> > +}
> > +
> > +module_init(init_rc_map_snazio_tvpvr_pro)
> > +module_exit(exit_rc_map_snazio_tvpvr_pro)
> > +
> > +MODULE_LICENSE("GPL");
> > +MODULE_AUTHOR("POJAR GEORGE <geoubuntu@gmail.com>");
> > diff --git a/include/media/rc-map.h b/include/media/rc-map.h
> > index e5aa240..b802af4 100644
> > --- a/include/media/rc-map.h
> > +++ b/include/media/rc-map.h
> > @@ -177,6 +177,7 @@ void rc_map_init(void);
> > #define RC_MAP_REAL_AUDIO_220_32_KEYS "rc-real-audio-220-32-keys"
> > #define RC_MAP_REDDO "rc-reddo"
> > #define RC_MAP_SNAPSTREAM_FIREFLY "rc-snapstream-firefly"
> > +#define RC_MAP_SNAZIO_TVPVR_PRO "rc-snazio-tvpvr-pro"
> > #define RC_MAP_STREAMZAP "rc-streamzap"
> > #define RC_MAP_TBS_NEC "rc-tbs-nec"
> > #define RC_MAP_TECHNISAT_USB2 "rc-technisat-usb2"
>
> That remote controller is same than rc-msi-tvanywhere-plus.c. If there
> is still some reason you need to duplicate it (like one keycode mapped
> differently), please add comment to file "this is almost similar than
> that keymap X, but for the reason Y we need to define new table".
>
> rc-pixelview.c seems to be also rather similar.
>
> Do you have some other receiver which returns full scan code? That
> keytable should be converted to some standard rc type (NEC?)
>
> regards
> Antti
>
--
Regards,
Mauro
next prev parent reply other threads:[~2014-03-11 14:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-09 16:06 [PATCH] saa7134: Add support for SnaZio TvPVR PRO POJAR GEORGE
2014-02-09 16:29 ` Anca Emanuel
2014-02-09 23:44 ` GEORGE
2014-02-09 23:52 ` GEORGE
2014-02-10 5:28 ` Antti Palosaari
2014-03-11 14:49 ` Mauro Carvalho Chehab [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-02-14 21:23 [PATCH] saa7134: Add support for Snazio " GEORGE
2014-02-09 16:11 [PATCH] saa7134: Add support for SnaZio " POJAR GEORGE
2014-02-08 19:12 [PATCH] saa7134: Add support for Snazio " GEORGE
2014-02-08 6:14 GEORGE
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=20140311114953.2f8d3535@samsung.com \
--to=m.chehab@samsung.com \
--cc=anca.emanuel@gmail.com \
--cc=crope@iki.fi \
--cc=geoubuntu@gmail.com \
--cc=linux-media@vger.kernel.org \
/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.