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

Commit c8b63c83 authored by Eric Laurent's avatar Eric Laurent
Browse files

Audio Policy Manager: fix priority of routing strategies

The priority ordered list of routing strategies in the default
engine was modified unintentionally by commit ad3dce95.
This CL restores the order by redefining the legacy strategies
enum values in the desired order.

Flag: EXEMPT bug fix
Test: repro steps in bug
Bug: 371082808
Change-Id: I4355603dcab7034f59a8f4e7796d5823ad14646c
parent d35f9921
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -29,19 +29,21 @@ using StreamTypeVector = std::vector<audio_stream_type_t>;
/**
 * Legacy audio policy product strategies IDs. These strategies are supported by the default
 * policy engine.
 * IMPORTANT NOTE: the order of this enum is important as it determines the priority
 * between active strategies for routing decisions: lower enum value => higher prioriy
 */
enum legacy_strategy {
    STRATEGY_NONE = -1,
    STRATEGY_MEDIA,
    STRATEGY_PHONE,
    STRATEGY_SONIFICATION,
    STRATEGY_ENFORCED_AUDIBLE,
    STRATEGY_ACCESSIBILITY,
    STRATEGY_SONIFICATION_RESPECTFUL,
    STRATEGY_MEDIA,
    STRATEGY_DTMF,
    STRATEGY_ENFORCED_AUDIBLE,
    STRATEGY_CALL_ASSISTANT,
    STRATEGY_TRANSMITTED_THROUGH_SPEAKER,
    STRATEGY_ACCESSIBILITY,
    STRATEGY_REROUTING,
    STRATEGY_CALL_ASSISTANT,
    STRATEGY_PATCH,
};