Q) Can OEMs change the interface order in the Android composite device?
Yes, OEMs can modify usb_func_composition[] array instance in kernel/arch/arm/mach-msm/board-XXXXX.c file.
.functions variable in array instance contains interface order.
OEMs can change the interface order in the Android composite devices with this variable. If OEMs are using the gadget frame work for usb driver, check the function android_bind_config() to know how the interfaces are added to android composite device.
When OEM changes the interface order, they also need to change .inf files of Host driver so that there will not be any detection problem.
It is recommended that DIAG interface, should be always first interface in a compositions. So that when device switches to DLOAD mode there will not be any COM port change.
Q) Can OEMs change the interfaces number in non sequential order with android composite device?
Ans) usb_interface_id() function in the Composite.c file need be changed so that for each interface gets unique interface number according to OEMs requirements.
No comments:
Post a Comment