From: lokilee73 Date: Wed, 28 Mar 2018 13:10:08 +0000 (+0900) Subject: Move usb configuration for TV profile to deviced X-Git-Tag: submit/tizen/20180329.061644^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=596ad8fb63a407dc8c0ee288c4616dc9e3979d9f;p=platform%2Fadaptation%2Fsamsung_exynos%2Fdevice-manager-plugin-odroid.git Move usb configuration for TV profile to deviced Change-Id: Ie23d0506aee1349131ff4827e4c50c17751d29c8 Signed-off-by: lokilee73 --- diff --git a/hw/usb_gadget/usb_gadget.c b/hw/usb_gadget/usb_gadget.c old mode 100644 new mode 100755 index 8f6aea6..07104ce --- a/hw/usb_gadget/usb_gadget.c +++ b/hw/usb_gadget/usb_gadget.c @@ -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