summaryrefslogtreecommitdiff
path: root/decoder/test/edid
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-09-01 18:23:54 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2014-09-01 18:23:54 +0200
commitdd37a782a8637bdee703a13c949b222b9ba8b95d (patch)
tree3674fe7fbd2116a84fbccabf82856423fea6a399 /decoder/test/edid
downloadsigrok-test-dd37a782a8637bdee703a13c949b222b9ba8b95d.tar.gz
sigrok-test-dd37a782a8637bdee703a13c949b222b9ba8b95d.zip
Add initial set of PD tests.
This is a slightly modified version of the PD test suite that was part of libsigrokdecode previously.
Diffstat (limited to 'decoder/test/edid')
-rw-r--r--decoder/test/edid/samsung_le46b620r3p_fields.output49
-rw-r--r--decoder/test/edid/samsung_le46b620r3p_sections.output3
-rw-r--r--decoder/test/edid/samsung_syncmaster245b.output41
-rw-r--r--decoder/test/edid/test.conf15
4 files changed, 108 insertions, 0 deletions
diff --git a/decoder/test/edid/samsung_le46b620r3p_fields.output b/decoder/test/edid/samsung_le46b620r3p_fields.output
new file mode 100644
index 0000000..5490376
--- /dev/null
+++ b/decoder/test/edid/samsung_le46b620r3p_fields.output
@@ -0,0 +1,49 @@
+6170-6497 edid: fields: "EDID header"
+6558-7289 edid: fields: "SAM (Samsung Electric Company)"
+7351-8068 edid: fields: "Product 0x0508"
+8129-9620 edid: fields: "Serial 0"
+9682-10499 edid: fields: "Manufactured week 48, 2008"
+11006-11333 edid: fields: "EDID version: 1.3"
+11394-11721 edid: fields: "Signal level standard: 01"
+11394-11721 edid: fields: "Supported syncs: separate syncs"
+11782-12500 edid: fields: "Physical size: 88x50cm"
+12561-12888 edid: fields: "Gamma: 2.20"
+12950-13279 edid: fields: "DPMS support: active off"
+12950-13279 edid: fields: "Display type: RGB color"
+12950-13279 edid: fields: "Generalized timing formula: not supported"
+13339-17165 edid: fields: "Chromacity red: X 0.640, Y 0.330"
+13339-17165 edid: fields: "Chromacity green: X 0.297, Y 0.598"
+13339-17165 edid: fields: "Chromacity blue: X 0.150, Y 0.060"
+13339-17165 edid: fields: "Chromacity white: X 0.312, Y 0.328"
+17226-18329 edid: fields: "Supported establised modes: 720x400@70Hz, 640x480@60Hz, 640x480@67Hz, 640x480@72Hz, 640x480@75Hz, 800x600@60Hz, 800x600@72Hz, 800x600@75Hz, 832x624@75Hz, 1024x768@60Hz, 1024x768@70Hz, 1024x768@75Hz, 1280x1024@75Hz, 1152x870@75Hz"
+18390-19494 edid: fields: "Supported standard modes: 1152x864@75Hz, 1280x800@60Hz, 1280x960@60Hz, 1280x1024@60Hz, 1440x900@60Hz, 1440x900@75Hz, 1680x1050@60Hz"
+24618-25336 edid: fields: "Pixel clock: 148.50 MHz"
+25397-26500 edid: fields: "Horizontal active: 1920"
+25785-26500 edid: fields: "Horizontal blanking: 280"
+26561-27673 edid: fields: "Vertical active: 1080"
+26951-27673 edid: fields: "Vertical blanking: 45"
+27735-29226 edid: fields: "Horizontal sync offset: 88"
+28123-29226 edid: fields: "Horizontal sync pulse width: 44"
+28511-29226 edid: fields: "Vertical sync offset: 4"
+28511-29226 edid: fields: "Vertical sync pulse width: 5"
+29287-30400 edid: fields: "Physical size: 886x498mm"
+31238-31563 edid: fields: "Flags: sync type digital separate (Vsync polarity positive, Hsync polarity positive)"
+31626-32345 edid: fields: "Pixel clock: 85.50 MHz"
+32408-33516 edid: fields: "Horizontal active: 1360"
+32796-33516 edid: fields: "Horizontal blanking: 432"
+33577-34686 edid: fields: "Vertical active: 768"
+33965-34686 edid: fields: "Vertical blanking: 27"
+34747-36239 edid: fields: "Horizontal sync offset: 64"
+35135-36239 edid: fields: "Horizontal sync pulse width: 112"
+35523-36239 edid: fields: "Vertical sync offset: 3"
+35523-36239 edid: fields: "Vertical sync pulse width: 6"
+36300-37414 edid: fields: "Physical size: 886x498mm"
+38252-38579 edid: fields: "Flags: sync type digital separate (Vsync polarity positive, Hsync polarity positive)"
+40594-40921 edid: fields: "Minimum vertical rate: 60Hz"
+40982-41309 edid: fields: "Maximum vertical rate: 75Hz"
+41370-41697 edid: fields: "Minimum horizontal rate: 30kHz"
+41758-42088 edid: fields: "Maximum horizontal rate: 81kHz"
+42149-42474 edid: fields: "Maximum pixel clock: 150MHz"
+45645-52606 edid: fields: "Model name: SAMSUNG"
+52667-52994 edid: fields: "Extensions present: 0"
+53055-53382 edid: fields: "Checksum: 155 (OK)"
diff --git a/decoder/test/edid/samsung_le46b620r3p_sections.output b/decoder/test/edid/samsung_le46b620r3p_sections.output
new file mode 100644
index 0000000..c3dee64
--- /dev/null
+++ b/decoder/test/edid/samsung_le46b620r3p_sections.output
@@ -0,0 +1,3 @@
+24618-31951 edid: sections: "Preferred timing descriptor"
+31626-38967 edid: sections: "Detailed timing descriptor"
+38640-45584 edid: sections: "Monitor range limits"
diff --git a/decoder/test/edid/samsung_syncmaster245b.output b/decoder/test/edid/samsung_syncmaster245b.output
new file mode 100644
index 0000000..fbbb2ae
--- /dev/null
+++ b/decoder/test/edid/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/decoder/test/edid/test.conf b/decoder/test/edid/test.conf
new file mode 100644
index 0000000..cd6c127
--- /dev/null
+++ b/decoder/test/edid/test.conf
@@ -0,0 +1,15 @@
+test tv
+ protocol-decoder i2c channel scl=0 channel sda=1
+ protocol-decoder edid
+ stack i2c edid
+ input i2c/edid/samsung_le46b620r3p.sr
+ 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
+