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
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index c389683..9234364 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -1877,7 +1877,7 @@
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);
}