usb: create new functions for uwb
uwb needs ACM port, create this function combination. Bug: 187877902 Test: ACM port can be enabled. Signed-off-by: Puma Hsu <pumahsu@google.com> Change-Id: I14c6af95bbd5e9e0b2c4a17a1fffb6e04def2c9b
This commit is contained in:
parent
31cf630527
commit
fbcb7ad5dc
3 changed files with 14 additions and 0 deletions
|
@ -165,6 +165,8 @@ static V1_0::Status validateAndSetVidPid(uint64_t functions) {
|
|||
ret = setVidPid("0x04e8", "0x6862");
|
||||
} else if (vendorFunctions == "etr_miu") {
|
||||
ret = setVidPid("0x18d1", "0x4ee2");
|
||||
} else if (vendorFunctions == "uwb_acm"){
|
||||
ret = setVidPid("0x18d1", "0x4ee2");
|
||||
} else {
|
||||
if (!(vendorFunctions == "user" || vendorFunctions == "")) {
|
||||
ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str());
|
||||
|
@ -284,6 +286,10 @@ V1_0::Status UsbGadget::setupFunctions(uint64_t functions,
|
|||
ALOGI("enable etr_miu functions");
|
||||
if (linkFunction("etr_miu.gs11", i++))
|
||||
return Status::ERROR;
|
||||
} else if (vendorFunctions == "uwb_acm") {
|
||||
ALOGI("enable uwb acm function");
|
||||
if (linkFunction("acm.uwb0", i++))
|
||||
return Status::ERROR;
|
||||
}
|
||||
|
||||
if ((functions & GadgetFunction::ADB) != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue