connections can then be made on the gadget system, using
ALSA's aconnect utility etc.
-config TRACK_ID
- bool "track id as serialno"
- depends on USB_CONFIGFS
- help
- use track id as adb device number.
-
config USB_CONFIGFS_F_HID
bool "HID function"
depends on USB_CONFIGFS
char *str;
int ret = -ENOMEM;
-#ifdef CONFIG_TRACK_ID
- return 0;
-#endif
str = kmalloc(CHIPID_SIZE + 1, GFP_KERNEL);
if (!str) {
pr_err("%s: failed to alloc for string\n", __func__);
return ret;
}
+
snprintf(str, CHIPID_SIZE + 1, "%016lx", (long)exynos_soc_info.unique_id);
if (usb_string_copy(str, &gs->serialnumber))
pr_err("%s: failed to copy alternative string\n", __func__);
else
ret = 0;
+
kfree(str);
return ret;
}