mirror of
https://github.com/torvalds/linux.git
synced 2026-04-28 11:32:28 -04:00
drm/tests: hdmi: Setup ycbcr_420_allowed before initializing connector
Initializing HDMI connector via drmm_connector_hdmi_init() requires its ->ycbcr_420_allowed flag to be adjusted according to the supported formats passed as function argument, prior to the actual invocation. In order to allow providing test coverage for YUV420 modes, ensure the flag is properly setup. Reviewed-by: Maxime Ripard <mripard@kernel.org> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> Link: https://lore.kernel.org/r/20250527-hdmi-conn-yuv-v5-12-74c9c4a8ac0c@collabora.com Signed-off-by: Maxime Ripard <mripard@kernel.org>
This commit is contained in:
committed by
Maxime Ripard
parent
95f0f68fc1
commit
8deb5bd348
@@ -183,6 +183,8 @@ __connector_hdmi_init(struct kunit *test,
|
||||
enc->possible_crtcs = drm_crtc_mask(priv->crtc);
|
||||
|
||||
conn = &priv->connector;
|
||||
conn->ycbcr_420_allowed = !!(formats & BIT(HDMI_COLORSPACE_YUV420));
|
||||
|
||||
ret = drmm_connector_hdmi_init(drm, conn,
|
||||
"Vendor", "Product",
|
||||
&dummy_connector_funcs,
|
||||
|
||||
Reference in New Issue
Block a user