From 357fbb630e184eb1278ee2010f760ea8b0fde858 Mon Sep 17 00:00:00 2001 From: paulb-nl Date: Tue, 24 May 2022 00:30:21 +0200 Subject: [PATCH] video: Use pixel repetition with Directvideo in Menu core only (#618) Cores with Directvideo and composite sync don't seem to need VSync aligned to HSync when pixel repetition is disabled which saves time and effort adjusting cores. --- video.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video.cpp b/video.cpp index 02c84d5..02b7f88 100644 --- a/video.cpp +++ b/video.cpp @@ -1007,7 +1007,7 @@ static void hdmi_config() 0x2E, (uint8_t)(ypbpr ? 0x07 : 0x01), 0x2F, (uint8_t)(ypbpr ? 0xE7 : 0x00), - 0x3B, (uint8_t)(cfg.direct_video ? 0 : 0b01000000), // Pixel repetition [6:5] b00 AUTO. [4:3] b00 x1 mult of input clock. [2:1] b00 x1 pixel rep to send to HDMI Rx. + 0x3B, (uint8_t)(cfg.direct_video && is_menu() ? 0 : 0b01000000), // Pixel repetition [6:5] b00 AUTO. [4:3] b00 x1 mult of input clock. [2:1] b00 x1 pixel rep to send to HDMI Rx. // Pixel repetition set to manual to avoid VIC auto detection as defined in ADV7513 Programming Guide 0x40, 0x00, // General Control Packet Enable