Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d18af05c authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "audio: update flags for selection of VoIP direct output" into av-userspace.lnx.1.0-dev.1.0

parents 81c4261a 3fb9be73
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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");
                }
            }