projects
/
framework
/
system
/
system-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change usb control process name to usb-server
[framework/system/system-server.git]
/
ss_usb_handler.c
diff --git
a/ss_usb_handler.c
b/ss_usb_handler.c
index
94a61af
..
13b51a0
100644
(file)
--- a/
ss_usb_handler.c
+++ b/
ss_usb_handler.c
@@
-24,8
+24,8
@@
#include "ss_launch.h"
#include "include/ss_data.h"
#include "ss_launch.h"
#include "include/ss_data.h"
-#define USBCON_EXEC_PATH PREFIX"/bin/usb
_setting
"
-#define RETRY 3
+#define USBCON_EXEC_PATH PREFIX"/bin/usb
-server
"
+#define RETRY
3
int ss_usb_init()
{
int ss_usb_init()
{
@@
-33,11
+33,11
@@
int ss_usb_init()
PRT_TRACE("check usb connection");
if (plugin_intf->OEM_sys_get_jack_usb_online(&val) == 0) {
PRT_TRACE("check usb connection");
if (plugin_intf->OEM_sys_get_jack_usb_online(&val) == 0) {
- if (val) {
+ if (val
==1
) {
vconf_set_int(VCONFKEY_SYSMAN_USB_STATUS,
vconf_set_int(VCONFKEY_SYSMAN_USB_STATUS,
- VCONFKEY_SYSMAN_USB_AVAILABLE);
+
VCONFKEY_SYSMAN_USB_AVAILABLE);
while (i < RETRY
while (i < RETRY
- && pm_lock_state(LCD_OFF, STAY_CUR_STATE,
+
&& pm_lock_state(LCD_OFF, STAY_CUR_STATE,
0) == -1) {
i++;
sleep(1);
0) == -1) {
i++;
sleep(1);
@@
-48,6
+48,8
@@
int ss_usb_init()
return -1;
}
}
return -1;
}
}
+ else if (val==0)
+ vconf_set_int(VCONFKEY_SYSMAN_USB_STATUS,VCONFKEY_SYSMAN_USB_DISCONNECTED);
}
return 0;
}
return 0;