public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthias Schwarzott <zzam@gentoo.org>
To: linux-dvb@linuxtv.org
Subject: Re: [linux-dvb] Support for Leadtek DTV1000S ?
Date: Thu, 2 Oct 2008 19:15:39 +0200	[thread overview]
Message-ID: <200810021915.40147.zzam@gentoo.org> (raw)
In-Reply-To: <48E4A4A4.8030003@gmail.com>

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@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

  parent reply	other threads:[~2008-10-02 17:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-01 11:25 [linux-dvb] Support for Leadtek DTV1000S ? Plantain
2008-10-01 15:18 ` Steven Toth
     [not found]   ` <48E3A687.9000703@gmail.com>
2008-10-01 18:05     ` Steven Toth
2008-10-01 22:41       ` hermann pitton
2008-10-02 10:38         ` Plantain
2008-10-02 14:29           ` Mitchell, J.G.
2008-10-02 14:42             ` Plantain
2008-10-02 17:15           ` Matthias Schwarzott [this message]
2008-10-02 23:14             ` hermann pitton
2008-10-03  3:12               ` Damien Morrissey
  -- strict thread matches above, loose matches on Subject: below --
2008-12-04 12:19 Vince Mari
     [not found] ` <18793.39119.727237.615925@gargle.gargle.HOWL>
2009-01-12  1:32   ` Vince Mari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200810021915.40147.zzam@gentoo.org \
    --to=zzam@gentoo.org \
    --cc=linux-dvb@linuxtv.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox