From: Hartmut Hackmann <hartmut.hackmann@t-online.de>
To: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Michael Krufky <mkrufky@linuxtv.org>,
Linux and Kernel Video <video4linux-list@redhat.com>,
LInux DVB <linux-dvb@linuxtv.org>
Subject: Re: [RFC] TDA8290 / TDA827X with LNA: testers wanted
Date: Thu, 20 Mar 2008 21:41:19 +0100 [thread overview]
Message-ID: <47E2CBEF.3090609@t-online.de> (raw)
In-Reply-To: <20080319224222.581d7b85@gaivota>
HI, Mauro
Mauro Carvalho Chehab schrieb:
> On Thu, 20 Mar 2008 02:23:59 +0100
> Hartmut Hackmann <hartmut.hackmann@t-online.de> wrote:
>
>>> On your patch, you're just returning, if dev=NULL, at saa7134 callback function. IMO, the correct would be to
>>> print an error message and return. Also, we should discover why dev is being
>>> null there (I'll try to identify here - the reason - yet, I can't really test,
>>> since the saa7134 boards I have don't need any callback.
>> That's not the point. In the call in tda827x.c tda827xa_lna_gain(), the argument
>> did not point to the saa7134_dev structure as the function expected. I added
>> the check for NULL because only at the very first call, the pointer is still
>> not valid. I did not check this carefully but i guess this is a matter of the
>> initilization sequence of the data structures. IMHO yes, we should understand this
>> sometime but this does not have priority because i am sure that the NULL pointer
>> occurs only during initialization.
>
> This is caused by a patch conflict between hybrid redesign and the merge of
> xc3028 support. The enclosed experimental patch fixes the tuner_callback
> argument, on linux/drivers/media/dvb/frontends/tda827x.c.
> It should also fix the priv argument on saa7134_tuner_callback(). I can't test
> the saa7134 part here, due to the lack of a saa7134 hardware that needs a
> callback.
>
> The patch also intends to make xc3028 easier to use. That part is still not
> fully working. I should finish this patch tomorrow.
>
>>>>> I still need to send a patchset to Linus, after testing compilation
>>>>> (unfortunately, I had to postpone, since I need first to free some
>>>>> hundreds of Mb on my HD on my /home, to allow kernel compilation).
>>>>> Hopefully, I'll have some time tomorrow for doing a "housekeeping".
>>>>>
>>>> Unfortunately, i deleted you mails describing what went to linux and i don't
>>>> have the RC source here :-(
>>> You may take a look on master branch on my git tree. I'm about to forward him a
>>> series of patches. Hopefully, 2GB free space will be enough for a full kernel
>>> compilation. I'll discover soon...
>>>
>> Jep. Meanwhile Michael confirmed that the problem is not in mainstream,
>> so there is no reason to hurry.
>
> Yes.
>
>> But we should have a bigger audience for my latest changes, so i will send
>> you a pull request in a minute.
>
> Could you please test my patch first? Having the same arguments for all
> callback functions avoid future mistakes.
>
> ---
> [RFC] Fix tuner_callback for tda827x
>
> Signed-off-by Mauro Carvalho Chehab <mchehab@infradead.org>
>
<snip>
Your patch does not completely apply for me, it fails in cx88-dvb.c
I had a close look and found that we are going in the same direction.
- The change in tda827x is the same as i did.
- In saa7134-cards.c your patch is right. My version just worked by accident.
I corrected this in my repository.
By the way: the dev pointer is NULL during initialization is gone.
I tested again and things work for me.
I would recommend the following:
- You pull from my repository (sent you the request yesterday)
- You apply the patch *except* the changes in tda827x.c, saa7134-cards.c
and saa7134-dvb.c. Afterwards we should be fine.
My other changes to tda827x and saa7134-dvb.c are not only cosmetic. It merged
the _lna_gain functions for analog and dvb and adapt the data structures.
What do you think?
I will be out from friday to monday.
Best regards
Hartmut
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
next prev parent reply other threads:[~2008-03-20 20:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-19 0:40 [RFC] TDA8290 / TDA827X with LNA: testers wanted Hartmut Hackmann
2008-03-19 0:54 ` Michael Krufky
2008-03-19 1:33 ` [linux-dvb] " Hartmut Hackmann
2008-03-19 4:20 ` Michael Krufky
2008-03-19 21:49 ` Hartmut Hackmann
2008-03-19 21:59 ` mkrufky
2008-03-19 21:59 ` mkrufky
2008-03-19 4:25 ` Mauro Carvalho Chehab
2008-03-19 22:16 ` Hartmut Hackmann
2008-03-19 22:38 ` Mauro Carvalho Chehab
2008-03-20 1:23 ` Hartmut Hackmann
2008-03-20 1:42 ` Mauro Carvalho Chehab
2008-03-20 20:41 ` Hartmut Hackmann [this message]
2008-03-21 11:21 ` Mauro Carvalho Chehab
2008-03-27 0:14 ` Hartmut Hackmann
2008-03-27 1:04 ` Mauro Carvalho Chehab
2008-03-19 9:50 ` [linux-dvb] " Ian Haywood
2008-03-19 21:34 ` hermann pitton
2008-03-20 10:34 ` [linux-dvb] Kworld 220RF not tuning Ian Haywood
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=47E2CBEF.3090609@t-online.de \
--to=hartmut.hackmann@t-online.de \
--cc=linux-dvb@linuxtv.org \
--cc=mchehab@infradead.org \
--cc=mkrufky@linuxtv.org \
--cc=video4linux-list@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.