Move usb configuration for TV profile to deviced 51/174151/2 accepted/tizen/unified/20180330.060804 submit/tizen/20180329.061644
authorlokilee73 <changjoo.lee@samsung.com>
Wed, 28 Mar 2018 13:10:08 +0000 (22:10 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Wed, 28 Mar 2018 13:19:57 +0000 (22:19 +0900)
Change-Id: Ie23d0506aee1349131ff4827e4c50c17751d29c8
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
hw/usb_gadget/usb_gadget.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 8f6aea6..07104ce
@@ -182,25 +182,6 @@ static inline struct usb_function *find_func(struct usb_gadget *gadget,
        return gadget->funcs[i];
 }
 
-static int is_tv_profile(void)
-{
-       int ret;
-       char *profile_name = NULL;
-       const char const *tv_profile_name = "tv";
-
-       ret = system_info_get_platform_string("http://tizen.org/feature/profile", &profile_name);
-
-       if (ret == SYSTEM_INFO_ERROR_NONE) {
-               ret = strncmp(profile_name, tv_profile_name, strlen(tv_profile_name));
-               free(profile_name);
-
-               if (ret == 0)
-                       return 1;
-       }
-
-       return 0;
-}
-
 static int simple_id_to_gadget(struct usb_gadget_id *gadget_id,
                               struct usb_gadget **_gadget)
 {
@@ -220,10 +201,6 @@ static int simple_id_to_gadget(struct usb_gadget_id *gadget_id,
        if (ret)
                goto out;
 
-       /* XU3 TV profile does not support mtp */
-       if (is_tv_profile())
-               gadget_id->function_mask &= ~USB_FUNCTION_MTP;
-
        /*
         * Currently all gadgets use inly single configuration but
         * slp-gadget is capable to handle two of them