use trackid as adb device number
Change-Id: I5a5409f3a6ababa284a611adc0be6045167d032d
Signed-off-by: hq_guohongtao5_tmp <guohongtao5@huaqin.com>
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;
}