summaryrefslogtreecommitdiff
path: root/decoders/edid
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2014-06-24 16:04:45 +0200
committerBert Vermeulen <bert@biot.com>2014-06-24 16:04:45 +0200
commit66a6eee7b0783f816187e75324df09a729a4070e (patch)
treeaef87ce5fca317eb066e753a7431faae9be61796 /decoders/edid
parentd45058e87e7045fef1b7c4425de1917a554545f7 (diff)
downloadlibsigrokdecode-66a6eee7b0783f816187e75324df09a729a4070e.tar.gz
libsigrokdecode-66a6eee7b0783f816187e75324df09a729a4070e.zip
edid: Add another test, covering more code in the PD.
Diffstat (limited to 'decoders/edid')
-rw-r--r--decoders/edid/test/samsung_syncmaster245b.output41
-rw-r--r--decoders/edid/test/test.conf7
2 files changed, 48 insertions, 0 deletions
diff --git a/decoders/edid/test/samsung_syncmaster245b.output b/decoders/edid/test/samsung_syncmaster245b.output
new file mode 100644
index 0000000..fbbb2ae
--- /dev/null
+++ b/decoders/edid/test/samsung_syncmaster245b.output
@@ -0,0 +1,41 @@
+6226-6555 edid: fields: "EDID header"
+6615-7330 edid: fields: "SAM (Samsung Electric Company)"
+7392-8107 edid: fields: "Product 0x02b5"
+8168-9658 edid: fields: "Serial HU24"
+9721-10442 edid: fields: "Manufactured week 1, 2008"
+10892-11217 edid: fields: "EDID version: 1.3"
+11280-11606 edid: fields: "Signal level standard: 00"
+11280-11606 edid: fields: "Supported syncs: separate syncs, composite syncs, sync on green"
+11667-12382 edid: fields: "Physical size: 52x32cm"
+12443-12771 edid: fields: "Gamma: 2.60"
+12832-13157 edid: fields: "DPMS support: active off"
+12832-13157 edid: fields: "Display type: RGB color"
+12832-13157 edid: fields: "Generalized timing formula: not supported"
+13220-17040 edid: fields: "Chromacity red: X 0.653, Y 0.337"
+13220-17040 edid: fields: "Chromacity green: X 0.293, Y 0.605"
+13220-17040 edid: fields: "Chromacity blue: X 0.144, Y 0.075"
+13220-17040 edid: fields: "Chromacity white: X 0.312, Y 0.328"
+17101-18203 edid: fields: "Supported establised modes: 720x400@70Hz, 640x480@60Hz, 640x480@67Hz, 640x480@72Hz, 640x480@75Hz, 800x600@56Hz, 800x600@60Hz, 800x600@72Hz, 800x600@75Hz, 832x624@75Hz, 1024x768@60Hz, 1024x768@70Hz, 1024x768@75Hz, 1280x1024@75Hz, 1152x870@75Hz"
+18264-19367 edid: fields: "Supported standard modes: 1600x1200@60Hz, 1280x1024@60Hz, 1280x960@60Hz, 1152x864@75Hz"
+24470-31780 edid: sections: "Preferred timing descriptor"
+24470-25185 edid: fields: "Pixel clock: 154.00 MHz"
+25246-26348 edid: fields: "Horizontal active: 1920"
+25634-26348 edid: fields: "Horizontal blanking: 160"
+26409-27511 edid: fields: "Vertical active: 1200"
+26798-27511 edid: fields: "Vertical blanking: 35"
+27574-29065 edid: fields: "Horizontal sync offset: 48"
+27961-29065 edid: fields: "Horizontal sync pulse width: 32"
+28349-29065 edid: fields: "Vertical sync offset: 3"
+28349-29065 edid: fields: "Vertical sync pulse width: 6"
+29126-30228 edid: fields: "Physical size: 518x324mm"
+31066-31391 edid: fields: "Flags: sync type digital separate (Vsync polarity negative, Hsync polarity positive)"
+31454-38375 edid: sections: "Monitor range limits"
+33393-33720 edid: fields: "Minimum vertical rate: 56Hz"
+33781-34108 edid: fields: "Maximum vertical rate: 75Hz"
+34169-34496 edid: fields: "Minimum horizontal rate: 30kHz"
+34557-34884 edid: fields: "Maximum horizontal rate: 81kHz"
+34945-35271 edid: fields: "Maximum pixel clock: 170MHz"
+38436-45359 edid: fields: "Model name: SyncMaster"
+45420-52348 edid: fields: "Serial number: HS1Q102936"
+52409-52736 edid: fields: "Extensions present: 0"
+52797-53122 edid: fields: "Checksum: 64 (OK)"
diff --git a/decoders/edid/test/test.conf b/decoders/edid/test/test.conf
index 2f3eb4c..cd6c127 100644
--- a/decoders/edid/test/test.conf
+++ b/decoders/edid/test/test.conf
@@ -6,3 +6,10 @@ test tv
output edid annotation class fields match samsung_le46b620r3p_fields.output
output edid annotation class sections match samsung_le46b620r3p_sections.output
+test lcd
+ protocol-decoder i2c channel scl=0 channel sda=1
+ protocol-decoder edid
+ stack i2c edid
+ input i2c/edid/samsung_syncmaster245b.sr
+ output edid annotation match samsung_syncmaster245b.output
+