summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi Sun <yi.sun@intel.com>2011-08-04 10:49:14 +0800
committerYi Sun <yi.sun@intel.com>2011-08-04 10:49:14 +0800
commit5642009819142b34803b1ca30d2155111a7aacdf (patch)
tree3b89b0c46225db1981e9449e1c8da62fa5e308ef
parent4f660686d68d96a3846c46df5579234d9beaef66 (diff)
Add some commens.
-rw-r--r--testedid.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/testedid.c b/testedid.c
index 4c5ed42..a8be461 100644
--- a/testedid.c
+++ b/testedid.c
@@ -26,6 +26,8 @@
* Now, it is mainly parse all the information in the block 0 of the EDID.
*
* TODO:
+ * -HDMI block parse
+ * -
*/
#include <stdio.h>
@@ -238,6 +240,7 @@ get_connected_card_list(char *** connected_card_list )
}
(*connected_card_list)= malloc(MAXCARD * sizeof(char*));
+
dirent_ptr = readdir(drm_dir_ptr);
while (dirent_ptr) {
@@ -302,6 +305,7 @@ static void find_est_mode(struct mode_line* m, struct drm_display_mode* rmode)
}
}
}
+
static int gethdmiblock(char edid[])
{
for (int i = 0; i < MAXEDID; i++) {
@@ -320,6 +324,7 @@ static int check_edid(char edid[])
}
return 0;
}
+
static int parse_edid_vendor_product(char edid[])
{
/*
@@ -559,7 +564,6 @@ static int parse_edid_standar_timing(char edid[])
strcat(tdmtmode.mode , tmod);
tdmtmode.freq = stdtiminginfo.vertfrequency + 60;
- // printf("\t\t%s @ %d\n",tdmtmode.mode,tdmtmode.freq);
find_dmt_mode(&tdmtmode, &rmodeline);
printf("\t\t%s @ %d %d %d %d (%s)\n", rmodeline.name, rmodeline.freq, rmodeline.pclock, rmodeline.htot, rmodeline.vtot, msg);
@@ -574,6 +578,7 @@ static int parse_edid_detail_timing(char edid[])
union Sync sync;
memset(&pixclk, 0, sizeof(union PixelClock));
+
for(int i = 0; i < 4; i++) {
int Hdisp, Vdisp, Hblank, Vblank;
float freq;
@@ -681,7 +686,7 @@ int main(void)
printf("\33[1;;32mThe connected monitor number: %d\n\33[0m", connected_count);
for (int i = 0; i < connected_count; i++) {
- printf("\33[1;;32m%d. Connected monitor card: %s\n\33[0m", i+1, connected_card_list[0]);
+ printf("\33[1;;32m%d. Connected monitor card: %s\n\33[0m", i + 1, connected_card_list[0]);
print_edid(edid_list[i]);