drm/drm_connector: add additional aspect ratio values
Subsystems (2)
PATCH 1/1 drm/drm_connector: add additional aspect ratio values
For HDMI2.0 CTS item - HF1-35, it verifies if the source generates video timing "64:27" video format correctly.
eg: (vic-76) 1920x1080p@60Hz,24bpp
This patch add on "64:27" and "256:135" to drm_aspect_ratio_enum_list. Thereafter, one can specify the aspect ratio to "64:27" or "256:135" after creating aspect ratio property.
--- drivers/gpu/drm/drm_connector.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/drm_connector.c +2 -0
@@ -772,6 +772,8 @@ static const struct drm_prop_enum_list drm_aspect_ratio_enum_list[] = { { DRM_MODE_PICTURE_ASPECT_NONE, "Automatic" }, { DRM_MODE_PICTURE_ASPECT_4_3, "4:3" }, { DRM_MODE_PICTURE_ASPECT_16_9, "16:9" }, + { DRM_MODE_PICTURE_ASPECT_64_27, "64:27" }, + { DRM_MODE_PICTURE_ASPECT_256_135, "256:135" }, }; static const struct drm_prop_enum_list drm_content_type_enum_list[] = {
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 10 lines · Wayne Lin
For HDMI2.0 CTS item - HF1-35, it verifies if the source generates video timing "64:27" video format correctly.
eg: (vic-76) 1920x1080p@60Hz,24bpp
This patch add on "64:27" and "256:135" to
drm_aspect_ratio_enum_list. Thereafter, one can specify the aspect ratio to "64:27" or "256:135" after creating aspect ratio property.>Change-Id Ifc9df54e8e8f78e70960fcd737a3a57e49c81152Signed-off-by Wayne Lin <[email protected]>
Drop the Change-Id.
With that fixed this patch is
Harry
Quoted 10 lines
--- drivers/gpu/drm/drm_connector.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/drm_connector.c +0
-0
drivers/gpu/drm/drm_connector.c static const struct drm_prop_enum_list drm_aspect_ratio_enum_list[] = { · line 779
Quoted 8 lines
drivers/gpu/drm/drm_connector.c +2
-0@@ -772,6 +772,8 @@ static const struct drm_prop_enum_list drm_aspect_ratio_enum_list[] = { { DRM_MODE_PICTURE_ASPECT_NONE, "Automatic" }, { DRM_MODE_PICTURE_ASPECT_4_3, "4:3" }, { DRM_MODE_PICTURE_ASPECT_16_9, "16:9" }, + { DRM_MODE_PICTURE_ASPECT_64_27, "64:27" }, + { DRM_MODE_PICTURE_ASPECT_256_135, "256:135" }, }; static const struct drm_prop_enum_list drm_content_type_enum_list[] = {
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 20 lines · Wayne Lin
For HDMI2.0 CTS item - HF1-35, it verifies if the source generates video timing "64:27" video format correctly.
eg: (vic-76) 1920x1080p@60Hz,24bpp
This patch add on "64:27" and "256:135" to
drm_aspect_ratio_enum_list. Thereafter, one can specify the aspect ratio to "64:27" or "256:135" after creating aspect ratio property.Change-Id Ifc9df54e8e8f78e70960fcd737a3a57e49c81152Signed-off-by Wayne Lin <[email protected]>--- drivers/gpu/drm/drm_connector.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/drm_connector.c +0
-0
drivers/gpu/drm/drm_connector.c static const struct drm_prop_enum_list drm_aspect_ratio_enum_list[] = { · line 776
Quoted 5 lines
drivers/gpu/drm/drm_connector.c +2
-0@@ -772,6 +772,8 @@ static const struct drm_prop_enum_list drm_aspect_ratio_enum_list[] = { { DRM_MODE_PICTURE_ASPECT_NONE, "Automatic" }, { DRM_MODE_PICTURE_ASPECT_4_3, "4:3" }, { DRM_MODE_PICTURE_ASPECT_16_9, "16:9" }, + { DRM_MODE_PICTURE_ASPECT_64_27, "64:27" }, + { DRM_MODE_PICTURE_ASPECT_256_135, "256:135" },
Not 100% sure we want to expose these via the property because the infoframe can't convey these independently from the VIC.
Quoted 10 lines
drivers/gpu/drm/drm_connector.c +0
-0};static const struct drm_prop_enum_list drm_content_type_enum_list[] = {Signature · 6 lines
2.17.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
________________________________
From: Ville Syrjälä <ville.syrjala-VuQAYsv1563Yd54FQh9/[email protected]>
Sent: Saturday, August 24, 2019 02:41
To: Lin, Wayne <[email protected]>
Cc: [email protected] <[email protected]>; [email protected] <[email protected]>; Li, Sun peng (Leo) <[email protected]>; Kazlauskas, Nicholas <[email protected]>
Subject: Re: [PATCH] drm/drm_connector: add additional aspect ratio values
Quoted 26 lines · Wayne Lin
For HDMI2.0 CTS item - HF1-35, it verifies if the source generates video timing "64:27" video format correctly.
eg: (vic-76) 1920x1080p@60Hz,24bpp
This patch add on "64:27" and "256:135" to
drm_aspect_ratio_enum_list. Thereafter, one can specify the aspect ratio to "64:27" or "256:135" after creating aspect ratio property.Change-Id Ifc9df54e8e8f78e70960fcd737a3a57e49c81152Signed-off-by Wayne Lin <[email protected]>--- drivers/gpu/drm/drm_connector.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/drm_connector.c +2
-0@@ -772,6 +772,8 @@ static const struct drm_prop_enum_list drm_aspect_ratio_enum_list[] = { { DRM_MODE_PICTURE_ASPECT_NONE, "Automatic" }, { DRM_MODE_PICTURE_ASPECT_4_3, "4:3" }, { DRM_MODE_PICTURE_ASPECT_16_9, "16:9" }, + { DRM_MODE_PICTURE_ASPECT_64_27, "64:27" }, + { DRM_MODE_PICTURE_ASPECT_256_135, "256:135" },
Quoted 2 lines
Not 100% sure we want to expose these via the property because the infoframe can't convey these independently from the VIC.
Agree with that it can't be independent from the VIC.
When building up hdmi avi infoframe by using "drm_hdmi_avi_infoframe_from_display_mode" in drm_edid, it will refer to the VIC to set up the aspect ratio if the aspect ratio is not specified in mode. However, if the aspect ratio is specified to a value other than none, current logic of code will use the specified value.
The main reason of this patch is for capable indicating the exact VIC wanted.
There are some modes defined in CTA-861 with same timing but different aspect ratio.
eg: VIC 103 & VIC 93
Without these new definitions, we cannot distinguish these different modes and might set a wrong VIC in AVI infoframe.
Quoted 10 lines
};
static const struct
drm_prop_enum_listdrm_content_type_enum_list[] = {
--
2.17.1_______________________________________________
dri-devel mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Ville Syrjälä
Intel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): MN2PR12MB2941AFD5BE06C7B10E01B3C1FCA00-rweVpJHSKTqB6PJJT2ARpQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Quoted 44 lines · Wayne
________________________________
From: Ville Syrjälä <[email protected]>
Sent: Saturday, August 24, 2019 02:41
To: Lin, Wayne <[email protected]>
Cc: [email protected] <[email protected]>; [email protected] <[email protected]>; Li, Sun peng (Leo) <[email protected]>; Kazlauskas, Nicholas <[email protected]>
Subject: Re: [PATCH] drm/drm_connector: add additional aspect ratio valuesQuoted 26 lines · Wayne Lin
For HDMI2.0 CTS item - HF1-35, it verifies if the source generates video timing "64:27" video format correctly.
eg: (vic-76) 1920x1080p@60Hz,24bpp
This patch add on "64:27" and "256:135" to
drm_aspect_ratio_enum_list. Thereafter, one can specify the aspect ratio to "64:27" or "256:135" after creating aspect ratio property.Change-Id Ifc9df54e8e8f78e70960fcd737a3a57e49c81152Signed-off-by Wayne Lin <[email protected]>--- drivers/gpu/drm/drm_connector.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/drm_connector.c +2
-0@@ -772,6 +772,8 @@ static const struct drm_prop_enum_list drm_aspect_ratio_enum_list[] = { { DRM_MODE_PICTURE_ASPECT_NONE, "Automatic" }, { DRM_MODE_PICTURE_ASPECT_4_3, "4:3" }, { DRM_MODE_PICTURE_ASPECT_16_9, "16:9" }, + { DRM_MODE_PICTURE_ASPECT_64_27, "64:27" }, + { DRM_MODE_PICTURE_ASPECT_256_135, "256:135" },Quoted 2 lines
Not 100% sure we want to expose these via the property because the infoframe can't convey these independently from the VIC.
Agree with that it can't be independent from the VIC.
When building up hdmi avi infoframe by using "drm_hdmi_avi_infoframe_from_display_mode" indrm_edid, it will refer to the VIC to set up the aspect ratio if the aspect ratio is not specified in mode. However, if the aspect ratio is specified to a value other than none, current logic of code will use the specified value.
Quoted 4 lines
The main reason of this patch is for capable indicating the exact VIC wanted.
There are some modes defined in CTA-861 with same timing but different aspect ratio.
eg: VIC 103 & VIC 93
Without these new definitions, we cannot distinguish these different modes and might set a wrong VIC in AVI infoframe.
The mode flags already contain the aspect ratio information. You just need the appropriate client cap to use them.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx