[Title] modify 'OEM_sys_set_backlight_dimming()' function
authorjihye kim <jihye1128.kim@samsung.com>
Thu, 30 Aug 2012 12:51:13 +0000 (21:51 +0900)
committerjihye kim <jihye1128.kim@samsung.com>
Thu, 30 Aug 2012 12:51:13 +0000 (21:51 +0900)
[Type] work
[Module] device-manager-plugin-maru
[Priority] major
[Jira#] N/A
[Problem] 'OEM_sys_set_backlight_dimming()' function does not work.
[Cause] emulator does not have dimming node and dimming processing.
[Solution] Temporary implementation - add setting brightness.

packaging/device-manager-plugin-maru.spec
src/device_manager_plugin_maru.c

index 4a07503..657e36a 100644 (file)
@@ -1,6 +1,6 @@
 Name:       device-manager-plugin-maru
 Summary:    device-manager-plugin-maru
-Version: 0.0.7
+Version: 0.0.8
 Release:    1
 Group:      TO_BE/FILLED_IN
 License:    TO_BE/FILLED_IN
index 210582b..044e00f 100644 (file)
@@ -369,6 +369,7 @@ int OEM_sys_get_backlight_min_brightness(int index, int *value)
 
 int OEM_sys_set_backlight_dimming(int index, int value)
 {
+    /*
     int ret = -1;
     char path[MAX_NAME+1];
 
@@ -380,8 +381,12 @@ int OEM_sys_set_backlight_dimming(int index, int value)
     snprintf(path, MAX_NAME, BACKLIGHT_DIMMING_PATH, disp_info[index].lcd_name);
     devmgr_log("path[%s]value[%d]", path, value);
     ret = sys_set_int(path, value);
-
     return ret;
+    */
+
+    // TODO : value is only 1
+    return OEM_sys_set_backlight_brightness(index, 1, 0/*power_saving*/);
+
 }
 
 /* image_enhance */