aboutsummaryrefslogtreecommitdiffstats
path: root/monitor-parse-edid
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mandriva.org>2010-01-03 04:55:48 +0000
committerAnssi Hannula <anssi@mandriva.org>2010-01-03 04:55:48 +0000
commitf1d5cea2152f948a5da292626cfa6350d541250f (patch)
tree3d90e46577d72d5fe63a472fdb782424f4f178d6 /monitor-parse-edid
parent41650393e8037493532fdcb18f793696af2d2e6a (diff)
downloadmonitor-edid-f1d5cea2152f948a5da292626cfa6350d541250f.tar
monitor-edid-f1d5cea2152f948a5da292626cfa6350d541250f.tar.gz
monitor-edid-f1d5cea2152f948a5da292626cfa6350d541250f.tar.bz2
monitor-edid-f1d5cea2152f948a5da292626cfa6350d541250f.tar.xz
monitor-edid-f1d5cea2152f948a5da292626cfa6350d541250f.zip
monitor-parse-edid: add support for standard timing descriptors in monitor descriptors
Diffstat (limited to 'monitor-parse-edid')
-rwxr-xr-xmonitor-parse-edid4
1 files changed, 3 insertions, 1 deletions
diff --git a/monitor-parse-edid b/monitor-parse-edid
index dacc8ad..a8e9e74 100755
--- a/monitor-parse-edid
+++ b/monitor-parse-edid
@@ -680,7 +680,7 @@ sub add_standard_timing_modes {
}
$h;
} else { () }
- } unpack('a2' x 8, $v) ];
+ } unpack('a2' x (length($v) / 2), $v) ];
$v;
}
@@ -761,6 +761,8 @@ sub parse_edid {
}
$edid{$valid ? 'monitor_range' : 'manufacturer_specified_range_timing'} = $range;
+ } elsif ($flag == 0xfa) {
+ push @{$edid{standard_timings}}, add_standard_timing_modes(\%edid, unpack('a12', $vv));
} elsif ($flag == 0xfc) {
my $prev = $edid{monitor_name};
$edid{monitor_name} = ($prev ? "$prev " : '') . unpack('A13', $vv);