diff options
-rw-r--r-- | devices/display.c | 2 | ||||
-rw-r--r-- | devices/led.c | 2 | ||||
-rw-r--r-- | include/device-node.h | 2 | ||||
-rw-r--r-- | include/devman_plugin_intf.h | 1 | ||||
-rw-r--r-- | src/device-plugin.c | 11 |
5 files changed, 16 insertions, 2 deletions
diff --git a/devices/display.c b/devices/display.c index 2900699..cba2217 100644 --- a/devices/display.c +++ b/devices/display.c @@ -51,6 +51,8 @@ static int display_get_prop(int __prop, int *val) case PROP_DISPLAY_DISPLAY_COUNT: *val = disp_cnt; return 0; + case PROP_DISPLAY_MAX_BRIGHTNESS: + return PLUGIN_GET(backlight_max_brightness)(index, val); case PROP_DISPLAY_BRIGHTNESS: /* check power saving */ vconf_get_bool(VCONFKEY_SETAPPL_PWRSV_SYSMODE_STATUS, &ps_stat); diff --git a/devices/led.c b/devices/led.c index 2ee89db..57db061 100644 --- a/devices/led.c +++ b/devices/led.c @@ -38,6 +38,8 @@ static int led_set_prop(int prop, int val) switch (prop) { case PROP_LED_BRIGHTNESS: return PLUGIN_SET(leds_torch_brightness)(val); + case PROP_LED_IR_COMMAND: + return PLUGIN_SET(irled_control)((char*)val); case PROP_LED_HARDKEY: return PLUGIN_SET(hardkey_backlight)(val); } diff --git a/include/device-node.h b/include/device-node.h index 60caccd..56e4323 100644 --- a/include/device-node.h +++ b/include/device-node.h @@ -66,6 +66,7 @@ enum device_type */ enum { PROP_DISPLAY_DISPLAY_COUNT, + PROP_DISPLAY_MAX_BRIGHTNESS, PROP_DISPLAY_BRIGHTNESS, PROP_DISPLAY_ACL_CONTROL, PROP_DISPLAY_ONOFF, @@ -115,6 +116,7 @@ enum { enum { PROP_LED_BRIGHTNESS, PROP_LED_MAX_BRIGHTNESS, + PROP_LED_IR_COMMAND, PROP_LED_HARDKEY, }; diff --git a/include/devman_plugin_intf.h b/include/devman_plugin_intf.h index c4e0587..b4f4c41 100644 --- a/include/devman_plugin_intf.h +++ b/include/devman_plugin_intf.h @@ -168,6 +168,7 @@ typedef struct { int (*OEM_sys_get_hdmi_support) (int *value); + int (*OEM_sys_set_irled_control) (char *value); int (*OEM_sys_get_hardkey_backlight) (int *value); int (*OEM_sys_set_hardkey_backlight) (int value); diff --git a/src/device-plugin.c b/src/device-plugin.c index 85022d0..4289903 100644 --- a/src/device-plugin.c +++ b/src/device-plugin.c @@ -373,6 +373,11 @@ static int OEM_sys_get_hdmi_support(int *value) return 0; } +static int OEM_sys_set_irled_control(char *value) +{ + return 0; +} + static int OEM_sys_get_hardkey_backlight(int *value){ return 0; } @@ -448,8 +453,6 @@ const OEM_sys_devman_plugin_interface default_plugin = { .OEM_sys_get_jack_tvout_online = &OEM_sys_get_jack_tvout_online, .OEM_sys_get_jack_keyboard_online = &OEM_sys_get_jack_keyboard_online, - .OEM_sys_get_hdmi_support = &OEM_sys_get_hdmi_support, - /* Torch interfaces */ .OEM_sys_get_leds_torch_max_brightness = &OEM_sys_get_leds_torch_max_brightness, .OEM_sys_get_leds_torch_brightness = &OEM_sys_get_leds_torch_brightness, @@ -486,6 +489,10 @@ const OEM_sys_devman_plugin_interface default_plugin = { .OEM_sys_get_whitemagic_mode = &OEM_sys_get_whitemagic_mode, .OEM_sys_set_whitemagic_mode = &OEM_sys_set_whitemagic_mode, + .OEM_sys_get_hdmi_support = &OEM_sys_get_hdmi_support, + + .OEM_sys_set_irled_control = &OEM_sys_set_irled_control, + .OEM_sys_get_hardkey_backlight = &OEM_sys_get_hardkey_backlight, .OEM_sys_set_hardkey_backlight= &OEM_sys_set_hardkey_backlight }; |