mirror of
https://github.com/torvalds/linux.git
synced 2026-04-26 18:42:25 -04:00
drm/connector: hdmi: Add support for output format
Just like BPC, we'll add support for automatic selection of the output format for HDMI connectors. Let's add the needed defaults and fields for now. Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240527-kms-hdmi-connector-state-v15-7-c5af16c3aae2@kernel.org Signed-off-by: Maxime Ripard <mripard@kernel.org>
This commit is contained in:
@@ -187,6 +187,7 @@ static void drm_test_connector_hdmi_init_valid(struct kunit *test)
|
||||
&dummy_funcs,
|
||||
DRM_MODE_CONNECTOR_HDMIA,
|
||||
&priv->ddc,
|
||||
BIT(HDMI_COLORSPACE_RGB),
|
||||
8);
|
||||
KUNIT_EXPECT_EQ(test, ret, 0);
|
||||
}
|
||||
@@ -204,6 +205,7 @@ static void drm_test_connector_hdmi_init_null_ddc(struct kunit *test)
|
||||
&dummy_funcs,
|
||||
DRM_MODE_CONNECTOR_HDMIA,
|
||||
NULL,
|
||||
BIT(HDMI_COLORSPACE_RGB),
|
||||
8);
|
||||
KUNIT_EXPECT_EQ(test, ret, 0);
|
||||
}
|
||||
@@ -221,6 +223,7 @@ static void drm_test_connector_hdmi_init_bpc_invalid(struct kunit *test)
|
||||
&dummy_funcs,
|
||||
DRM_MODE_CONNECTOR_HDMIA,
|
||||
&priv->ddc,
|
||||
BIT(HDMI_COLORSPACE_RGB),
|
||||
9);
|
||||
KUNIT_EXPECT_LT(test, ret, 0);
|
||||
}
|
||||
@@ -238,6 +241,7 @@ static void drm_test_connector_hdmi_init_bpc_null(struct kunit *test)
|
||||
&dummy_funcs,
|
||||
DRM_MODE_CONNECTOR_HDMIA,
|
||||
&priv->ddc,
|
||||
BIT(HDMI_COLORSPACE_RGB),
|
||||
0);
|
||||
KUNIT_EXPECT_LT(test, ret, 0);
|
||||
}
|
||||
@@ -260,6 +264,7 @@ static void drm_test_connector_hdmi_init_bpc_8(struct kunit *test)
|
||||
&dummy_funcs,
|
||||
DRM_MODE_CONNECTOR_HDMIA,
|
||||
&priv->ddc,
|
||||
BIT(HDMI_COLORSPACE_RGB),
|
||||
8);
|
||||
KUNIT_EXPECT_EQ(test, ret, 0);
|
||||
|
||||
@@ -298,6 +303,7 @@ static void drm_test_connector_hdmi_init_bpc_10(struct kunit *test)
|
||||
&dummy_funcs,
|
||||
DRM_MODE_CONNECTOR_HDMIA,
|
||||
&priv->ddc,
|
||||
BIT(HDMI_COLORSPACE_RGB),
|
||||
10);
|
||||
KUNIT_EXPECT_EQ(test, ret, 0);
|
||||
|
||||
@@ -336,6 +342,7 @@ static void drm_test_connector_hdmi_init_bpc_12(struct kunit *test)
|
||||
&dummy_funcs,
|
||||
DRM_MODE_CONNECTOR_HDMIA,
|
||||
&priv->ddc,
|
||||
BIT(HDMI_COLORSPACE_RGB),
|
||||
12);
|
||||
KUNIT_EXPECT_EQ(test, ret, 0);
|
||||
|
||||
@@ -370,6 +377,7 @@ static void drm_test_connector_hdmi_init_type_valid(struct kunit *test)
|
||||
&dummy_funcs,
|
||||
connector_type,
|
||||
&priv->ddc,
|
||||
BIT(HDMI_COLORSPACE_RGB),
|
||||
8);
|
||||
KUNIT_EXPECT_EQ(test, ret, 0);
|
||||
}
|
||||
@@ -402,6 +410,7 @@ static void drm_test_connector_hdmi_init_type_invalid(struct kunit *test)
|
||||
&dummy_funcs,
|
||||
connector_type,
|
||||
&priv->ddc,
|
||||
BIT(HDMI_COLORSPACE_RGB),
|
||||
8);
|
||||
KUNIT_EXPECT_LT(test, ret, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user