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

Commit 83289653 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

AudioPolicyManager: Fix logging statement

We move our 'return' to after our ALOGD statement, so we'll
get the information logged.

Test: Treehugger
Change-Id: Ieb6953633d197baf4311ca51a381f31bec884afc
parent 8248fbb8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1155,9 +1155,9 @@ status_t AudioPolicyManager::getBestMsdAudioProfileFor(audio_devices_t outputDev
            compressedFormatsOrder, surroundChannelMasksOrder, true /*preferHigherSamplingRates*/,
            &bestSinkConfig);
    if (result != NO_ERROR) {
        return result;
        ALOGD("%s() no matching profiles found for device: %#x, hwAvSync: %d",
                __func__, outputDevice, hwAvSync);
        return result;
    }
    sinkConfig->sample_rate = bestSinkConfig.sample_rate;
    sinkConfig->channel_mask = bestSinkConfig.channel_mask;