Re: Support for Leadtek DTV1000S ?

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

 



On Donnerstag, 2. Oktober 2008, Plantain wrote:
>
> Hey,
>
> I'm not actually able to code in C, but I've spent the last 24 hours
> puddling around trying to get somewhere. I believe I've added everything
> that is needed for the card to be detected, but it's not detecting it,
> even if I specify it with card=152 (the ID I've added). I have got the
> code to compile at least, which I'm pretty proud of :)
>
> I managed to get regspy to work (needed to revert 64bit vista to 32bit
> XP), but the viewing software that came with the card just crashes on
> 32bit XP. I've built a small wiki page (with highres images) detailing
> my progress, but I've really just hit a brick wall. Wikipage at
> http://www.linuxtv.org/wiki/index.php/WinFast_DTV_1000_S
>
> Short of learning C (which I am very slowly doing), I don't see anyway
> forwards under my direction, so I've attached my efforts in the hope
> someone else can take this forwards. From my limited understanding I've
> provided all the necessary information for someone to finish it, and if
> not I'll happily dig up anything else needed. I'm not familiar with any
> version control system/patching, so I've just hg diff > file.diff, I
> hope this is adequate.
>
> I'm on #linuxtv @ freenode IRC for a significant portion of the day if
> anyone has pointers for me/wants to ask questions about the card.
>

Looking at your regspy output
109.     SAA7134_GPIO_GPMODE:             82000000   (10000010 00000000 
00000000 00000000)                
110.     SAA7134_GPIO_GPSTATUS:           02132054   (00000010 00010011 
00100000 01010100)         

I suggest you change your gpio code like this:

               saa_andorl(SAA7134_GPIO_GPMODE0 >> 2,   0x82000000, 
0x82000000);
               saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x02000000, 
0x02000000);

So this at least sets the directions of gpios as used in windows, and outputs 
the same values on the gpios configured as output. That should work better 
than your copy-and-pasted numbers from another card.

But it still can be you need to pull some pins high or low for some time at 
init to get parts reset.

You also could try adding a small wait time after writing gpio values.
e.g. msleep(500);

Good luck
Matthias

_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

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

  Powered by Linux