[linux-dvb] Re: Problem with Avermedia 777 remote (saa7134-input.c)

Jose Alberto Reguero jareguero at telefonica.net
Wed May 10 20:58:55 CEST 2006


El Sábado, 6 de Mayo de 2006 12:52, Peter Missel escribió:
> On Saturday 06 May 2006 12:35, Jose Alberto Reguero wrote:
> > I found the mask_keycode: 0x02F200
> > Not mask_keydown bit.
> > Not mask_keydown bit.
> > When the card is working some bits of the read gpio  are changing.
> >
> > In line 58 of saa7134-input.c:
> >
> > gpio = saa_readl(SAA7134_GPIO_GPSTATUS0 >> 2);
> >
> > always return the last key pressed.
> >
> > There is a way to clear the last key pressed from gpio?
> > How I can know if a key is pressed?
>
> You need to find out how the card is flagging "key down". Or maybe the card
> needs you to operate an output GPIO pin to acknowledge the read.
>
> This is all card specific, so you either need to spy on how the Windows
> driver does it, or reverse engineer the hardware.
>
> regards,
> Peter

Thanks, I found it. The attached patch work.
There is still a problem. When the card is working the gpio is changing 
constantly, and generate a lot of debug output.

saa7134[0]/ir: build_key gpio=0x1c14f mask=0x2f200 data=24
saa7134[1]/ir: build_key gpio=0x3b3c5 mask=0x2f200 data=55
saa7134[2]/ir: build_key gpio=0x13f326 mask=0x2f200 data=63
saa7134[0]/ir: build_key gpio=0x1c1d8 mask=0x2f200 data=24
saa7134[1]/ir: build_key gpio=0x13b34f mask=0x2f200 data=55
saa7134[2]/ir: build_key gpio=0x3f3ff mask=0x2f200 data=63
saa7134[0]/ir: build_key gpio=0x11c120 mask=0x2f200 data=24
saa7134[1]/ir: build_key gpio=0x3b33d mask=0x2f200 data=55
saa7134[2]/ir: build_key gpio=0x13f3e6 mask=0x2f200 data=63
saa7134[0]/ir: build_key gpio=0x11c1d8 mask=0x2f200 data=24
saa7134[1]/ir: build_key gpio=0x13b302 mask=0x2f200 data=55
saa7134[2]/ir: build_key gpio=0x3f350 mask=0x2f200 data=63
saa7134[0]/ir: build_key gpio=0x1c15b mask=0x2f200 data=24
saa7134[1]/ir: build_key gpio=0x3b3b7 mask=0x2f200 data=55
saa7134[2]/ir: build_key gpio=0x13f3cc mask=0x2f200 data=63
...........................................

Signed-off-by: Jose Alberto Reguero <jareguero at telefonica.net>

Thanks
Jose Alberto



-------------- next part --------------
A non-text attachment was scrubbed...
Name: aver777remote.diff
Type: text/x-diff
Size: 1418 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20060510/caa7faae/aver777remote.bin


More information about the linux-dvb mailing list