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

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

Merge "policy_hal: Add Direct PCM flags for track offload"

parents 3fef9108 661541d4
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1541,10 +1541,8 @@ audio_io_handle_t AudioPolicyManagerCustom::getOutputForDevice(
        (offloadInfo != NULL) &&
        ((offloadInfo->usage == AUDIO_USAGE_MEDIA ||
        (offloadInfo->usage == AUDIO_USAGE_GAME)))) {
        if ((flags & AUDIO_OUTPUT_FLAG_DIRECT) == 0) {
         ALOGD("AudioCustomHAL --> Force Direct Flag ..");
            flags = (audio_output_flags_t)(flags | AUDIO_OUTPUT_FLAG_DIRECT);
        }
         flags = (audio_output_flags_t)(AUDIO_OUTPUT_FLAG_DIRECT_PCM | AUDIO_OUTPUT_FLAG_DIRECT);
    }

    // only allow deep buffering for music stream type