History

drm: Add and handle new aspect ratios in DRM layer

HDMI 2.0/CEA-861-F introduces two new aspect ratios: - 64:27 - 256:135 This patch: - Adds new DRM flags for to represent these new aspect ratios. - Adds new cases to handle these aspect ratios while converting from user->kernel mode or vise versa. V2: Rebase V3: Align macro for DRM_MODE_PICTURE_ASPECT_256_135 (Jim Bride) V4: Added r-b from Jose.

Shashank Sharma committed 10 years ago

Commit a68362f1 parent a6e78b32 files · +18 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/drm/drm_mode.h+6−0
@@ -81,6 +81,8 @@ extern "C" { · 80 unmodified lines
8181 #define DRM_MODE_PICTURE_ASPECT_NONE 0
8282 #define DRM_MODE_PICTURE_ASPECT_4_3 1
8383 #define DRM_MODE_PICTURE_ASPECT_16_9 2
84+#define DRM_MODE_PICTURE_ASPECT_64_27 3
85+#define DRM_MODE_PICTURE_ASPECT_256_135 4
8486
8587 /* Aspect ratio flag bitmask (4 bits 22:19) */
8688 #define DRM_MODE_FLAG_PIC_AR_MASK (0x0F<<19)
@@ -90,6 +92,10 @@ extern "C" { · 3 unmodified lines
9092 (DRM_MODE_PICTURE_ASPECT_4_3<<19)
9193 #define DRM_MODE_FLAG_PIC_AR_16_9 \
9294 (DRM_MODE_PICTURE_ASPECT_16_9<<19)
95+#define DRM_MODE_FLAG_PIC_AR_64_27 \
96+ (DRM_MODE_PICTURE_ASPECT_64_27<<19)
97+#define DRM_MODE_FLAG_PIC_AR_256_135 \
98+ (DRM_MODE_PICTURE_ASPECT_256_135<<19)
9399
94100 /* DPMS flags */
95101 /* bit compatible with the xorg definitions. */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t