Skip to content

Commit f1ed883

Browse files
committed
drm: apple: Set min and max VRRs for MacBook Pros
Since these machines do not have proper EDID/DisplayID data, we need to help the driver along a little bit. We know that "ProMotion" displays can do 24-120 Hz VRR, so let's populate the mode with those values. Signed-off-by: James Calligeros <[email protected]>
1 parent 8c9cd61 commit f1ed883

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/gpu/drm/apple/parser.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,11 @@ static int parse_mode(struct dcp_parse_ctx *handle,
531531
*/
532532
if (vert.precise_sync_rate >> 16 == 120 &&
533533
((horiz.active == 3024 && vert.active == 1964) ||
534-
(horiz.active == 3456 && vert.active == 2234)))
534+
(horiz.active == 3456 && vert.active == 2234))) {
535+
out->min_vrr = 24 << 16;
536+
out->max_vrr = 120 << 16;
535537
out->vrr = true;
538+
}
536539

537540
if (out->min_vrr && out->max_vrr)
538541
out->vrr = true;

0 commit comments

Comments
 (0)