sm7125-common: audio-impl: Don't depend on String8 cast to C string

Bug: 295394788
Test: m checkbuild
Change-Id: I73acbfad6da4f18566f6b11889e83679deeaa2b8
fourteen-wip
Tomasz Wasilczyk 1 year ago committed by Simon1511
parent 67c9c40da7
commit 98ef5a1b55
  1. 2
      audio/impl/PrimaryDevice.cpp

@ -283,7 +283,7 @@ Return<void> PrimaryDevice::getTtyMode(getTtyMode_cb _hidl_cb) {
_hidl_cb(retval, TtyMode::OFF); _hidl_cb(retval, TtyMode::OFF);
return Void(); return Void();
} }
TtyMode mode = convertTtyModeToHIDL(halMode); TtyMode mode = convertTtyModeToHIDL(halMode.c_str());
if (mode == TtyMode(-1)) { if (mode == TtyMode(-1)) {
ALOGE("HAL returned invalid TTY value: %s", halMode.c_str()); ALOGE("HAL returned invalid TTY value: %s", halMode.c_str());
_hidl_cb(Result::INVALID_STATE, TtyMode::OFF); _hidl_cb(Result::INVALID_STATE, TtyMode::OFF);

Loading…
Cancel
Save