public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: "Samuel Rakitnican" <samuel.rakitnican@gmail.com>
To: "linux-media@vger.kernel.org" <linux-media@vger.kernel.org>
Subject: Re: (Saa7134) Re: ADS-Tech Instant TV PCI, no remote support
Date: Tue, 08 Sep 2009 19:31:42 +0200	[thread overview]
Message-ID: <op.uzx8a4nr6dn9rq@crni> (raw)
In-Reply-To: <4AA683BD.6070601@gmail.com>

On Tue, 08 Sep 2009 18:18:05 +0200, Morvan Le Meut <mlemeut@gmail.com>  
wrote:

[...]

Since it doesn't work with thoses keycodes, i'm trying it with  
"ir_codes_adstech_dvb_t_pci". I'm sure it won't work ( it would be toot  
easy otherwise  ) but since the remote looks the same ...
If by chance it work, i'll try to better document what i did for someone  
to write a patch. ( Or at least, to serve as a reminder the next time i'll  
encounter the problem  )


Hi,

If gpio's are correct, than all you need to do is write a new keymap.

These is how I did it: If codes from original keymap are wrong erase the  
keycodes in ir-keymaps.c, but leave the header, pointer or whatever is  
called. In your case like that:

/* Sylvain Vignaud <sylvain@vignaud.org */
static IR_KEYTAB_TYPE AdsInstantTvPci_codes[IR_KEYTAB_SIZE] = {
	// Buttons are in the top to bottom physical order
	// Some buttons return the same raw code, so they are currently
	

};

   Compile/install/load the drivers. You should get something like these in  
dmesg:

dmesg example for a single button pressed (my card):
saa7134 IR (Compro Videomate DV: unknown key: key=0x29 raw=0x29 down=1
saa7134 IR (Compro Videomate DV: unknown key: key=0x29 raw=0x29 down=0

The keycode (0x29) must be unique for every button pressed, and this is  
what you write in ir-keymaps.c e.g.

	[0x29] = KEY_POWER,     /* power       */
	
There has been standardization of keys recently, so this is how things  
must be mapped now:
	(http://linuxtv.org/wiki/index.php/Remote_Controllers)

Read also:
	(http://linuxtv.org/wiki/index.php/Remote_controllers-V4L)


  reply	other threads:[~2009-09-08 17:31 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-07 16:59 ADS-Tech Instant TV PCI Morvan Le Meut
2009-09-08  8:25 ` (Saa7134) Re: ADS-Tech Instant TV PCI, no remote support Morvan Le Meut
2009-09-08  9:51   ` Samuel Rakitnican
2009-09-08 10:04     ` Morvan Le Meut
2009-09-08 10:38       ` Morvan Le Meut
2009-09-08 16:18         ` Morvan Le Meut
2009-09-08 17:31           ` Samuel Rakitnican [this message]
2009-09-08 17:35           ` Morvan Le Meut
2009-09-08 17:46             ` Morvan Le Meut
2009-09-08 18:25               ` Morvan Le Meut
2009-09-09  8:31             ` Morvan Le Meut
2009-09-09  9:03               ` Morvan Le Meut
2009-09-09  9:04               ` semiRocket
2009-09-09  9:15                 ` Morvan Le Meut
2009-09-09  9:33                   ` Morvan Le Meut
2009-09-09 14:57                     ` Morvan Le Meut
     [not found]                       ` <op.uzzz96se6dn9rq@crni>
2009-09-09 17:09                         ` Morvan Le Meut
2009-09-09 21:00                           ` Morvan Le Meut
2009-09-10  8:38                             ` Morvan Le Meut
2009-09-10 15:22                               ` (Saa7134) Re: ADS-Tech Instant TV PCI, no remote support, no idea what to try Morvan Le Meut
2009-09-11  7:54                                 ` Morvan Le Meut
2009-09-12  8:14                                   ` (Saa7134) Re: ADS-Tech Instant TV PCI, no remote support, giving up Morvan Le Meut
2009-09-13  4:15                                     ` hermann pitton
2009-09-13 21:59                                       ` Morvan Le Meut
2009-09-13 22:41                                         ` hermann pitton
2009-09-14  7:33                                           ` Morvan Le Meut
2009-11-18  9:55                                   ` Morvan Le Meut

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.uzx8a4nr6dn9rq@crni \
    --to=samuel.rakitnican@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