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

Commit 7f1823bd authored by Vlad Popa's avatar Vlad Popa
Browse files

Remove SCO flag from valid attributes check

Test: manual
Bug: 376756660
Flag: EXEMPT bugfix
Change-Id: I6c7240c1eb550248061a16ea4a66772f5e10c661
parent 97e57dde
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -8723,8 +8723,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;
    }