commit | 11db62f2f9ebcf4d1360abfd1dca08d83a0ff15f | [log] [tgz] |
---|---|---|
author | qctecmdr <qctecmdr@localhost> | Thu Dec 21 23:48:15 2023 -0800 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Thu Dec 21 23:48:15 2023 -0800 |
tree | ba8a4000636fcc52dc36bccd2087b94d3a6b2a57 | |
parent | 3603d126d629e763de8785ac5d85e1d705f073ec [diff] | |
parent | 1ee3a4046cf11243cf3f079827b13fc58630329a [diff] |
Merge "hal: Clear android devices if usb device is unavailable"
diff --git a/hal/AudioStream.cpp b/hal/AudioStream.cpp index 0bec4fc..3c88c56 100644 --- a/hal/AudioStream.cpp +++ b/hal/AudioStream.cpp
@@ -2456,6 +2456,7 @@ if (ret<0){ AHAL_ERR("Error usb device is not connected"); + mAndroidOutDevices.clear(); ret = -ENOSYS; goto done; } @@ -4503,6 +4504,7 @@ if (ret<0) { AHAL_ERR("Error usb device is not connected"); + mAndroidInDevices.clear(); ret = -ENOSYS; goto done; }