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

Commit 661541d4 authored by Naresh Tanniru's avatar Naresh Tanniru
Browse files

policy_hal: Add Direct PCM flags for track offload

- Direct flag is used to get track offload output

- Non track offload direct output can be return
  due to missing of track offload flag  on output
  request

- Add direct PCM flag while requesting track offload

Change-Id: If19c67fdc522ace73f7d4a201863728b53cef063
parent 06f9943b
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1540,10 +1540,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