Pal: support FTM mode for four ch speaker protection
updated the logic to support four channel speaker
protection in FTM mode.
Change-Id: I6499562cdc1f4e7eb171a0f46a228709bd66e4dd
diff --git a/device/src/SpeakerProtection.cpp b/device/src/SpeakerProtection.cpp
index a686e4e..307218a 100644
--- a/device/src/SpeakerProtection.cpp
+++ b/device/src/SpeakerProtection.cpp
@@ -2652,7 +2652,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 {
@@ -2808,7 +2808,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;