Merge "pal: add new mutex to synchronize getParam mixer ctl call to AGM"
diff --git a/device/src/SpeakerProtection.cpp b/device/src/SpeakerProtection.cpp
index 30b3c92..3e0fd56 100644
--- a/device/src/SpeakerProtection.cpp
+++ b/device/src/SpeakerProtection.cpp
@@ -2843,7 +2843,7 @@
}
stream = static_cast<Stream *>(activeStreams[0]);
stream->getAssociatedSession(&session);
- for (int ch = numberOfChannels; ch != 0; ch == ch >> CHANNELS_2) {
+ for (int ch = numberOfChannels; ch != 0; ch = ch >> CHANNELS_2) {
if (ch == CHANNELS_4)
tagid = MODULE_SP2;
else {
@@ -2999,7 +2999,7 @@
goto exit;
}
- for (int ch = numberOfChannels; ch != 0; ch == ch >> CHANNELS_2) {
+ for (int ch = numberOfChannels; ch != 0; ch = ch >> CHANNELS_2) {
if (ch == CHANNELS_4)
tagid = MODULE_VI2;