mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-01-27 14:29:33 +00:00
usb: Add dm condition in NCM
Add vid/pid 04e8/6862 for dm condition in NCM Test: The usb gadget functions work normally Bug: 226682477 Signed-off-by: Ricky Niu <rickyniu@google.com> Change-Id: I263f125d2ff961a6967b5b536c71fcbdcd87ed05
This commit is contained in:
committed by
TreeHugger Robot
parent
6bfa5980f9
commit
7d413565cd
@@ -270,9 +270,13 @@ static V1_0::Status validateAndSetVidPid(uint64_t functions) {
|
||||
ret = setVidPid("0x18d1", "0x4eeb");
|
||||
break;
|
||||
case GadgetFunction::ADB | GadgetFunction::NCM:
|
||||
if (!(vendorFunctions == "user" || vendorFunctions == ""))
|
||||
ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str());
|
||||
ret = setVidPid("0x18d1", "0x4eec");
|
||||
if (vendorFunctions == "dm") {
|
||||
ret = setVidPid("0x04e8", "0x6862");
|
||||
} else {
|
||||
if (!(vendorFunctions == "user" || vendorFunctions == ""))
|
||||
ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str());
|
||||
ret = setVidPid("0x18d1", "0x4eec");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
ALOGE("Combination not supported");
|
||||
|
||||
Reference in New Issue
Block a user