hidl: usb: Correct supportedModes

* DRP is not supported, switch back to what we had with our old 1.1-typec HAL
* Restores support for external display

Change-Id: I0792a629bb082ceb95582bc28447d7cdea757f2e
urubino
Tim Zimmermann 3 years ago
parent f9eb47822a
commit 36ae4f84b7
No known key found for this signature in database
GPG Key ID: 6DC21A63F819C5EF
  1. 4
      hidl/usb/Usb.cpp

@ -521,13 +521,13 @@ Status getPortStatusHelper(hidl_vec<PortStatus> *currentPortStatus_1_2, HALVersi
if (version == HALVersion::V1_0) {
ALOGI("HAL version V1_0");
(*currentPortStatus_1_2)[i].status_1_1.status.supportedModes = V1_0::PortMode::DRP;
(*currentPortStatus_1_2)[i].status_1_1.status.supportedModes = V1_0::PortMode::DFP;
} else {
if (version == HALVersion::V1_1)
ALOGI("HAL version V1_1");
else
ALOGI("HAL version V1_2");
(*currentPortStatus_1_2)[i].status_1_1.supportedModes = 0 | PortMode_1_1::DRP;
(*currentPortStatus_1_2)[i].status_1_1.supportedModes = PortMode_1_1::UFP | PortMode_1_1::DFP;
(*currentPortStatus_1_2)[i].status_1_1.status.supportedModes = V1_0::PortMode::NONE;
(*currentPortStatus_1_2)[i].status_1_1.status.currentMode = V1_0::PortMode::NONE;
}

Loading…
Cancel
Save