support for remote in lifeview pci trio
hi,
i've been googling and trying some things during days with no luck.
i want to get the remote which comes with this card working, and i only found old posts like this one:
http://www.spinics.net/lists/vfl/msg29862.html
which assures that the patch gets the remote to work on that card.
i downloaded the latest v4l source code and tried to patch it with the code proposed on that post, but var names have changed and i don't have a clue on how to apply it properly.
i haven't seen any more recent post, so i guess it may still be in a to-do list, or may be it was rejected for some reason to go into the main-line.
Could anyone tell me if this patch will ever be included? or... what v4l version could i download to be able to patch it as described?
Thanks.
_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
Il Wednesday 07 January 2009 09:08:53 Jordi Moles Blanco ha scritto:
Quoted 10 lines
hi,
i've been googling and trying some things during days with no luck.
i want to get the remote which comes with this card working, and i only found old posts like this one:
http://www.spinics.net/lists/vfl/msg29862.html
which assures that the patch gets the remote to work on that card.
Hello, attached is the patch ported to 2.6.28, note that this is my very first time in c coding, then this may be an ugly piece of code (but at least works for me)...
Quoted 10 lines
i downloaded the latest v4l source code and tried to patch it with the code proposed on that post, but var names have changed and i don't have a clue on how to apply it properly.
i haven't seen any more recent post, so i guess it may still be in a to-do list, or may be it was rejected for some reason to go into the main-line.
Could anyone tell me if this patch will ever be included? or... what v4l version could i download to be able to patch it as described?
No, the reason is the polling code as already discussed on this list, then the patch is only for use of who want to apply it himself without any support...
Quoted 1 line
Thanks.
Bye Paolo
drivers/media/video/ir-kbd-i2c.c +19 -3
@@ -340,6 +340,7 @@ ir_type =IR_TYPE_RC5 ; ir_codes = ir_codes_fusionhdtv_mce;break ; +case 0x0b :case 0x7a :case 0x47 :case 0x71 :
@@ -450,16 +451,18 @@*/ static const int probe_bttv[] = {0x1a ,0x18 ,0x4b ,0x64 ,0x30 ,-1 }; -static const int probe_saa7134[] = {0x7a ,0x47 ,0x71 ,0x2d ,-1 }; +static const int probe_saa7134[] = {0x0b ,0x7a ,0x47 ,0x71 ,0x2d ,-1 };static const int probe_em28XX[] = {0x30 ,0x47 ,-1 };static const int probe_cx88[] = {0x18 ,0x6b ,0x71 ,-1 };static const int probe_cx23885[] = {0x6b ,-1 }; -const int *probe; +const int *probe =NULL ; +struct i2c_client c;struct i2c_msg msg = { .flags =I2C_M_RD , .len =0 , .buf =NULL , }; +unsigned char buf;int i, rc;switch (adap->id) {
@@ -485,8 +488,21 @@return 0 ; } +memset (&c,0 ,sizeof (c)); + c.adapter = adap; +for (i =0 ;-1 != probe[i]; i++) { - msg.addr = probe[i]; + c.addr = probe[i]; + msg.addr = c.addr; + +/* if the card is a FlyDVB Trio... */ +if (c.adapter->id ==I2C_HW_SAA7134 && probe[i] ==0x0b ) { +/* ...enable the ir */ + buf =0 ; +if (1 !=i2c_master_send (&c,&buf,1 )) +dprintk (1 ,"Unable to enable ir receiver.\n" ); + } + rc =i2c_transfer (adap, &msg,1 ); dprintk(1,"probe 0x%02x @ %s: %s\n", probe[i], adap->name,
drivers/media/video/saa7134/saa7134-cards.c +1 -0
@@ -5971,6 +5971,7 @@case SAA7134_BOARD_UPMOST_PURPLE_TV :case SAA7134_BOARD_MSI_TVATANYWHERE_PLUS :case SAA7134_BOARD_HAUPPAUGE_HVR1110 : +case SAA7134_BOARD_FLYDVB_TRIO :case SAA7134_BOARD_BEHOLD_607_9FM :case SAA7134_BOARD_BEHOLD_M6 :case SAA7134_BOARD_BEHOLD_M63 :
drivers/media/video/saa7134/saa7134-i2c.c +1 -0
@@ -333,6 +333,7 @@/* Am I an i2c remote control? */ switch (client->addr) { +case 0x0b :case 0x7a :case 0x47 :case 0x71 :
drivers/media/video/saa7134/saa7134-input.c +49 -0
61 lines not on this page · raw message
_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead [email protected] [email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb