From ac956d201809668bb603fe72e47e51264badb85a Mon Sep 17 00:00:00 2001 From: Sorgelig Date: Thu, 19 May 2022 04:09:31 +0800 Subject: [PATCH] video: fix direct_video mode. --- video.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video.cpp b/video.cpp index 7fead2e..c88b75f 100644 --- a/video.cpp +++ b/video.cpp @@ -954,7 +954,7 @@ static void hdmi_config() 0x2E, (uint8_t)(ypbpr ? 0x07 : 0x01), 0x2F, (uint8_t)(ypbpr ? 0xE7 : 0x00), - 0x3B, 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 ? 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 @@ -1212,7 +1212,7 @@ static int parse_custom_video_mode(char* vcfg, vmode_custom_t *v) static int store_custom_video_mode(char* vcfg, vmode_custom_t *v) { memset(v, 0, sizeof(vmode_custom_t)); - + int ret = parse_custom_video_mode(vcfg, v); if (ret == -2) return 1;