public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Samuel Rakitnican <semirocket@gmail.com>
To: "linux-media@vger.kernel.org" <linux-media@vger.kernel.org>
Subject: Help on mapping Media Center remote
Date: Fri, 10 Jul 2009 18:40:35 +0200	[thread overview]
Message-ID: <op.uwu1xurj80yj81@localhost> (raw)

Hi,

With the huge help of Hermann, I managed to implement this remote with  
it's new card Compro VideoMate Vista T750F card=169 (just a copy of T750  
with a diff keymap). I successfully compiled v4l and managed to get this  
remote to work.

I need some help on mapping specific MCE buttons, since I don't know how  
remotes on linux function, or how MCE function. I just ran into this  
adventure, and stuck here.

Please, reply with missing values, correcting the wrong ones (if there are  
any) so that I can finish keymap for this remote. Or with a hint what to  
enter here.

Thanks in advance

---------------------------------------

Picture of the remote: http://i28.tinypic.com/1z5j500.jpg


/*
   Number in commment coresponds to remote button
   found in mce.gif and T750F-ENG.pdf manual.
*/

	[ 0x1d ] = KEY_0,
	[ 0x1e ] = KEY_1,
	[ 0x1f ] = KEY_2,
	[ 0x20 ] = KEY_3,
	[ 0x21 ] = KEY_4,
	[ 0x22 ] = KEY_5,
	[ 0x23 ] = KEY_6,
	[ 0x24 ] = KEY_7,
	[ 0x25 ] = KEY_8,
	[ 0x26 ] = KEY_9,

	[ 0x01 ] = KEY_POWER,	// 10
//	[ 0x31 ] =	/* 11 "Videos (MCE)"      */
//	[ 0x33 ] =	/* 12 "Radio (MCE)"       */
//	[ 0x2f ] =	/* 13 "Music (MCE)"       */
//	[ 0x30 ] =	/* 14 "Pictures (MCE)"    */
//	[ 0x2d ] =	/* 15 "Recorded TV (MCE)" */
//	[ 0x17 ] =	/* 16 "MCE Guide"         */
//	[ 0x2c ] =	/* 17 "Live TV (MCE)"     */
//	[ 0x2b ] =	/* 18 "DVD Menu (MCE)"    */
//	[ 0x32 ] =	/* 19 "DVD Sub (MCE)"     */
	[ 0x11 ] = KEY_UP,	// 20
	[ 0x13 ] = KEY_LEFT,	// 21
	[ 0x12 ] = KEY_DOWN,	// 22
	[ 0x14 ] = KEY_RIGHT,	// 23
	[ 0x15 ] = KEY_OK,	// 24
	[ 0x16 ] = KEY_BACK,	// 25
//	[ 0x02 ] =		/* 26 "Media Center"      */
//	[ 0x04 ] =		// 27  >> TV app in win goes fullscreen/restore, or in  
manual says "More" for MCE
	[ 0x05 ] = KEY_VOLUMEUP,	// 28
	[ 0x06 ] = KEY_VOLUMEDOWN,	// 29
	[ 0x03 ] = KEY_MUTE,		// 30
	[ 0x07 ] = KEY_CHANNELUP,	// 31
	[ 0x08 ] = KEY_CHANNELDOWN,	// 32
	[ 0x0c ] = KEY_RECORD,	// 33
	[ 0x0e ] = KEY_STOP,	// 34
	[ 0x0a ] = KEY_REWIND,	// 35
	[ 0x0b ] = KEY_PLAY,	// 36
	[ 0x09 ] = KEY_FASTFORWARD,	// 37
	[ 0x10 ] = KEY_PREVIOUSSONG,	/* 38 "Skip rewind"       */
	[ 0x0d ] = KEY_PAUSE,		// 39
	[ 0x0f ] = KEY_NEXTSONG,	/* 40 "Skip Forward"      */
//	[ 0x2a ] =		/* 41 The "*" button      */
//	[ 0x29 ] =		/* 42 The "#" button       */
	[ 0x27 ] = KEY_CLEAR,	// 43
//	[ 0x34 ] =		// 44   >> This one turn on/off TV app in win
	[ 0x28 ] = KEY_ENTER,	// 45
	[ 0x19 ] = KEY_RED,	// 46
	[ 0x1a ] = KEY_GREEN,	// 47
	[ 0x1b ] = KEY_YELLOW,	// 48
	[ 0x1c ] = KEY_BLUE,	// 49
	[ 0x18 ] = KEY_TEXT,	// 50 "Teletext on/off"

                 reply	other threads:[~2009-07-10 16:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=op.uwu1xurj80yj81@localhost \
    --to=semirocket@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox