public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Remote control not working for Terratec Cinergy C (2.6.37 Mantis driver)
@ 2011-05-03 22:42 Adrian C.
  2011-05-06 17:37 ` Marko Ristola
  0 siblings, 1 reply; 13+ messages in thread
From: Adrian C. @ 2011-05-03 22:42 UTC (permalink / raw)
  To: linux-media

On Wed, 2 Mar 2011, Marko Ristola wrote:

> So this means, that my remote control works, pressing key with hex 
> value 0x26 works.

It works.

> Unfortunately mantis_uart.c doesn't have IR input initialization at 
> all

But it does not work. How can it work and not work at the same time?


I have the Skystar HD2 (b), subsystem: 1ae4:0003 now, same chipset as 
Cinergy S2 and some others, VP-1041. Lirc failed with my old COM 
receiver so I tried to use the cards IR as fall-back, and of course I 
failed again. This was on 2.6.38.4.

Only information I found is 1 year old[1]. "IR was in flux" but it still 
doesn't work even though mantis pulls in all those ir-* modules, no 
input device is created.

Can someone fill us in, please, will it be supported this year?


1. http://www.mail-archive.com/linux-media@vger.kernel.org/msg14641.html

^ permalink raw reply	[flat|nested] 13+ messages in thread
* AW: Remote control not working for Terratec Cinergy C (2.6.37 Mantis driver)
@ 2011-05-20 13:24 Lou
  0 siblings, 0 replies; 13+ messages in thread
From: Lou @ 2011-05-20 13:24 UTC (permalink / raw)
  To: linux-media

Hello Chris

This applies fine against 2.6.39 stable, but the Twinhan VP-1041 uses the 
keymap of Twinhan DTV CAB CI, so it's not a perfect fit for the Terratec 
Cinergy S2 HD keymap. I assume from earlier postings in vdr-portal [1] Cinergy 
S2 HD and Skystar 2 HD do share the same keymappings.

Here's a paste of the VP-1041 keymap, as it used to work with s2-liplianin:


/* Twinhan VP-1041 */
static struct ir_scancode  ir_codes_mantis_vp1041[] = {
	{ 0x29, KEY_POWER},
	{ 0x28, KEY_FAVORITES},
	{ 0x30, KEY_TEXT},
	{ 0x17, KEY_INFO},		/* Preview */
	{ 0x23, KEY_EPG},
	{ 0x3b, KEY_F22},		/* Record List */

	{ 0x3c, KEY_1},
	{ 0x3e, KEY_2},
	{ 0x39, KEY_3},
	{ 0x36, KEY_4},
	{ 0x22, KEY_5},
	{ 0x20, KEY_6},
	{ 0x32, KEY_7},
	{ 0x26, KEY_8},
	{ 0x24, KEY_9},
	{ 0x2a, KEY_0},

	{ 0x33, KEY_CANCEL},
	{ 0x2c, KEY_BACK},
	{ 0x15, KEY_CLEAR},
	{ 0x3f, KEY_TAB},
	{ 0x10, KEY_ENTER},
	{ 0x14, KEY_UP},
	{ 0x0d, KEY_RIGHT},
	{ 0x0e, KEY_DOWN},
	{ 0x11, KEY_LEFT},

	{ 0x21, KEY_VOLUMEUP},
	{ 0x35, KEY_VOLUMEDOWN},
	{ 0x3d, KEY_CHANNELDOWN},
	{ 0x3a, KEY_CHANNELUP},
	{ 0x2e, KEY_RECORD},
	{ 0x2b, KEY_PLAY},
	{ 0x13, KEY_PAUSE},
	{ 0x25, KEY_STOP},

	{ 0x1f, KEY_REWIND},
	{ 0x2d, KEY_FASTFORWARD},
	{ 0x1e, KEY_PREVIOUS},		/* Replay |< */
	{ 0x1d, KEY_NEXT},		/* Skip   >| */

	{ 0x0b, KEY_CAMERA},		/* Capture */
	{ 0x0f, KEY_LANGUAGE},		/* SAP */
	{ 0x18, KEY_MODE},		/* PIP */
	{ 0x12, KEY_ZOOM},		/* Full screen */
	{ 0x1c, KEY_SUBTITLE},
	{ 0x2f, KEY_MUTE},
	{ 0x16, KEY_F20},		/* L/R */
	{ 0x38, KEY_F21},		/* Hibernate */

	{ 0x37, KEY_SWITCHVIDEOMODE},	/* A/V */
	{ 0x31, KEY_AGAIN},		/* Recall */
	{ 0x1a, KEY_KPPLUS},		/* Zoom+ */
	{ 0x19, KEY_KPMINUS},		/* Zoom- */
	{ 0x27, KEY_RED},
	{ 0x0C, KEY_GREEN},
	{ 0x01, KEY_YELLOW},
	{ 0x00, KEY_BLUE},
};
struct ir_scancode_table ir_codes_mantis_vp1041_table = {
	.scan = ir_codes_mantis_vp1041,
	.size = ARRAY_SIZE(ir_codes_mantis_vp1041),
};
EXPORT_SYMBOL_GPL(ir_codes_mantis_vp1041_table);


Maybe someone else can confirm this?


Regards

Lou@vdr-portal

[1] http://www.vdr-portal.de/board18-vdr-hardware/board13-
fernbedienungen/95304-falsches-mapping-mit-fb-von-skystar-hd2-unter-linux/


> Hello,
> 
> This patch is a rework of a old patch I've posted some time ago.
> It adds support for Remote-Control in the mantis driver and implements the
> new rc-API.
> The patch enables rc for the cards
> - vp1041
> - vp2033
> - vp2040
> 
> It's only tested with a Terratec Cinergy S2 HD.
> Would be nice to get some Feedback.
> 
> Regards
> Chris


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-07-14  7:59 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-03 22:42 Remote control not working for Terratec Cinergy C (2.6.37 Mantis driver) Adrian C.
2011-05-06 17:37 ` Marko Ristola
2011-05-10 21:30   ` Adrian C.
2011-05-11 12:32     ` AW: " Christoph Pinkl
2011-05-13 14:23     ` Christoph Pinkl
2011-05-21  1:15       ` Adrian C.
2011-05-21  7:04         ` Adrian C.
2011-05-21  7:23         ` Adrian C.
2011-05-21 16:19           ` Marko Ristola
2011-05-22 18:20             ` AW: " Christoph Pinkl
2011-05-23  0:02               ` Adrian C.
2011-07-14  7:59                 ` D. R.
  -- strict thread matches above, loose matches on Subject: below --
2011-05-20 13:24 Lou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox