public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Damien Lespiau <damien.lespiau@intel.com>
To: "Gohad, Tushar" <tushar.gohad@intel.com>
Cc: "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org>
Subject: Re: AVI infoframes: default aspect ratio/VIC for CEA modes
Date: Wed, 20 Nov 2013 22:11:55 +0000	[thread overview]
Message-ID: <20131120221155.GA24799@strange.amr.corp.intel.com> (raw)
In-Reply-To: <82115773F5CCE44DA5B6CE8B3878B6F027E4EDB2@FMSMSX106.amr.corp.intel.com>

On Wed, Nov 20, 2013 at 09:48:26PM +0000, Gohad, Tushar wrote:
> Folks,
> 
> A newbie question - When filling in an HDMI AVI infoframe, how does
> one correctly determine the "default" picture aspect ratio (and VIC)
> for CEA modes that support multiple (4:3 and 16:9) aspect ratios.
> 720x576p for example, corresponds to VIC 17 or 18:
> 
>         /* 17 - 720x576@50Hz */
>         { DRM_MODE("720x576", DRM_MODE_TYPE_DRIVER, 27000, 720, 732,
>                    796, 864, 0, 576, 581, 586, 625, 0,
>                    DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC),
>           .vrefresh = 50, },
>         /* 18 - 720x576@50Hz */
>         { DRM_MODE("720x576", DRM_MODE_TYPE_DRIVER, 27000, 720, 732,
>                    796, 864, 0, 576, 581, 586, 625, 0,
>                    DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC),
>           .vrefresh = 50, },
> 
> Should the "picture aspect ratio" information be derived from sink
> EDID (from detailed/cvt/standard timings)? .. possibly in
> drm_add_edid_modes() and store the picture aspect ratio in
> drm_display_mode perhaps, for later use?  Trying to get a better
> understanding of how this usually works.

Oh no! someone finally discovered it! Yes, we are totally missing the
picture aspect ratio information from the CEA modes. It's been on my
TODO list for a couple of month but not exactly high priority. If we
want to get a stab a it, we'll review the patches :)

> As an aside, to match VIC correctly, shouldn't drm_match_cea_mode()
> take into account picture aspect ratio as well?

Yes.

-- 
Damien

  reply	other threads:[~2013-11-20 22:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-20 21:48 AVI infoframes: default aspect ratio/VIC for CEA modes Gohad, Tushar
2013-11-20 22:11 ` Damien Lespiau [this message]
2013-11-20 22:20   ` Damien Lespiau
2013-11-20 23:45     ` Gohad, Tushar
2013-11-21  0:37       ` Damien Lespiau
2013-11-21  2:48         ` [Intel-gfx] " Gohad, Tushar
2013-11-21 17:19           ` Ville Syrjälä
2013-11-21 17:28             ` Damien Lespiau

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=20131120221155.GA24799@strange.amr.corp.intel.com \
    --to=damien.lespiau@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=tushar.gohad@intel.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