By Date: <-- -->
By Thread: <-- -->

[no subject]



El Viernes, 5 de Mayo de 2006 06:43, Nickolay V. Shmyrev escribió:
> Ð? Ð?Ñ?М, 05/05/2006 в 00:32 +0200, hermann pitton пОÑ?еÑ?:
> > Am Freitag, den 05.05.2006, 00:04 +0200 schrieb Peter Missel:
> > > On Thursday 04 May 2006 23:51, horacio wrote:
> > > > I do get the remote to work, but I don't seem to get different data
> > > > from the driver for different keys. I don't think this is just a mask
> > > > problem, because I have the same problem with no mask at all.
> > >
> > > You might have the same situation there that I had with the LifeView
> > > FlyDVB Trio ... the keydown flag coming in on a GPIO pin, but the
> > > actual key data requiring an I2C operation.
> > >
> > > Maintainers: Has the driver architecture been rearranged to even allow
> > > implementing this yet?
> > >
> > > regards,
> > > Peter
> >
> > Hi Peter,
> >
> > I was just looking at it too and I agree, there must have been something
> > changed on the card, since James had different gpio events and I
> > remember he was talking with Nickolay to get it right and obviously has
> > it still working.
> >
> > After removing the tuner shielding of the asus p7131 dual I only found
> > the 8pin chip marked 231\0290\423 you seem to have on the Trio too,
> > obviously involved in the antenna input switching.
> >
> > Since I don't even see a possible i2c device to talk to I'm pretty much
> > out of ideas and didn't try anything again.
> >
> > Cheers,
> > Hermann
>
> Well, that may be not i2c but gpio, for example, we have received the
> following code for key scanning from Gotview www.gotview.ru We failed to
> make it work mostly due to the lack of testers. As I see we need to
> reset gpio pin to allow key scan.
>
>
> BYTE ReadRemoteDataFromGPIO34(void)
> {
>
> #define RESETADDR 15
>
> BYTE ScanCode=0xFF;
> HRESULT hr;
> long isnotpressed=0;
>
> if (pGPIO)
> {
>
> hr=pGPIO->Reset();
> pGPIO->WriteGPIO(RESETADDR,1);
> pGPIO->WriteGPIO(RESETADDR,0);
>
> Sleep(25);
>
> if(bSaa7135)
> {
> isnotpressed=!ReadGPIO(4);
> }
> else
> {
> isnotpressed=ReadGPIO(14);
> }
>
> if (isnotpressed)
> {
> ScanCode = 0xFF;
> }
> else
> {
> if(bSaa7135)
> {
>
> BYTE mask, kvalue, gpion;
> int i;
> BYTE Result = 255;
>
> if (pGPIO)
> {
> mask = 0;
> kvalue = 0;
> for( i=9;i>=2;i--)
> {
> if (i == 3)continue;
> if (i == 4)continue;
> if (i == 5)continue;
> gpion = ReadGPIO(i);
> Sleep(25);
> kvalue = kvalue | gpion << mask;
> mask++;
> }
> gpion = ReadGPIO(3);
> kvalue = kvalue | gpion << mask;
> }
> ScanCode = kvalue;
> }
> else
> {
> ScanCode = GetGPIOMaskValue(8,13);
> }
>
> if(lastcode==ScanCode)presscounter++;
> else presscounter=0;
> }
>
> lastcode=ScanCode;
> hr=pGPIO->Reset();
>
> pGPIO->WriteGPIO(RESETADDR,1);
> pGPIO->WriteGPIO(RESETADDR,0);
>
> }
>
> if(bSaa7135)
> {
>
> return F35to34(ScanCode)-0x80;
> }
>
> return ScanCode;
>
> }
>
>
>
It is another problem, but can you take a look at:

http://linuxtv.org/pipermail/linux-dvb/2006-April/009300.html

Thanks.
Jose Alberto


--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request (at) redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list