diff --git a/audio/impl/PrimaryDevice.cpp b/audio/impl/PrimaryDevice.cpp index cf162f1..13efbbc 100644 --- a/audio/impl/PrimaryDevice.cpp +++ b/audio/impl/PrimaryDevice.cpp @@ -283,7 +283,7 @@ Return PrimaryDevice::getTtyMode(getTtyMode_cb _hidl_cb) { _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);