diff options
| author | Badhri Jagan Sridharan <Badhri@google.com> | 2017-06-13 16:49:00 -0700 |
|---|---|---|
| committer | Badhri Jagan Sridharan <Badhri@google.com> | 2017-06-13 17:32:02 -0700 |
| commit | d7c5ec09ec09b1df3432fa5c7cff11f630c630df (patch) | |
| tree | 504273f2a98d8735eaa6179938131d9d07e5319d /usb | |
| parent | 1303781ac74cf44fa25901d6406c4116e203335d (diff) | |
HAL: usb: rename accessory strings.
With the update in kernel interface the audio accessory and the
debug accessory strings are renamed.
Bug: 62272992
Test: Test analog audio notification
Change-Id: Ic4caea054a01d5b8ebff1794da7bb8d7dbdb1dec
Diffstat (limited to 'usb')
| -rw-r--r-- | usb/Usb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usb/Usb.cpp b/usb/Usb.cpp index 3fc65525..601c70b5 100644 --- a/usb/Usb.cpp +++ b/usb/Usb.cpp @@ -285,10 +285,10 @@ Status getCurrentRoleHelper(const std::string &portName, bool connected, if (getAccessoryConnected(portName, &accessory) != Status::SUCCESS) { return Status::ERROR; } - if (accessory == "Audio Adapter Accessory Mode") { + if (accessory == "analog_audio") { *currentRole = static_cast<uint32_t>(PortMode_1_1::AUDIO_ACCESSORY); return Status::SUCCESS; - } else if (accessory == "Debug Accessory Mode") { + } else if (accessory == "debug") { *currentRole = static_cast<uint32_t>(PortMode_1_1::DEBUG_ACCESSORY); return Status::SUCCESS; } |
