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

Commit 97373b0f authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

audioflinger: Use AUDIO_HARDWARE_MODULE_ID_MSD where appropriate

After separating the constants for MSD service and module names,
use the module name when working with modules.

Bug: 63901775
Test: make
Change-Id: Icf80d28903e5c36051e33c4be818fd3d7256ce91
parent a2a19382
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1877,7 +1877,7 @@ audio_module_handle_t AudioFlinger::loadHwModule_l(const char *name)

        mHardwareStatus = AUDIO_HW_IDLE;
    }
    if (strcmp(name, AUDIO_HAL_SERVICE_NAME_MSD) == 0) {
    if (strcmp(name, AUDIO_HARDWARE_MODULE_ID_MSD) == 0) {
        // An MSD module is inserted before hardware modules in order to mix encoded streams.
        flags = static_cast<AudioHwDevice::Flags>(flags | AudioHwDevice::AHWD_IS_INSERT);
    }