From: Hans Verkuil <hverkuil@xs4all.nl>
To: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
Shuah Khan <shuahkh@osg.samsung.com>
Subject: Re: [REVIEW] au0828-video.c
Date: Fri, 12 Dec 2014 13:55:14 +0100 [thread overview]
Message-ID: <548AE5B2.1070306@xs4all.nl> (raw)
In-Reply-To: <20141212104942.0ea3c1d7@recife.lan>
On 12/12/2014 01:49 PM, Mauro Carvalho Chehab wrote:
> Em Fri, 12 Dec 2014 11:16:01 +0100
> Hans Verkuil <hverkuil@xs4all.nl> escreveu:
>
>> Hi Shuah,
>>
>> This is the video.c review with your patch applied.
>>
>>> /*
>>> * Auvitek AU0828 USB Bridge (Analog video support)
>>> *
>>> * Copyright (C) 2009 Devin Heitmueller <dheitmueller@linuxtv.org>
>>> * Copyright (C) 2005-2008 Auvitek International, Ltd.
>>> *
>>> * This program is free software; you can redistribute it and/or
>>> * modify it under the terms of the GNU General Public License
>>> * As published by the Free Software Foundation; either version 2
>>> * of the License, or (at your option) any later version.
>>> *
>>> * This program is distributed in the hope that it will be useful,
>>> * but WITHOUT ANY WARRANTY; without even the implied warranty of
>>> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
>>> * GNU General Public License for more details.
>>> *
>>> * You should have received a copy of the GNU General Public License
>>> * along with this program; if not, write to the Free Software
>>> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
>>> * 02110-1301, USA.
>>> */
>>>
>>> /* Developer Notes:
>>> *
>>> * VBI support is not yet working
>>
>> I'll see if I can get this to work quickly. If not, then we should
>> probably just strip the VBI support from this driver. It's pointless to
>> have non-functioning VBI support.
>
> This is a left-over. VBI support works on this driver. I tested.
Oh wait, now I get it. You are only capturing line 21, not the whole vbi area.
That's why vbi_height = 1. Never mind then. Although that comment should indeed
be removed.
>
> Probably, the patches that added VBI support forgot to remove the
> above notice.
>
>>> /* This function ensures that video frames continue to be delivered even if
>>> the ITU-656 input isn't receiving any data (thereby preventing applications
>>> such as tvtime from hanging) */
>>
>> Why would tvtime be hanging? Make a separate patch that just removes all this
>> timeout nonsense. If there are no frames, then tvtime (and any other app) should
>> just wait for frames to arrive. And ctrl-C should always be able to break the app
>> (or they can timeout themselves).
>>
>> It's not the driver's responsibility to do this and it only makes the code overly
>> complex.
>
> Well, we should not cause regressions on userspace. If removing this
> check will cause tvtime to hang, we should keep it.
Obviously if it hangs (i.e. tvtime can't be killed anymore) it is a bug in the driver.
But the driver shouldn't start generating bogus frames just because no new frames are
arriving, that's just nuts.
> Btw, the same kind of test used to be at vivi and other drivers.
> I think we removed it there some time ago, so maybe either it was a
> VB1 bug or this got fixed at tvtime.
Most likely.
Regards,
Hans
next prev parent reply other threads:[~2014-12-12 12:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-12 10:16 [REVIEW] au0828-video.c Hans Verkuil
2014-12-12 12:49 ` Mauro Carvalho Chehab
2014-12-12 12:55 ` Hans Verkuil [this message]
2014-12-12 13:14 ` Mauro Carvalho Chehab
2014-12-12 15:26 ` Shuah Khan
2014-12-12 15:28 ` Hans Verkuil
2014-12-12 15:30 ` Shuah Khan
2014-12-12 15:52 ` Devin Heitmueller
2014-12-12 16:32 ` Hans Verkuil
2014-12-12 16:46 ` Devin Heitmueller
2014-12-12 17:36 ` Mauro Carvalho Chehab
2014-12-12 17:46 ` Devin Heitmueller
2014-12-12 15:23 ` Shuah Khan
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=548AE5B2.1070306@xs4all.nl \
--to=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@osg.samsung.com \
--cc=shuahkh@osg.samsung.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.