Re: [PATCH v4 05/22] drm/sun4i: frontend: Determine input format based on colorspace

2018-12-05 Thread Maxime Ripard
On Wed, Dec 05, 2018 at 09:36:46AM +0100, Paul Kocialkowski wrote: > Since all the RGB input formats have the same value for the DATA_FMT > field of the INPUT_FMT register, we can group them when the format is > known to be RGB. Here, we assume that a non-YUV format is RGB, because > the hardware d

[PATCH v4 05/22] drm/sun4i: frontend: Determine input format based on colorspace

2018-12-05 Thread Paul Kocialkowski
Since all the RGB input formats have the same value for the DATA_FMT field of the INPUT_FMT register, we can group them when the format is known to be RGB. Here, we assume that a non-YUV format is RGB, because the hardware does not support any other colorspace than RGB and YUV. Use the DRM format