diff options
-rw-r--r-- | drivers/gpu/drm/drm_edid.c | 1 | ||||
-rw-r--r-- | drivers/video/hdmi.c | 6 | ||||
-rw-r--r-- | include/linux/hdmi.h | 1 |
3 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 2381abd452f1..d76d6089106f 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c | |||
@@ -3259,7 +3259,6 @@ drm_hdmi_avi_infoframe_from_display_mode(struct hdmi_avi_infoframe *frame, | |||
3259 | frame->video_code = drm_match_cea_mode(mode); | 3259 | frame->video_code = drm_match_cea_mode(mode); |
3260 | 3260 | ||
3261 | frame->picture_aspect = HDMI_PICTURE_ASPECT_NONE; | 3261 | frame->picture_aspect = HDMI_PICTURE_ASPECT_NONE; |
3262 | frame->active_info_valid = 1; | ||
3263 | frame->active_aspect = HDMI_ACTIVE_ASPECT_PICTURE; | 3262 | frame->active_aspect = HDMI_ACTIVE_ASPECT_PICTURE; |
3264 | 3263 | ||
3265 | return 0; | 3264 | return 0; |
diff --git a/drivers/video/hdmi.c b/drivers/video/hdmi.c index 635d5690dd5a..7ccc118fefed 100644 --- a/drivers/video/hdmi.c +++ b/drivers/video/hdmi.c | |||
@@ -96,7 +96,11 @@ ssize_t hdmi_avi_infoframe_pack(struct hdmi_avi_infoframe *frame, void *buffer, | |||
96 | 96 | ||
97 | ptr[0] = ((frame->colorspace & 0x3) << 5) | (frame->scan_mode & 0x3); | 97 | ptr[0] = ((frame->colorspace & 0x3) << 5) | (frame->scan_mode & 0x3); |
98 | 98 | ||
99 | if (frame->active_info_valid) | 99 | /* |
100 | * Data byte 1, bit 4 has to be set if we provide the active format | ||
101 | * aspect ratio | ||
102 | */ | ||
103 | if (frame->active_aspect & 0xf) | ||
100 | ptr[0] |= BIT(4); | 104 | ptr[0] |= BIT(4); |
101 | 105 | ||
102 | if (frame->horizontal_bar_valid) | 106 | if (frame->horizontal_bar_valid) |
diff --git a/include/linux/hdmi.h b/include/linux/hdmi.h index bc6743e76e37..931474c60b71 100644 --- a/include/linux/hdmi.h +++ b/include/linux/hdmi.h | |||
@@ -109,7 +109,6 @@ struct hdmi_avi_infoframe { | |||
109 | unsigned char version; | 109 | unsigned char version; |
110 | unsigned char length; | 110 | unsigned char length; |
111 | enum hdmi_colorspace colorspace; | 111 | enum hdmi_colorspace colorspace; |
112 | bool active_info_valid; | ||
113 | bool horizontal_bar_valid; | 112 | bool horizontal_bar_valid; |
114 | bool vertical_bar_valid; | 113 | bool vertical_bar_valid; |
115 | enum hdmi_scan_mode scan_mode; | 114 | enum hdmi_scan_mode scan_mode; |