insert invalid status of HDMI
authorgiyeol.ok <giyeol.ok@samsung.com>
Mon, 19 Nov 2012 11:01:44 +0000 (20:01 +0900)
committergiyeol.ok <giyeol.ok@samsung.com>
Mon, 19 Nov 2012 11:01:44 +0000 (20:01 +0900)
packaging/system-server.spec
ss_device_change_handler.c

index c2f7f8f..443a36f 100755 (executable)
@@ -1,7 +1,7 @@
 #sbs-git:slp/pkgs/s/system-server system-server 0.1.51 56e16bca39f96d6c8aed9ed3df2fea9b393801be
 Name:       system-server
 Summary:    System server
-Version: 0.1.55
+Version: 0.1.56
 Release:    1
 Group:      TO_BE/FILLED_IN
 License:    Flora Software License
index 8baac08..b9aed3f 100755 (executable)
@@ -44,6 +44,7 @@
 #define USBCON_EXEC_PATH       PREFIX"/bin/usb-server"
 #define DEFAULT_USB_INFO_PATH  "/tmp/usb_default"
 #define STORE_DEFAULT_USB_INFO "usb-devices > "DEFAULT_USB_INFO_PATH
+#define HDMI_NOT_SUPPORTED     (-1)
 
 struct input_event {
        long dummy[2];
@@ -184,6 +185,13 @@ static void hdmi_chgdet_cb(struct ss_main_data *ad)
        PRT_TRACE("jack - hdmi changed\n");
        int val;
        pm_change_state(LCD_NORMAL);
+       if (plugin_intf->OEM_sys_get_hdmi_support(&val) == 0) {
+               if (val!=1) {
+                       PRT_TRACE_ERR("target is not support HDMI");
+                       vconf_set_int(VCONFKEY_SYSMAN_HDMI, HDMI_NOT_SUPPORTED);
+                       return;
+               }
+       }
        if (plugin_intf->OEM_sys_get_jack_hdmi_online(&val) == 0) {
                vconf_set_int(VCONFKEY_SYSMAN_HDMI,val);
                if(val == 1)