Re: New TV713X Remote Control‏

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Em 30-11-2010 11:44, Richard Zidlicky escreveu:
> On Tue, Nov 30, 2010 at 01:53:12PM +0100, Miguel Ãngel FernÃndez wrote:
> 
>>  
>> And, what is more. Only when the module is loaded, if I push some buttons of the remote I have this
>> output in dmesg:
>> [  450.228029] i2c IR (KNC One): unknown key: key=0x03 raw=0x03 down=1
>> [  450.288526] i2c IR (KNC One): unknown key: key=0x03 raw=0x03 down=0
>> [  451.248534] i2c IR (KNC One): unknown key: key=0x00 raw=0x00 down=1
>> [  451.308027] i2c IR (KNC One): unknown key: key=0x00 raw=0x00 down=0
>>  
>> But irw has this output:
>> sudo irw
>> connect: No such file or directory
> 
> you do not have lircd running. So make lircd run with the correct device and see if you can
> go through the irrecord process. irw will not work without some keycodes listed in lircd.conf

Huh? Lircd is not needed for the IR to work. All it needs is to fix the RC remote keycode table.
Once fixed, every time someone would use the board, the IR will work.

Michel,

By default, the driver will use an empty table, unless something else is specified at saa7134-input.c.

All you need to do is to add an extra case to saa7134_probe_i2c_ir, specifying your IR keytable.

Something like:
void saa7134_probe_i2c_ir(struct saa7134_dev *dev)
{
	...
	case SAA7134_BOARD_TEVION_DVBT_220RF:
		dev->init_data.name = "Tevion/Kworld/Conceptronic DVB-T 220RF";
		dev->init_data.ir_codes = RC_MAP_KWORLD_PLUS_TV_ANALOG;
		info.addr = 0x30;
		break;

The actual name of the keymap (RC_MAP_KWORLD_PLUS_TV_ANALOG) may need to be changed. Take a look at 
drivers/media/rc/keymaps/ for the existing keymaps. Maybe your IR is like this one:
	drivers/media/rc/keymaps/rc-kworld-plus-tv-analog.c

You basically need to type each key on your remote, and check for the message,
comparing the scancode with the key name. If none of the existing maps match, just copy one
file with another name, edit it, and add your entries. Don't forget to add it to drivers/media/rc/keymaps/Makefile.

After having it fixed, please send us the patch, for its addition upstream.

Thanks,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux