Home
last modified time | relevance | path

Searched refs:halMode (Results 1 – 4 of 4) sorted by relevance

/hardware/interfaces/audio/core/all-versions/default/
DPrimaryDevice.cpp245 static IPrimaryDevice::TtyMode convertTtyModeToHIDL(const char* halMode) { in convertTtyModeToHIDL() argument
246 if (strcmp(halMode, AUDIO_PARAMETER_VALUE_TTY_OFF) == 0) in convertTtyModeToHIDL()
248 else if (strcmp(halMode, AUDIO_PARAMETER_VALUE_TTY_VCO) == 0) in convertTtyModeToHIDL()
250 else if (strcmp(halMode, AUDIO_PARAMETER_VALUE_TTY_HCO) == 0) in convertTtyModeToHIDL()
252 else if (strcmp(halMode, AUDIO_PARAMETER_VALUE_TTY_FULL) == 0) in convertTtyModeToHIDL()
258 String8 halMode; in getTtyMode() local
259 Result retval = mDevice->getParam(AUDIO_PARAMETER_KEY_TTY_MODE, &halMode); in getTtyMode()
264 TtyMode mode = convertTtyModeToHIDL(halMode); in getTtyMode()
266 ALOGE("HAL returned invalid TTY value: %s", halMode.c_str()); in getTtyMode()
/hardware/interfaces/audio/effect/all-versions/default/
DVisualizerEffect.cpp187 int32_t halMode; in getScalingMode() local
188 Result retval = mEffect->getParam(VISUALIZER_PARAM_SCALING_MODE, halMode); in getScalingMode()
189 _hidl_cb(retval, ScalingMode(halMode)); in getScalingMode()
212 int32_t halMode; in getMeasurementMode() local
213 Result retval = mEffect->getParam(VISUALIZER_PARAM_MEASUREMENT_MODE, halMode); in getMeasurementMode()
214 _hidl_cb(retval, MeasurementMode(halMode)); in getMeasurementMode()
DVirtualizerEffect.cpp226 uint32_t halMode = 0; in getVirtualizationMode() local
227 Result retval = mEffect->getParam(VIRTUALIZER_PARAM_FORCE_VIRTUALIZATION_MODE, halMode); in getVirtualizationMode()
228 _hidl_cb(retval, AudioDevice(halMode)); in getVirtualizationMode()
DEffect.cpp540 uint32_t halMode = static_cast<uint32_t>(mode); in setAudioMode() local
541 return sendCommand(EFFECT_CMD_SET_AUDIO_MODE, "SET_AUDIO_MODE", sizeof(uint32_t), &halMode); in setAudioMode()