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

Commit 79ad438e authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

Fix FLAG_BEACON regression

Fix regression where FLAG_BEACON is not honored anymore in terms
 of routing and muting behavior
When converting from AudioAttributes to stream types, also look
 at FLAG_BEACON for mapping to STREAM_TTS

Bug 19185342

Change-Id: I5871c1b94480ae3da544aef99ea9ab4dff97443d
parent 64c496c8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7975,6 +7975,9 @@ audio_stream_type_t AudioPolicyManager::streamTypefromAttributesInt(const audio_
    if ((attr->flags & AUDIO_FLAG_SCO) == AUDIO_FLAG_SCO) {
        return AUDIO_STREAM_BLUETOOTH_SCO;
    }
    if ((attr->flags & AUDIO_FLAG_BEACON) == AUDIO_FLAG_BEACON) {
        return AUDIO_STREAM_TTS;
    }

    // usage to stream type mapping
    switch (attr->usage) {