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.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -81,6 +81,8 @@ extern "C" { · 80 unmodified lines | |||
| 81 | #define DRM_MODE_PICTURE_ASPECT_NONE 0 | 81 | #define DRM_MODE_PICTURE_ASPECT_NONE 0 |
| 82 | #define DRM_MODE_PICTURE_ASPECT_4_3 1 | 82 | #define DRM_MODE_PICTURE_ASPECT_4_3 1 |
| 83 | #define DRM_MODE_PICTURE_ASPECT_16_9 2 | 83 | #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 | ||
| 84 | 86 | ||
| 85 | /* Aspect ratio flag bitmask (4 bits 22:19) */ | 87 | /* Aspect ratio flag bitmask (4 bits 22:19) */ |
| 86 | #define DRM_MODE_FLAG_PIC_AR_MASK (0x0F<<19) | 88 | #define DRM_MODE_FLAG_PIC_AR_MASK (0x0F<<19) |
| @@ -90,6 +92,10 @@ extern "C" { · 3 unmodified lines | |||
| 90 | (DRM_MODE_PICTURE_ASPECT_4_3<<19) | 92 | (DRM_MODE_PICTURE_ASPECT_4_3<<19) |
| 91 | #define DRM_MODE_FLAG_PIC_AR_16_9 \ | 93 | #define DRM_MODE_FLAG_PIC_AR_16_9 \ |
| 92 | (DRM_MODE_PICTURE_ASPECT_16_9<<19) | 94 | (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) | ||
| 93 | 99 | ||
| 94 | /* DPMS flags */ | 100 | /* DPMS flags */ |
| 95 | /* bit compatible with the xorg definitions. */ | 101 | /* bit compatible with the xorg definitions. */ |