commit | 5d85015acd97d5c222264400126d3d815f21afea | [log] [tgz] |
---|---|---|
author | Tomasz Wasilczyk <twasilczyk@google.com> | Wed Sep 13 20:33:33 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Sep 13 20:33:33 2023 +0000 |
tree | 08129ca7de3c89f68b05338c57517f93cd6535d9 | |
parent | b416ef1239a21fadad72dd36d43f6d95d750582d [diff] | |
parent | 7ccd2acee4eadf16d97736d42112f168c663c140 [diff] |
Merge "Don't depend on String8 cast to C string [audio]" into main am: ecc3e1af82 am: 7ccd2acee4 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2748354 Change-Id: Ib3f9c1f44356392119975b70f81c21de42426bb3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/audio/core/all-versions/default/PrimaryDevice.cpp b/audio/core/all-versions/default/PrimaryDevice.cpp index cf162f1..13efbbc 100644 --- a/audio/core/all-versions/default/PrimaryDevice.cpp +++ b/audio/core/all-versions/default/PrimaryDevice.cpp
@@ -283,7 +283,7 @@ _hidl_cb(retval, TtyMode::OFF); return Void(); } - TtyMode mode = convertTtyModeToHIDL(halMode); + TtyMode mode = convertTtyModeToHIDL(halMode.c_str()); if (mode == TtyMode(-1)) { ALOGE("HAL returned invalid TTY value: %s", halMode.c_str()); _hidl_cb(Result::INVALID_STATE, TtyMode::OFF);