[linux-dvb] Re: Budget-AV CI problems

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

 



s?ndag 24. juli 2005, 15:18, skrev Andrew de Quincey:
> Another thing I noticed:
> 
> in ciintf_slot_reset(), you say at the top:
>         int timeout = 50; // 5 seconds (4.4.6 Ready)
> 
> 
> However, lower down you do:
>         /* This should have been based on pin 16 READY of the pcmcia port,
>          * but AFAICS it is not routed to the saa7146 */
>         while (--timeout > 0 && ciintf_read_attribute_mem(ca, slot, 0) != 
> 0x1d)
>                 msleep(100);
> 
> 
> Isn't that only going to sleep for 50 centiseconds as opposed to 50 seconds?

Looks like you are right, replace with some more clever coding!

> BTW: in ciintf_slot_reset(), this piece of code is fine:
>         saa7146_setgpio(saa, 0, SAA7146_GPIO_OUTHI); /* Vcc off */
>         msleep(2);
>         saa7146_setgpio(saa, 0, SAA7146_GPIO_OUTLO); /* Vcc on */
> 
> I was meaning the other calls to set GPIO0 high that I have to remove to make 
> it work again - leaving the above code in works fine on my card.

Cool!

Kenneth



[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux