'key repeat' in lirc

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



It is slightly off topic as it is more 'lirc' issue than bttv issue.
Nevertheless it still deals with bttv as well, and besides I got no
responses at all from lirc-list@xxxxxxxxxxxxxxxxxxxxx where I send it
before, so I hope maybe I would get some input here instead.

The issue is that I'm trying to add remote control support for my tv card:
	Brand : Phoebe
	        www.phoebemicro.com
	Model:  TV Master
	        CPH030
        BT Bt848A KPF VIDEO DECODER BF7203.2 9809 KOREA

I got pretty much everything working. That is, I press key in remote, it
will get regonized as some id, and processed appropriately.

However, the big problem is repeat stuff, and I'm wondering what's
"The Right Way(tm)" to solve this problem.

Right now if I press a button on remote then the card will put the value
in GPIO_DATA, and that's about it. I was playing with bt848are.exe under
windows, and it does not seem to me that my tv card has "key repeat" bit
among other gpio bits to be set if I keep the button pressed continuously.

The issue is how the lirc_gpio should regonize that the key has been
pressed just once, and it was not pressed again.

Right now lirc_gpio will read off GPIO_DATA register, find the key and
then pass it to userland, on second request it will read register again,
again find the data and pass it to user land and so on... ad infinitum.
Just as if the key was pressed over and over again all the time.

What's the best way to solve this problem? Some ideas I was toying with
was to try clear GPIO_DATA register. Another idea was to just look if the
contest of register changed, and only if this happens report a new key
(though in this case key-repeat would not work)

-- 
Adam
http://www.eax.com	The Supreme Headquarters of the 32 bit registers






[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux