lkml.org 
[lkml]   [2022]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v1 05/35] drm/connector: Add TV standard property
Hi,

On Sat, Aug 20, 2022 at 10:12:46PM +0200, Noralf Trønnes wrote:
> > diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h
> > index 1e9996b33cc8..78275e68ff66 100644
> > --- a/include/drm/drm_connector.h
> > +++ b/include/drm/drm_connector.h
> > @@ -143,6 +143,32 @@ enum subpixel_order {
> >
> > };
> >
> > +#define DRM_MODE_TV_NORM_NTSC_443 (1 << 0)
> > +#define DRM_MODE_TV_NORM_NTSC_J (1 << 1)
> > +#define DRM_MODE_TV_NORM_NTSC_M (1 << 2)
> > +#define DRM_MODE_TV_NORM_PAL_60 (1 << 3)
> > +#define DRM_MODE_TV_NORM_PAL_B (1 << 4)
> > +#define DRM_MODE_TV_NORM_PAL_D (1 << 5)
> > +#define DRM_MODE_TV_NORM_PAL_G (1 << 6)
> > +#define DRM_MODE_TV_NORM_PAL_H (1 << 7)
> > +#define DRM_MODE_TV_NORM_PAL_I (1 << 8)
> > +#define DRM_MODE_TV_NORM_PAL_M (1 << 9)
> > +#define DRM_MODE_TV_NORM_PAL_N (1 << 10)
> > +#define DRM_MODE_TV_NORM_PAL_NC (1 << 11)
> > +#define DRM_MODE_TV_NORM_SECAM_60 (1 << 12)
> > +#define DRM_MODE_TV_NORM_SECAM_B (1 << 13)
> > +#define DRM_MODE_TV_NORM_SECAM_D (1 << 14)
> > +#define DRM_MODE_TV_NORM_SECAM_G (1 << 15)
> > +#define DRM_MODE_TV_NORM_SECAM_K (1 << 16)
> > +#define DRM_MODE_TV_NORM_SECAM_K1 (1 << 17)
> > +#define DRM_MODE_TV_NORM_SECAM_L (1 << 18)
> > +#define DRM_MODE_TV_NORM_HD480I (1 << 19)
> > +#define DRM_MODE_TV_NORM_HD480P (1 << 20)
> > +#define DRM_MODE_TV_NORM_HD576I (1 << 21)
> > +#define DRM_MODE_TV_NORM_HD576P (1 << 22)
> > +#define DRM_MODE_TV_NORM_HD720P (1 << 23)
> > +#define DRM_MODE_TV_NORM_HD1080I (1 << 24)
> > +
>
> This is an area where DRM overlaps with v4l2, see:
> - include/dt-bindings/display/sdtv-standards.h
> - v4l2_norm_to_name()
>
> Maybe we should follow suit, but if we do our own thing please mention
> why in the commit message.

Are you suggesting that we'd share that definition with v4l2?

I've tried to share some code in the past between v4l2 and DRM, and it
got completely shut down so it's not something I'd like to try again, if
possible.

Maxime
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2022-08-25 15:45    [W:0.297 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site