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

Commit 1e025756 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove SCO flag from valid attributes check" into main

parents ef659d88 7f1823bd
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -8732,8 +8732,12 @@ void AudioPolicyManager::setVolumeSourceMutedInternally(VolumeSource volumeSourc

bool AudioPolicyManager::isValidAttributes(const audio_attributes_t *paa)
{
    if ((paa->flags & AUDIO_FLAG_SCO) != 0) {
        ALOGW("%s: deprecated use of AUDIO_FLAG_SCO in attributes flags %d", __func__, paa->flags);
    }

    // has flags that map to a stream type?
    if ((paa->flags & (AUDIO_FLAG_AUDIBILITY_ENFORCED | AUDIO_FLAG_SCO | AUDIO_FLAG_BEACON)) != 0) {
    if ((paa->flags & (AUDIO_FLAG_AUDIBILITY_ENFORCED | AUDIO_FLAG_BEACON)) != 0) {
        return true;
    }