All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nelson Costa <Nelson.Costa@synopsys.com>
To: Hans Verkuil <hverkuil-cisco@xs4all.nl>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Kishon Vijay Abraham I <kishon@ti.com>,
	Vinod Koul <vkoul@kernel.org>, Rob Herring <robh+dt@kernel.org>,
	Jose Abreu <Jose.Abreu@synopsys.com>
Subject: RE: [PATCH 7/9] media: v4l2-dv-timings: Add more CEA/CTA-861 video format timings
Date: Tue, 15 Jun 2021 09:25:00 +0000	[thread overview]
Message-ID: <MW3PR12MB445984E31DD595D2D20AB311C1309@MW3PR12MB4459.namprd12.prod.outlook.com> (raw)
In-Reply-To: <a6f78f33-99b8-c02e-b58c-86eb1bd97969@xs4all.nl>

From: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Date: ter, jun 15, 2021 at 09:39:51

> On 14/06/2021 19:04, Nelson Costa wrote:
> > Hi Hans,
> > 
> > Thanks for your comments!
> > 
> > From: Hans Verkuil <hverkuil-cisco@xs4all.nl>
> > Date: qua, jun 02, 2021 at 19:19:25
> > 
> >> On 02/06/2021 19:15, Nelson Costa wrote:
> >>> Hi Hans,
> >>>
> >>> Thanks for your comments and feedback!
> >>>
> >>> From: Hans Verkuil <hverkuil-cisco@xs4all.nl>
> >>> Date: qua, jun 02, 2021 at 13:26:17
> >>>
> >>>> Hi Nelson,
> >>>>
> >>>> On 02/06/2021 13:24, Nelson Costa wrote:
> >>>>> This extends the support for more video format timings based
> >>>>> on SPECs CEA-861-F and CTA-861-G.
> >>>>>
> >>>>> NOTE: For the newer SPECs the CEA was unified to the CTA.
> >>>>> The CTA-861-G then includes the CEA-861-F timings besides
> >>>>> the new timings that are specified.
> >>>>>
> >>>>> CEA-861-F: Specifies the Video timings for VICs 1-107.
> >>>>> CTA-861-G: Specifies the Video timings for VICs 1-107, 108-127, 193-219.
> >>>>>
> >>>>> With this patch, the array v4l2_dv_timings_presets has support for
> >>>>> all video timings specified in CTA-861-G.
> >>>>>
> >>>>> Signed-off-by: Nelson Costa <nelson.costa@synopsys.com>
> >>>>> ---
> >>>>>  drivers/media/v4l2-core/v4l2-dv-timings.c |  139 +++
> >>>>>  include/uapi/linux/v4l2-dv-timings.h      | 1595 ++++++++++++++++++++++++++++-
> >>>>
> >>>> I prefer to split this up in two patches, one for each header.
> >>>>
> >>>
> >>> I agree! It will be addressed in the next patch series.
> >>>
> >>>> The v4l2-dv-timings.h changes look good (my compliments for all the
> >>>> work you put into that!).
> >>>>
> >>>
> >>> Thanks!
> >>>
> >>>> I am more concerned about adding all these timings to v4l2_dv_timings_presets.
> >>>>
> >>>> There are really two different things going on here: the v4l2_dv_timings_presets
> >>>> array is used both by v4l2_enum_dv_timings_cap() to list supported commonly used
> >>>> timings, or to match against timings parameters (v4l2_find_dv_timings_cap()), and
> >>>> as a lookup table when receiving a specific VIC code (v4l2_find_dv_timings_cea861_vic()).
> >>>>
> >>>> All the new timings you added are really only relevant in the last case when you
> >>>> have the vic code.
> >>>>
> >>>> I think it is better to create a second array v4l2_dv_timings_non_square_vics[]
> >>>> (or a better name!) that contains these timings.
> >>>>
> >>>
> >>> I understood.
> >>>
> >>> We can then create another array as you said. But when you say 
> >>> "non_square"
> >>> you mean that the vics have "Pixel Aspect Ratio != 1:1"?
> >>>
> >>> Because the new vics added have both kind of vics with "Pixel Aspect 
> >>> Ratio != 1:1"
> >>> and also "Pixel Aspect Ratio == 1:1".
> >>
> >> There are? It's confusing since for 1:1 pixel aspect ratios I expect that the
> >> picture aspect ratio is set to { 0, 0 }, instead they are all filled in.
> >>
> >> I think it will be clearer if I see a v2 where the picture aspect ratio and
> >> the V4L2_DV_FL_HAS_PICTURE_ASPECT flag are only set for the non-square pixel
> >> timings. Also, for the timings with 1:1 pixel aspect ratio you don't need to
> >> add the PA... suffix. That suffix only makes sense for non-square pixel aspect
> >> ratios. It's confusing otherwise.
> >>
> > 
> > It makes sense! That way it will assure coherence with the current 
> > implementation.
> > In the v2 patch series this will be addressed.
> > 
> >>>
> >>> So, for the new vics should we create a second array with name 
> >>> v4l2_dv_timings_extended_vics[]?
> >>
> >> The new vics with non-square pixel aspect ratios, or with pixel repetition.
> >>
> > 
> > You mean the new vics added that are square should be kept in the 
> > original array?
> > 
> > And only the new vics that are non-square or with pixel repetition should 
> > go to a second array?
> 
> Correct.
> 
> Regards,
> 
> 	Hans

Thanks a lot for your feedback! :)
It will be addressed in the v2.

BR,

Nelson Costa

  reply	other threads:[~2021-06-15  9:25 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-02 11:24 [PATCH 0/9] Add Synopsys DesignWare HDMI RX Controller and PHY drivers Nelson Costa
2021-06-02 11:24 ` [PATCH 1/9] dt-bindings: phy: Document Synopsys DesignWare HDMI RX PHYs e405 and e406 Nelson Costa
2021-06-15 23:36   ` Rob Herring
2021-06-02 11:24 ` [PATCH 2/9] dt-bindings: media: Document Synopsys DesignWare HDMI RX Nelson Costa
2021-06-15 23:40   ` Rob Herring
2021-06-16 18:21     ` Nelson Costa
2021-06-02 11:24 ` [PATCH 3/9] MAINTAINERS: Add entry for Synopsys DesignWare HDMI drivers Nelson Costa
2021-06-02 11:24 ` [PATCH 4/9] phy: Add PHY standard HDMI opts to the PHY API Nelson Costa
2021-06-02 11:24 ` [PATCH 5/9] phy: dwc: Add Synopsys DesignWare HDMI RX PHYs e405 and e406 Driver Nelson Costa
2021-06-21  5:53   ` Vinod Koul
2021-06-23 16:02     ` Nelson Costa
2021-06-02 11:24 ` [PATCH 6/9] media: platform: Add Synopsys DesignWare HDMI RX Controller Driver Nelson Costa
2021-06-02 11:54   ` Hans Verkuil
2021-06-02 15:44     ` Nelson Costa
2021-06-02 17:04       ` Hans Verkuil
2021-06-14 17:03         ` Nelson Costa
2021-06-02 11:24 ` [PATCH 7/9] media: v4l2-dv-timings: Add more CEA/CTA-861 video format timings Nelson Costa
2021-06-02 12:26   ` Hans Verkuil
2021-06-02 17:15     ` Nelson Costa
2021-06-02 18:19       ` Hans Verkuil
2021-06-14 17:04         ` Nelson Costa
2021-06-15  8:39           ` Hans Verkuil
2021-06-15  9:25             ` Nelson Costa [this message]
2021-06-02 11:24 ` [PATCH 8/9] media: dwc: dw-hdmi-rx: Add support for Aspect Ratio Nelson Costa
2021-06-02 12:34   ` Hans Verkuil
2021-06-02 17:35     ` Nelson Costa
2021-06-02 11:24 ` [PATCH 9/9] media: dwc: dw-hdmi-rx: Add support for CEC Nelson Costa
2021-06-02 12:45   ` Hans Verkuil
2021-06-02 18:20     ` Nelson Costa
2021-06-02 18:27       ` Hans Verkuil
2021-06-14 17:05         ` Nelson Costa

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=MW3PR12MB445984E31DD595D2D20AB311C1309@MW3PR12MB4459.namprd12.prod.outlook.com \
    --to=nelson.costa@synopsys.com \
    --cc=Jose.Abreu@synopsys.com \
    --cc=devicetree@vger.kernel.org \
    --cc=hverkuil-cisco@xs4all.nl \
    --cc=kishon@ti.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=vkoul@kernel.org \
    /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.