diff options
author | jihye kim <jihye1128.kim@samsung.com> | 2012-08-30 21:51:13 +0900 |
---|---|---|
committer | jihye kim <jihye1128.kim@samsung.com> | 2012-08-30 21:51:13 +0900 |
commit | e2aa43290c6cc19ebe356b2773ad46cd43ad532c (patch) | |
tree | d75d15b80f95cfb5a5776e0398159bd07672d0f8 | |
parent | 66b199cc00323dd7e345c049f9c1e11f6e2425bf (diff) | |
download | device-manager-plugin-emul-e2aa43290c6cc19ebe356b2773ad46cd43ad532c.tar.gz device-manager-plugin-emul-e2aa43290c6cc19ebe356b2773ad46cd43ad532c.tar.bz2 device-manager-plugin-emul-e2aa43290c6cc19ebe356b2773ad46cd43ad532c.zip |
[Title] modify 'OEM_sys_set_backlight_dimming()' function
[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.
-rw-r--r-- | packaging/device-manager-plugin-maru.spec | 2 | ||||
-rw-r--r-- | src/device_manager_plugin_maru.c | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/packaging/device-manager-plugin-maru.spec b/packaging/device-manager-plugin-maru.spec index 4a07503..657e36a 100644 --- a/packaging/device-manager-plugin-maru.spec +++ b/packaging/device-manager-plugin-maru.spec @@ -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 diff --git a/src/device_manager_plugin_maru.c b/src/device_manager_plugin_maru.c index 210582b..044e00f 100644 --- a/src/device_manager_plugin_maru.c +++ b/src/device_manager_plugin_maru.c @@ -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 */ |