Loading policy_hal/AudioPolicyManager.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -1447,8 +1447,8 @@ audio_io_handle_t AudioPolicyManagerCustom::getOutputForDevice( property_get("use.voice.path.for.pcm.voip", propValue, "0"); bool voipPcmSysPropEnabled = !strncmp("true", propValue, sizeof("true")); if (voipPcmSysPropEnabled && (format == AUDIO_FORMAT_PCM_16_BIT)) { flags = (audio_output_flags_t)((flags &~AUDIO_OUTPUT_FLAG_FAST) | AUDIO_OUTPUT_FLAG_VOIP_RX | AUDIO_OUTPUT_FLAG_DIRECT); flags = (audio_output_flags_t)(AUDIO_OUTPUT_FLAG_VOIP_RX | AUDIO_OUTPUT_FLAG_DIRECT); ALOGD("Set VoIP and Direct output flags for PCM format"); } } Loading Loading
policy_hal/AudioPolicyManager.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -1447,8 +1447,8 @@ audio_io_handle_t AudioPolicyManagerCustom::getOutputForDevice( property_get("use.voice.path.for.pcm.voip", propValue, "0"); bool voipPcmSysPropEnabled = !strncmp("true", propValue, sizeof("true")); if (voipPcmSysPropEnabled && (format == AUDIO_FORMAT_PCM_16_BIT)) { flags = (audio_output_flags_t)((flags &~AUDIO_OUTPUT_FLAG_FAST) | AUDIO_OUTPUT_FLAG_VOIP_RX | AUDIO_OUTPUT_FLAG_DIRECT); flags = (audio_output_flags_t)(AUDIO_OUTPUT_FLAG_VOIP_RX | AUDIO_OUTPUT_FLAG_DIRECT); ALOGD("Set VoIP and Direct output flags for PCM format"); } } Loading