[PATCH 02/10] edid-decode: correct horizontal range in Monitor Ranges

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Broken since commit 1508f040.
The max and min horizontal frequency in the "Monitor ranges" descriptor is to be offset by 255 when bit 3 and bit 2 are set, respectively.

Signed-off-by: Joe van Tunen <joevt@xxxxxxx>
---
 edid-decode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/edid-decode.c b/edid-decode.c
index 4ba0808..b2e57a3 100644
--- a/edid-decode.c
+++ b/edid-decode.c
@@ -863,9 +863,9 @@ static int detailed_block(const unsigned char *x, int in_extension)
 						v_min_offset = 255;
 					}
 				}
-				if (x[4] & 0x04) {
+				if (x[4] & 0x08) {
 					h_max_offset = 255;
-					if (x[4] & 0x03) {
+					if (x[4] & 0x04) {
 						h_min_offset = 255;
 					}
 				}
-- 
2.21.0 (Apple Git-122.2)




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux