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)
{
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