public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Steven Toth <stoth@linuxtv.org>
To: stev391@email.com
Cc: linux-dvb@linuxtv.org
Subject: Re: [linux-dvb] [PATCH-TESTERS-REQUIRED] Leadtek Winfast PxDVR 3200 H - DVB Only support
Date: Sun, 10 Aug 2008 09:26:15 -0400	[thread overview]
Message-ID: <489EEC77.4080403@linuxtv.org> (raw)
In-Reply-To: <20080810053101.8695447808F@ws1-5.us4.outblaze.com>

stev391@email.com wrote:
>> ----- Original Message -----
>> From: "Steven Toth" <stoth@linuxtv.org>
>> To: stev391@email.com
>> Subject: Re: [linux-dvb] [PATCH-TESTERS-REQUIRED] Leadtek Winfast PxDVR 3200 H - DVB Only support
>> Date: Tue, 05 Aug 2008 10:30:57 -0400
>>
>>
>> stev391@email.com wrote:
>>> Steve,
>>>
>>> I have reworked the tuner callback now against your branch at:
>>> http://linuxtv.org/hg/~stoth/v4l-dvb
>>>
>>> The new Patch (to add support for this card) is attached inline below for testing (this is a 
>>> hint Mark & Jon), I have not provided a signed-off note on purpose as I want to solve the 
>>> issue mentioned in the next paragraph first.
>>>
>>> Regarding the cx25840 module; the card doesn't seem to initialise properly (no DVB output and 
>>> DMA errors in log) unless I have this requested.  Once the card is up and running I can unload 
>>> all drivers, recompile without the cx25840 and load and it will work again until I power off 
>>> the computer and back on again (This has been tedious trying to work out which setting I had 
>>> missed).  Is there some initialisation work being performed in the cx25840 module that I can 
>>> incorporate into my patch to remove this dependency? Or should I leave it as is?
>>>
>>> Anyway nearly bedtime here.
>> The patch looks good, with the exception of requesting the cx25840.
>>
>> I've always been able to run DVB without that driver being present, so something is odd with the 
>> Leadtek card. I'm not aware of any relationship between the cx25840 driver and the DVB core.
>>
>> You're going to need to find the magic register write that the cx25840 is performing so we can 
>> discuss here. I'd rather we figured that out cleanly, than just merged the patch and have the 
>> problem linger on.
>>
>> Other than that, good patch.
>>
>> - Steve
> 
> Steve,
> 
> I have found the lines (starting at line 1441) within cx25840-core.c that effects the DVB working or not working. These lines are:
> 	if (state->is_cx23885) {
> 		/* Drive GPIO2 direction and values */
> 		cx25840_write(client, 0x160, 0x1d);
> 		cx25840_write(client, 0x164, 0x00);
> 	}
> 
> If I comment these lines out in the code, the DVB side doesn't work.  I have tried incorporating these register writes into various places in the cx23885 code (cx23885_gpio_setup(), cx23885_card_setup() and dvb_register()) as the following lines:
> cx_write(0x160, 0x1d);
> cx_write(0x164, 0x00);
> 
> But this does not allow the card to work.
> 
> I have also commented out/ removed all of the code in cx25840-core.c except for the read, write, probe(now only contains the above cx25840_writes) and remove functions and the various struct configs, to ensure that it is not something else contributing to the dependency.
> 
> Have a used cx_write correctly?
> 
> I have also noticed that the following card also uses the cx25840 without any analog support in the driver:
> CX23885_BOARD_HAUPPAUGE_HVR1700
> 
> Perhaps the person who included support for this card has already gone down this track...
> 
> There are two possible directions that I would like to take from here:
> 1) Submit the patch as is with the cx25840 dependency
> 2) Work on why the registers writes aren't working. (However this is out of my depth of knowledge and will need some guidance or pass it onto someone else).

OK, so they tied the demod reset to the GPIO on the avcore, rather than 
a regular GPIO on the pcie bridge itself. I've only ever seen one other 
card do that (which you found - the HVR1700) because Hauppauge ran out 
of GPIO's on the bridge itself.

In this new case, for the Leadtek, I accept that we'll have to 
request_module for the card.

You should also add a comment to the _gpio_setup() code (where generally 
I try to ensure all card GPIO's are document), to say that the GPIO is 
on the AVCore (like the HVR1700). See the HVR1700 example comments.

One comment the bitmask in the tuner reset looks unusually long for 
resetting the xc3028. 70404, and it dosn't match the value used in your 
_gpio_setup() implementation (0x04).

So three very minor things to get this patch accepted:
1. Change 70404 to 4, this is clean.
2. Add the cx25840 request_module() code back.
3. Update the comments in _gpio_setup() to indicate the GPIO for the 
zilink part os on the AVcore.

Good work Steve, thanks for helping. Please publish the patch to this 
mailing list (with your sign-off) and I'll put up an official tree for 
retest and final merge.

- Steve

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

  reply	other threads:[~2008-08-10 13:27 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-10  5:31 [linux-dvb] [PATCH-TESTERS-REQUIRED] Leadtek Winfast PxDVR 3200 H - DVB Only support stev391
2008-08-10 13:26 ` Steven Toth [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-08-26  6:57 stev391
2008-08-26 14:24 ` Steven Toth
2008-08-18 21:24 stev391
2008-08-18  0:00 stev391
2008-08-18  4:25 ` Robert Golding
2008-08-16  5:14 stev391
2008-08-16  1:35 stev391
2008-08-16  4:14 ` Robert Golding
2008-08-16 10:46   ` Jonathan Hummel
2008-08-17  4:01     ` Robert Golding
2008-08-14 23:36 stev391
2008-08-15 13:49 ` Jonathan Hummel
2008-08-13 21:49 stev391
2008-08-14 11:18 ` Jonathan Hummel
2008-08-13  8:02 stev391
2008-08-12  4:22 stev391
2008-08-12 16:33 ` Steven Toth
2008-08-11 23:59 stev391
2008-08-13 12:46 ` Jonathan Hummel
2008-08-10  1:42 stev391
2008-08-11 13:36 ` Jonathan Hummel
     [not found] <1946053.01217974303703.JavaMail.mark@trogdor.carbonaro.org>
2008-08-05 21:50 ` Mark Carbonaro
2008-08-05 21:33 stev391
2008-08-05 21:37 ` Steven Toth
2008-08-06 11:27 ` Mark Carbonaro
     [not found] <24526361.241217944963449.JavaMail.mark@trogdor.carbonaro.org>
2008-08-05 13:47 ` Mark Carbonaro
2008-08-05 11:47 stev391
2008-08-05 14:30 ` Steven Toth
     [not found] <1292178.61217937203262.JavaMail.mark@trogdor.carbonaro.org>
2008-08-05 11:34 ` Mark Carbonaro
2008-08-05 12:21   ` Jonathan Hummel
2008-08-04 21:15 stev391
2008-08-04 11:34 stev391
2008-08-04 14:35 ` Steven Toth

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=489EEC77.4080403@linuxtv.org \
    --to=stoth@linuxtv.org \
    --cc=linux-dvb@linuxtv.org \
    --cc=stev391@email.com \
    /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