No warning on using channel order in AudioPlayer
Don't log a warning when an AudioPlayer derives a channel mask
from the channel count, only info-log when channel count is
higher than 2.
Change-Id: Ia1cbced660903483654eede300ef72f7f17dcf78
diff --git a/media/libstagefright/AudioPlayer.cpp b/media/libstagefright/AudioPlayer.cpp
index 2e0b013..8fb0d8d 100644
--- a/media/libstagefright/AudioPlayer.cpp
+++ b/media/libstagefright/AudioPlayer.cpp
@@ -117,7 +117,9 @@
CHECK(success);
if(!format->findInt32(kKeyChannelMask, &channelMask)) {
- ALOGW("source format didn't specify channel mask, using channel order");
+ // log only when there's a risk of ambiguity of channel mask selection
+ ALOGI_IF(numChannels > 2,
+ "source format didn't specify channel mask, using (%d) channel order", numChannels);
channelMask = CHANNEL_MASK_USE_CHANNEL_ORDER;
}