diff options
author | lokilee73 <changjoo.lee@samsung.com> | 2018-03-28 22:10:08 +0900 |
---|---|---|
committer | lokilee73 <changjoo.lee@samsung.com> | 2018-03-28 22:19:57 +0900 |
commit | 596ad8fb63a407dc8c0ee288c4616dc9e3979d9f (patch) | |
tree | cbe49bfba621354ca31793b1470286cccc624407 | |
parent | 40463783863cbec0b7a16b18caddd5c367286079 (diff) | |
download | device-manager-plugin-odroid-596ad8fb63a407dc8c0ee288c4616dc9e3979d9f.tar.gz device-manager-plugin-odroid-596ad8fb63a407dc8c0ee288c4616dc9e3979d9f.tar.bz2 device-manager-plugin-odroid-596ad8fb63a407dc8c0ee288c4616dc9e3979d9f.zip |
Move usb configuration for TV profile to devicedsubmit/tizen/20180329.061644accepted/tizen/unified/20180330.060804
Change-Id: Ie23d0506aee1349131ff4827e4c50c17751d29c8
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
-rwxr-xr-x[-rw-r--r--] | hw/usb_gadget/usb_gadget.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/hw/usb_gadget/usb_gadget.c b/hw/usb_gadget/usb_gadget.c index 8f6aea6..07104ce 100644..100755 --- 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 |