linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Herdler <herdler@nurfuerspam.de>
To: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: linux-media@vger.kernel.org,
	Manu Abraham <abraham.manu@gmail.com>,
	Tomasz Maciej Nowak <tmn505@gmail.com>,
	Corinna Vinschen <vinschen@redhat.com>,
	Soeren Moch <smoch@web.de>,
	Mauro Carvalho Chehab <mchehab@kernel.org>
Subject: Re: saa7146: please test the vb2 conversion!
Date: Fri, 7 Apr 2023 00:43:11 +0200	[thread overview]
Message-ID: <9dec250e-72b2-3c03-c01d-e211a270a751@nurfuerspam.de> (raw)
In-Reply-To: <a1059b8f-77ef-3ccc-2ae3-d4846fb8a305@nurfuerspam.de>

Hi Hans,

I'm sorry for my late replay, but it was quiet troublesome to build
a kernel with the patch, also running on the rest of my hardware.


On 24/03/23 22:21, Stefan Herdler wrote:
> Hi Hans,
>
> great to read, that it is finally done, thank you for your work!
>
>
> On 24/03/23 11:40 Hans Verkuil wrote:
>> On 24/03/2023 11:37, Hans Verkuil wrote:
>>> Hi all,
>>>
>>> I finished the vb2 conversion and tested what I could test. I am missing
>>> 'full featured' hardware, so I could not test the analog video capture part
> There is some miss understanding.
> At VDR 'full featured' refers to all DVB-cards with decoder and OSD.
>
> I wasn't aware, that this definition doesn't seem to be common, sorry.
>>> of that. It's not clear to me if VBI capture is also supported on those
>>> cards, if so, then that needs to be tested as well.

I have talked to the "cable-guys" and they didn't know about VBI capture.

The whole analog capture of this cards was never very popular with VDR.
The signal had to be encoded on the fly, this was never reliable as the
PVR-cards with encoder.

I think it is o.k. to leave it untested.
>>>
>>> Note that there is one userspace-facing change: the VBI output settings
>>> are kept, even if the vbi device is closed by the application.
>>>
>>> Before you had to open the vbi device, format the slice VBI output, and
>>> write sliced VBI data to it. Closing the device would reset how VBI output
>>> behaves. That is not in spec with the V4L2 API. The format is kept after
>>> the device is closed.
>>>
>>> Any application that uses VBI output and that wants to keep the same
>>> behavior would have to call VIDIOC_S_FMT with a struct v4l2_sliced_vbi_format
>>> with a service_set field set to 0 to indicate that you don't want to
>>> output any VBI anymore.

VBI output is used to switch the aspect-ratio via WSS.
this should be supported by any av7110 card.

The software is run a daemon or plugin, so the userspace-facing change
shouldn't matter.

I'll test this as soon as possible.




I've done only basic testing so far, but unfortunately it already failed.

The test:
Switch to a channel[*] and view the decoded video with tvtime.

The resulting picture is corrupted.
Almost green with some pink traces at the outlines.

It reminds me to YCbCr component-yideo on a RGB-input.
Maybe the input-format of saa7146 not set correctly?

The OSD is equally affected, but the card seems to run stable.



* I used VDR for this, but it shouldn't matter.

Regards
Stefan

>>>
>>> If this is a problem, then I can make a module option that selects the old
>>> behavior.
>>>
>>> BTW, if anyone has a spare full-featured card (i.e. with analog video capture
>>> as well), then I would love to take it off your hands so that I can test that
>>> myself!
> There are only DVB-C boards with analog features.
>
> I personally never had cable-TV nor own any DVB-C cards.
> But I try to find such a card with an analog module on it.
>>>
>>> This series has been tested on the two Hexium boards, the mxb board, and two
>>> av7710 boards (DVB-C and DVB-T).
>
> I can test on the DVB-S hardware.
>
> But let me finish the API-documentation fist, it is almost done.
> There are only the complains from chackpatch left to fix, I hope it is done quickly.
>
>
> Regards
> Stefan
>
>
>>
>> It does help if I point to the patches :-)
>>
>> The patch series is here:
>>
>> https://patchwork.linuxtv.org/project/linux-media/list/?series=10140
>>
>> It's also in my git tree:
>>
>> https://git.linuxtv.org/hverkuil/media_tree.git/log/?h=saa7146-clean
>>
>> Regards,
>>
>> 	Hans

  parent reply	other threads:[~2023-04-06 22:43 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-30 22:19 Future of the SAA7146 drivers Stefan Herdler
2023-01-31  8:45 ` Hans Verkuil
2023-01-31 23:56   ` Stefan Herdler
2023-02-01  9:15     ` Hans Verkuil
2023-02-01 11:35       ` Soeren Moch
2023-02-01 13:51         ` Hans Verkuil
2023-02-01 15:20           ` Soeren Moch
2023-02-01 16:37             ` Hans Verkuil
2023-02-08  8:42               ` Mauro Carvalho Chehab
2023-02-01 23:12           ` Stefan Herdler
2023-02-02  9:43             ` Soeren Moch
2023-02-02 21:26               ` Stefan Herdler
2023-02-03  0:58                 ` Stefan Herdler
2023-02-03  8:50                   ` Hans Verkuil
2023-02-06  0:06                     ` Stefan Herdler
2023-02-08  9:08                       ` Mauro Carvalho Chehab
2023-02-12 23:10                         ` Stefan Herdler
2023-03-24 10:37                           ` saa7146: please test the vb2 conversion! Hans Verkuil
2023-03-24 10:40                             ` Hans Verkuil
2023-03-24 21:21                               ` Stefan Herdler
2023-03-27 17:13                                 ` Tomasz Maciej Nowak
2023-04-06 22:43                                 ` Stefan Herdler [this message]
2023-04-07  7:04                                   ` Hans Verkuil
2023-04-09 22:36                                     ` Stefan Herdler
2023-04-11  7:29                                       ` Hans Verkuil
2023-04-12 10:11                                       ` Hans Verkuil
2023-04-12 11:16                                         ` Hans Verkuil
2023-04-14  0:15                                           ` Stefan Herdler
2023-04-14  8:36                                             ` Hans Verkuil
2023-04-15 21:15                                               ` Stefan Herdler
2023-03-25  1:44                           ` [PATCH] Legacy DVB API: completion of documentation Stefan Herdler
2023-03-25  8:47                             ` kernel test robot
2023-03-26 21:34                             ` [PATCH v2] " Stefan Herdler
2023-03-27 18:28                               ` Mauro Carvalho Chehab
2023-04-02 22:25                                 ` Stefan Herdler
2023-07-17  2:04                                 ` [PATCH v3 0/6] " Stefan Herdler
2023-07-17  2:04                                   ` [PATCH v3 1/6] Add documentation for legacy DVB decoder API Stefan Herdler
2023-07-17  2:04                                   ` [PATCH v3 2/6] Add documentation for osd.h Stefan Herdler
2023-07-17  2:04                                   ` [PATCH v3 3/6] Add documentation for audio.h (data types) Stefan Herdler
2023-07-19  9:09                                     ` kernel test robot
2023-07-17  2:04                                   ` [PATCH v3 4/6] Add documentation for audio.h (function calls) Stefan Herdler
2023-07-17  2:04                                   ` [PATCH v3 5/6] Add documentation for video.h (data types) Stefan Herdler
2023-07-17  2:04                                   ` [PATCH v3 6/6] Add documentation for video.h (function calls) Stefan Herdler
2024-01-28 23:32                                 ` [PATCH v4 0/6] media: docs: uAPI: dvb/decoder: completing the documentation Stefan Herdler
2024-01-28 23:32                                   ` [PATCH v4 1/6] " Stefan Herdler
2024-01-28 23:32                                   ` [PATCH v4 2/6] media: docs: uAPI: dvb/osd: " Stefan Herdler
2024-01-28 23:32                                   ` [PATCH v4 3/6] media: docs: uAPI: dvb/audio: completing the documentation (data types) Stefan Herdler
2024-01-28 23:32                                   ` [PATCH v4 4/6] media: docs: uAPI: dvb/audio: completing the documentation (function calls) Stefan Herdler
2024-01-28 23:32                                   ` [PATCH v4 5/6] media: docs: uAPI: dvb/video: completing the documentation (data types) Stefan Herdler
2024-01-28 23:32                                   ` [PATCH v4 6/6] media: docs: uAPI: dvb/video: completing the documentation (function calls) Stefan Herdler
2024-02-07  5:10                                   ` [PATCH v4 0/6] media: docs: uAPI: dvb/decoder: completing the documentation Mauro Carvalho Chehab
2024-02-08 23:56                                     ` Stefan Herdler

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=9dec250e-72b2-3c03-c01d-e211a270a751@nurfuerspam.de \
    --to=herdler@nurfuerspam.de \
    --cc=abraham.manu@gmail.com \
    --cc=hverkuil-cisco@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=smoch@web.de \
    --cc=tmn505@gmail.com \
    --cc=vinschen@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;
as well as URLs for NNTP newsgroup(s).