All of lore.kernel.org
 help / color / mirror / Atom feed
From: CityK <cityk@rogers.com>
To: Michael Krufky <mkrufky@linuxtv.org>
Cc: David Engel <david@istwok.net>, Hans Verkuil <hverkuil@xs4all.nl>,
	V4L <video4linux-list@redhat.com>,
	Mauro Carvalho Chehab <mchehab@infradead.org>,
	Josh Borke <joshborke@gmail.com>,
	David Lonie <loniedavid@gmail.com>,
	linux-media@vger.kernel.org
Subject: Re: KWorld ATSC 115 all static  ... Mike's clarification
Date: Tue, 03 Feb 2009 22:56:30 -0500	[thread overview]
Message-ID: <498911EE.7050505@rogers.com> (raw)
In-Reply-To: <49884E67.4090003@linuxtv.org>

CityK wrote:
> CityK wrote:
>   
>> Hans wrote:
>>     
>>> CityK wrote:
>>>     
>>>       
>>>> In regards to the tuner type being set twice, that is precisely my point
>>>> -- its peculiar and not symptomatic of normal behaviour.  That is why I
>>>> asked whether you expected it to do this    
>>>>       
>>>>         
>>> I think it is OK. The second setup is probably done by dvb_attach() in 
>>> saa7134-dvb.c, line 1191. Can you verify that with a debug message?  
>>>     
>>>       
>> Could not verify.  (dmesg output provided below at end).
>>   
>>     
>
> Actually, looking at the dmesg output now, it is apparent that you are
> correct:
>
> dvb_init() allocating 1 frontend
>
> So, its a case of a bit of redundancy now.

Michael Krufky wrote:
> CityK wrote:
>> - Hans' second attempt at this is found in his v4l-dvb-kworld test
>> repo... testing this code revealed that analog tv did indeed work
>> again withtvtime ... I also noted that there seems to be a bit of
>> redundancy nowin terms of the tuner being initialized twice
>>
>> ... [snip]...
>>
>> - Hans kworld repo:
>> Pros: does provide analog tv functionality for, at a minimum, tvtime.
>> Cons: The changes introduced result in, as testing to date has shown, a
>> harmless bit of duplication in the way of the tuner being loaded twice.
>> kdetv/motv/xawtv, at a minimum, do not work in overlay mode.  
>
> Tuner is _not_ loaded twice.  The tuner-simple driver is displaying
> itself twice in the dmesg logs, because it is attached twice. 

I actually knew that, but as a consequence of writing a long reply, late
at night, I wasn't fully coherent in my faculties and ended up
misreporting the case.

> Once for analog, again for digital -- this is *by design*.
>
> The old code used dvb-pll for the digital side, and tuner-simple for
> analog.  The common support within those two modules has been merged
> together to remove redundancy and allow us to share state between the
> two instances of the driver for the same part.
>
> As tuner-simple registers each side of the interface, it will display
> a message to the kernel logs indicating what tuner has been attached
> -- this is what you see twice.

Mike, thanks for the clarification that the behaviour is intended by
design. And looking at the events in conjunction with the above
explanation, it all makes sense:

tuner 1-0061: chip found @ 0xc2 (saa7133[0])
tuner-simple 1-0061: creating new instance
tuner-simple 1-0061: type set to 68 (Philips TUV1236D ATSC/NTSC dual in)
saa7133[0]: registered device video0 [v4l2]
saa7133[0]: registered device vbi0
dvb_init() allocating 1 frontend
nxt200x: NXT2004 Detected
tuner-simple 1-0061: attaching existing instance
tuner-simple 1-0061: type set to 68 (Philips TUV1236D ATSC/NTSC dual in)

 
hermann pitton wrote:
> For the second attach of hybrid tuners in digital mode we maybe should print something
> pointing to it.
>   

Yes, I agree -- adding something simple to the existing message here
might help any future cases of head-scratching by those less
knowledgeable of the intricacies.

  reply	other threads:[~2009-02-04  3:56 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-15 14:01 KWorld ATSC 115 all static Hans Verkuil
2009-01-15 14:30 ` Michael Krufky
2009-01-15 17:29   ` Mauro Carvalho Chehab
2009-01-15 18:33     ` Trent Piepho
2009-01-16  2:02       ` Mauro Carvalho Chehab
     [not found]         ` <20090116110700.584ec052@hyperion.delvare>
     [not found]           ` <Pine.LNX.4.58.0901160424350.11165@shell2.speakeasy.net>
     [not found]             ` <20090116153257.0bd1c90f@hyperion.delvare>
2009-01-17 19:45               ` Trent Piepho
2009-01-18 10:08                 ` Jean Delvare
2009-01-15 23:11     ` hermann pitton
2009-01-16  1:39 ` CityK
2009-01-16  3:20   ` CityK
2009-01-16  3:38     ` Mauro Carvalho Chehab
2009-01-17 16:20     ` Hans Verkuil
2009-01-17 17:42       ` hermann pitton
2009-01-17 18:44         ` Michael Krufky
2009-01-17 19:16           ` hermann pitton
2009-01-18 18:10       ` CityK
     [not found]         ` <200901182011.11960.hverkuil@xs4all.nl>
2009-01-18 21:20           ` CityK
     [not found]             ` <200901182241.10047.hverkuil@xs4all.nl>
2009-01-18 23:36               ` CityK
2009-01-19 11:01                 ` Mauro Carvalho Chehab
     [not found]                 ` <200901190853.19327.hverkuil@xs4all.nl>
2009-01-19 11:08                   ` Mauro Carvalho Chehab
2009-01-19 17:16                     ` hermann pitton
2009-01-25 18:10                   ` CityK
2009-01-25 18:32                     ` CityK
2009-01-25 21:49                     ` Trent Piepho
2009-01-25 23:08                       ` hermann pitton
2009-01-25 23:35                       ` CityK
2009-01-26  0:45                         ` hermann pitton
2009-01-28  2:23                         ` Mauro Carvalho Chehab
2009-01-28  3:29                           ` hermann pitton
2009-01-29 23:44             ` CityK
2009-01-30  3:00               ` Mauro Carvalho Chehab
2009-01-19  0:38           ` Trent Piepho
2009-02-02 23:58         ` David Engel
2009-02-03  6:03           ` CityK
2009-02-03 14:02             ` Michael Krufky
2009-02-04  3:56               ` CityK [this message]
2009-02-03 17:22             ` David Engel
2009-02-04  4:07               ` CityK
2009-02-05  2:55                 ` David Engel
2009-02-04  2:31             ` hermann pitton
2009-02-04  5:26               ` CityK
2009-02-05  1:22                 ` hermann pitton
2009-02-08 10:07                 ` Mauro Carvalho Chehab
2009-02-08 12:39                   ` Mauro Carvalho Chehab
2009-02-09  2:43             ` Mauro Carvalho Chehab
2009-02-09  2:43             ` Mauro Carvalho Chehab
2009-02-10  0:37               ` hermann pitton
2009-02-10  0:54                 ` hermann pitton
2009-02-10  1:31                   ` hermann pitton
2009-02-10  2:35                     ` Mauro Carvalho Chehab
2009-02-10  3:14                       ` hermann pitton
2009-02-10  3:43                         ` hermann pitton
2009-02-10  6:15                           ` Mauro Carvalho Chehab
2009-02-10 12:07                             ` Jonathan Isom
2009-02-10 12:27                               ` Mauro Carvalho Chehab
2009-02-10 12:48                                 ` Jonathan Isom
2009-02-10 19:02                                   ` Mauro Carvalho Chehab
2009-02-11  3:50                                 ` David Engel
2009-02-11  4:34                                   ` hermann pitton
2009-02-11  7:43                                   ` Mauro Carvalho Chehab
2009-02-11 23:21                                     ` David Engel
2009-02-13  3:07                                       ` David Engel
2009-02-13 11:04                                         ` Mauro Carvalho Chehab
2009-02-13 11:28                                           ` Mauro Carvalho Chehab
2009-02-13 20:28                                             ` David Engel
2009-02-13 20:35                                               ` Mauro Carvalho Chehab
2009-02-17 15:53                                               ` David Engel
2009-02-18  7:45                                                 ` Hans Verkuil
2009-02-18 15:26                                                   ` David Engel
2009-02-10  6:19                         ` Mauro Carvalho Chehab
2009-02-11  1:30                           ` hermann pitton

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=498911EE.7050505@rogers.com \
    --to=cityk@rogers.com \
    --cc=david@istwok.net \
    --cc=hverkuil@xs4all.nl \
    --cc=joshborke@gmail.com \
    --cc=linux-media@vger.kernel.org \
    --cc=loniedavid@gmail.com \
    --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.