Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c3297ab authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

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
parent daaf7b11
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -117,7 +117,9 @@ status_t AudioPlayer::start(bool sourceAlreadyStarted) {
    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;
    }