From: Mauro Carvalho Chehab <mchehab@infradead.org>
To: "Michael Krufky" <mkrufky@linuxtv.org>
Cc: video4linux-list@redhat.com, David Engel <david@istwok.net>,
Jason Pontious <jpontious@gmail.com>
Subject: Re: Kworld 115-No Analog Channels
Date: Mon, 2 Jun 2008 17:51:47 -0300 [thread overview]
Message-ID: <20080602175147.05844edf@gaivota> (raw)
In-Reply-To: <37219a840806021304t605b67e2hed8f3db1a4912955@mail.gmail.com>
On Mon, 2 Jun 2008 16:04:49 -0400
"Michael Krufky" <mkrufky@linuxtv.org> wrote:
> On Sun, Jun 1, 2008 at 4:46 PM, hermann pitton <hermann-pitton@arcor.de> wrote:
> > Am Sonntag, den 01.06.2008, 15:10 -0400 schrieb Michael Krufky:
> >> On Sun, Jun 1, 2008 at 3:03 PM, David Engel <david@istwok.net> wrote:
> >> > On Sun, Jun 01, 2008 at 03:18:45AM -0400, Michael Krufky wrote:
> >> >> On Fri, May 30, 2008 at 10:58 AM, David Engel <david@istwok.net> wrote:
> >> >> > I ran into a similar (probably the same) problem last week. My search
> >> >> > of the list archives revealed a known tuner detection regression in
> >> >> > 2.6.25. It's supposed to be fixed in Mercurial but I didn't test it
> >> >> > because it was simpler to just go back to 2.6.24.x. I don't know why
> >> >> > the fix hasn't made it into 2.6.25.x yet.
> >> >>
> >> >> Which fix? What problem does it fix? More details, please :-)
> >> >
> >> > When I ran into the problem last week, I went searching and ran across
> >> > this thread:
> >> >
> >> > https://www.redhat.com/mailman/private/video4linux-list/2008-April/msg00221.html
> >>
> >> This is in the private archives... Do you have a link from gmane or
> >> some other public archive?
> >
> > it is the first posting from Ian Pickworth there, followed by an reply
> > by me, since Ian helped on several cx88 norm setting issues and also
> > with the tda9887 radio support, you might not remember anymore, but to
> > leave him without reply is beyond my scope.
> >
> > The bug was confirmed then by Gert, who did the initial empress encoder
> > support.
> >
> > However, Mauro fixed the eeprom detection then within all that immense
> > traffic and work during the last merge window open.
> >
> > Remaining serious issues are, since 2.6.25 the users can't select the
> > PAL/SECAM subnorms anymore after the ioctl2 conversion, which is an
> > extremely bad idea on saa713x, and further it is more improved on 2.6.26
> > now, that they are not even to set the tuner type anymore, without to
> > change it in the source, which is another extremely bad idea, as I
> > posted several times.
> >
> > I don't blame anyone, Hartmut and me were also too much focused on the
> > outstanding DVB-S stuff that time and did not care much about analog,
> > but the driver is in serious troubles now and I'm a little bit grumpy,
> > or at least not in the mood to explain again and again were we are ...
>
> Hermann,
>
> Please don't top-post.
>
> David Engel's problem is unrelated to the issue that you describe -- I
> will address his issue in a separate email.
>
> The issue that you are describing is due to the change in load order
> during initialization. Mauro made this change very late in the
> 2.6.25-rc stages, against my recommendation.
>
> I am staying away from this issue, since I advised against that
> change. So, I defer to Mauro (cc added).
>
> Mauro, are you aware that this is still an issue?
>
> ...some helpful hints:
>
> this will not work unless we do the following, in this order:
>
> #1 bring up the i2c bus
> #2 allow tveeprom.ko client module to attach, so that
> (bridgedriver)_card_setup can read tuner info from tveeprom
> #3 allow tuner.ko client to attach
>
> We must not call SET_TYPE until after all of the above have completed.
This won't work, since tveeprom and tuner can be compiled in kernel or they may
already be loaded (for example, if you have two boards on your machine with
different bridges, the second bridge setup will run after the load of those
modules).
We can postpone the call of SET_TYPE, or allow that a second SET_TYPE to be
accepted, but we can't make any assumption about the module load order.
If, previously, the driver were assuming a that I2C drivers were compiled
as module, and a certain load order, the driver were already broken.
The problem is not related to when a driver is loaded, but when I2C binding
happens.
Since we are using the old probe methods on most boards, after I2C is
initialized by the bridge, any existing i2c driver will try to bind on it.
Also, there's no control on the order that each i2c driver will be attached to
the i2c bus.
The proper fix is to migrate all drivers to the way that ivtv and cx18 are
probing i2c devices. This way, we can control when I2C bind for tveeprom and
for tuner will happen. So, we can do what you are meaning: bind first tveeprom,
then do the proper card setup and bind the tuner.
Cheers,
Mauro
--
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-06-02 20:52 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-29 22:57 Kworld 115-No Analog Channels Jason Pontious
2008-05-30 14:58 ` David Engel
2008-05-30 15:41 ` Jason Pontious
2008-05-30 17:18 ` David Engel
2008-06-01 7:15 ` Michael Krufky
2008-06-01 19:07 ` David Engel
2008-06-01 7:18 ` Michael Krufky
2008-06-01 19:03 ` David Engel
2008-06-01 19:10 ` Michael Krufky
2008-06-01 20:46 ` hermann pitton
2008-06-02 20:04 ` Michael Krufky
2008-06-02 20:51 ` Mauro Carvalho Chehab [this message]
2008-06-03 0:45 ` hermann pitton
2008-06-01 20:55 ` David Engel
2008-06-02 20:09 ` Michael Krufky
2008-06-03 15:04 ` David Engel
2008-06-04 0:01 ` Jason Pontious
2008-06-04 1:38 ` Michael Krufky
2008-06-11 18:05 ` Jason Pontious
2008-06-01 7:20 ` Michael Krufky
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=20080602175147.05844edf@gaivota \
--to=mchehab@infradead.org \
--cc=david@istwok.net \
--cc=jpontious@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox