enhance mode information of output
authorBoram Park <boram1288.park@samsung.com>
Sun, 14 Feb 2016 10:51:23 +0000 (19:51 +0900)
committerBoram Park <boram1288.park@samsung.com>
Sun, 14 Feb 2016 11:47:57 +0000 (20:47 +0900)
Change-Id: Id0560973ddb6541db8ec4df339e92d33bd4a9f4c

include/tdm_types.h
src/tdm.c

index 721d95679ffba7e8522711d2951c3d4a0b0f545a..e988153ede488c7040c9030e0940a70739a42fd0 100644 (file)
@@ -237,9 +237,10 @@ typedef enum
  */
 typedef struct _tdm_output_mode
 {
-    unsigned int width;
-    unsigned int height;
-    unsigned int refresh;
+    unsigned int clock;
+    unsigned int hdisplay, hsync_start, hsync_end, htotal, hskew;
+    unsigned int vdisplay, vsync_start, vsync_end, vtotal, vscan;
+    unsigned int vrefresh;
     unsigned int flags;
     unsigned int type;
     char name[TDM_NAME_LEN];
index 7562d4cc1d605a1237b1531ae35e11d866e2e428..ac3f29f4f006c290705cf41b99a37c9397348266 100644 (file)
--- a/src/tdm.c
+++ b/src/tdm.c
@@ -310,9 +310,17 @@ _tdm_display_update_caps_output(tdm_private_display *private_display,
     for (i = 0; i < caps->prop_count; i++)
         TDM_DBG("output props: %d, %s", caps->props[i].id, caps->props[i].name);
     for (i = 0; i < caps->mode_count; i++)
-        TDM_DBG("output modes: name(%s), size(%dx%d), refresh(%d), flags(%d), type(%d)",
-                 caps->modes[i].name, caps->modes[i].width, caps->modes[i].height,
-                 caps->modes[i].refresh, caps->modes[i].flags, caps->modes[i].type);
+    {
+        TDM_DBG("output modes: name(%s), clock(%d) vrefresh(%d), flags(%x), type(%d)",
+                 caps->modes[i].name, caps->modes[i].clock, caps->modes[i].vrefresh,
+                 caps->modes[i].flags, caps->modes[i].type);
+        TDM_DBG("\t\t %d, %d, %d, %d, %d",
+                 caps->modes[i].hdisplay, caps->modes[i].hsync_start, caps->modes[i].hsync_end,
+                 caps->modes[i].htotal, caps->modes[i].hskew);
+        TDM_DBG("\t\t %d, %d, %d, %d, %d",
+                 caps->modes[i].vdisplay, caps->modes[i].vsync_start, caps->modes[i].vsync_end,
+                 caps->modes[i].vtotal, caps->modes[i].vscan);
+    }
     TDM_DBG("output min  : %dx%d", caps->min_w, caps->min_h);
     TDM_DBG("output max  : %dx%d", caps->max_w, caps->max_h);
     TDM_DBG("output align: %d", caps->preferred_align);