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

Commit 0f27c60d authored by Dean Wheatley's avatar Dean Wheatley
Browse files

Support float/32-bit/24-bit PCM MSD patches

Bug: 165030582
Change-Id: I924185b4c3a54ed7ea9912ede27ce05e448488e2
parent a8fb9121
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1657,7 +1657,8 @@ status_t AudioPolicyManager::getBestMsdConfig(bool hwAvSync,
    // Compressed formats for MSD module, ordered from most preferred to least preferred.
    static const std::vector<audio_format_t> formatsOrder = {{
            AUDIO_FORMAT_IEC60958, AUDIO_FORMAT_MAT_2_1, AUDIO_FORMAT_MAT_2_0, AUDIO_FORMAT_E_AC3,
            AUDIO_FORMAT_AC3, AUDIO_FORMAT_PCM_16_BIT }};
            AUDIO_FORMAT_AC3, AUDIO_FORMAT_PCM_FLOAT, AUDIO_FORMAT_PCM_32_BIT,
            AUDIO_FORMAT_PCM_8_24_BIT, AUDIO_FORMAT_PCM_24_BIT_PACKED, AUDIO_FORMAT_PCM_16_BIT }};
    static const std::vector<audio_channel_mask_t> channelMasksOrder = [](){
        // Channel position masks for MSD module, 3D > 2D > 1D ordering (most preferred to least
        // preferred).