From: Marco Felsch <m.felsch@pengutronix.de>
To: Javier Martinez Canillas <javierm@redhat.com>
Cc: "Hans Verkuil" <hverkuil@xs4all.nl>,
"Mauro Carvalho Chehab" <mchehab+samsung@kernel.org>,
"Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>,
linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v2 2/2] v4l: Add support for STD ioctls on subdev nodes
Date: Fri, 13 Jul 2018 12:54:47 +0200 [thread overview]
Message-ID: <20180713105447.73l6rx2bod7cpp3e@pengutronix.de> (raw)
In-Reply-To: <94a592f4-a130-b210-a461-9a4f758164a8@redhat.com>
Hi Javier,
On 18-07-13 11:18, Javier Martinez Canillas wrote:
> On 07/11/2018 12:39 PM, Marco Felsch wrote:
> > Hi Javier,
> >
> > On 18-07-08 15:11, Javier Martinez Canillas wrote:
> >> [adding Marco Felsch since he has been working on this driver]
> >>
> >> On 07/05/2018 03:12 PM, Hans Verkuil wrote:
> >>> On 05/07/18 14:44, Mauro Carvalho Chehab wrote:
> >>>> Javier,
> >>>>
> >>>> How standard settings work with the current OMAP3 drivers with tvp5150?
> >>>
> >>> It looks like tvp5150 uses autodetect of the standard, which in general is
> >>
> >> That's correct, the driver uses standard autodetect.
> >>
> >>> not a good thing to do since different standards have different buffer
> >>> sizes. But this chip can scale, so it might scale PAL to NTSC or vice versa
> >>> if the standard switches mid-stream. Or it only detects the standard when
> >>> it starts streaming, I'm not sure.
> >>>
> >>
> >> Not sure about this either, IIUC switching the standard mid-stream won't work.
> >
> > As far as I know, the detection happens after a sync lost event.
> >
>
> Ah, good to know.
>
> >>> In any case, this is not normal behavior, for almost all analog video
> >>> receivers you need to be able to set the std explicitly.
> >>>
> >>
> >> Indeed. I see that Marco's recent series [0] add supports for the .querystd [1]
> >> and .g_std [2] callbacks to the tvp5150 driver, so that way user-space can get
> >> back the detected standard.
> >>
> >> [0]: https://www.spinics.net/lists/linux-media/msg136869.html
> >> [1]: https://www.spinics.net/lists/linux-media/msg136872.html
> >> [2]: https://www.spinics.net/lists/linux-media/msg136875.html
> >
> > I tought the std will be set by the v4l2_subdev_video_ops.s_std()
> > operation. If the user change the std manually, the autodection is
> > disabled.
> >
>
> Yes, what I tried to say is that user-space won't have a way to know which std
> to set without a .querystd, or know what std was autodetected withou a .g_std.
Now I got you. Yes, thats the only way, as far as I know.
> Best regards,
Regards,
Marco
prev parent reply other threads:[~2018-07-13 11:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-17 14:30 [PATCH v2 0/2] v4l: Add support for STD ioctls on subdev nodes Niklas Söderlund
2018-05-17 14:30 ` [PATCH v2 1/2] v4l2-ioctl: create helper to fill in v4l2_standard for ENUMSTD Niklas Söderlund
2018-05-17 14:30 ` [PATCH v2 2/2] v4l: Add support for STD ioctls on subdev nodes Niklas Söderlund
2018-06-28 11:37 ` Mauro Carvalho Chehab
2018-06-28 12:47 ` Hans Verkuil
2018-06-29 10:06 ` Mauro Carvalho Chehab
2018-06-29 10:26 ` Hans Verkuil
2018-06-29 12:28 ` Mauro Carvalho Chehab
2018-06-29 12:32 ` Hans Verkuil
2018-07-04 6:33 ` Niklas Söderlund
2018-07-05 12:44 ` Mauro Carvalho Chehab
2018-07-05 13:12 ` Hans Verkuil
2018-07-08 13:11 ` Javier Martinez Canillas
2018-07-11 10:39 ` Marco Felsch
2018-07-13 9:18 ` Javier Martinez Canillas
2018-07-13 10:54 ` Marco Felsch [this message]
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=20180713105447.73l6rx2bod7cpp3e@pengutronix.de \
--to=m.felsch@pengutronix.de \
--cc=hverkuil@xs4all.nl \
--cc=javierm@redhat.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=mchehab+samsung@kernel.org \
--cc=niklas.soderlund+renesas@ragnatech.se \
/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