[audio][fugu] Fix typo in max channel scanner.
Looks like a copy and paste error.
Error was masked by the fact that modes with higher numbers
of channels usually come after modes with lower numbers.
Bug: 19197882
Change-Id: I12a916966c8eb018da2817dea8e3be110787dcf2
Signed-off-by: Phil Burk <philburk@google.com>
diff --git a/libaudio/alsa_utils.cpp b/libaudio/alsa_utils.cpp
index b05097f..cbafc7d 100644
--- a/libaudio/alsa_utils.cpp
+++ b/libaudio/alsa_utils.cpp
@@ -343,7 +343,7 @@
for (size_t i = 0; i < mModes.size(); ++i) {
if ((mModes[i].fmt == kFmtLPCM) && (max_ch < mModes[i].max_ch)) {
- max_ch < mModes[i].max_ch;
+ max_ch = mModes[i].max_ch;
max_ch_ndx = i;
}
}