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

Commit 9d8a0b2a authored by jiabin's avatar jiabin
Browse files

AAudio: fix logging information in AAudioServiceEndpointMMAP.

Bug: 272277767
Test: TH
Change-Id: I8b59f1a6547a247fd1135d98767b0f8982660fb9
parent fa98e2e3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ aaudio_result_t AAudioServiceEndpointMMAP::open(const aaudio::AAudioStreamReques
    while (true) {
        if (formatsTried.find(audioFormat) != formatsTried.end()) {
            // APM returning something that has already tried.
            ALOGW("Have already tried to open #x, but failed before");
            ALOGW("Have already tried to open with format=%#x, but failed before", audioFormat);
            break;
        }
        formatsTried.insert(audioFormat);
@@ -195,7 +195,7 @@ aaudio_result_t AAudioServiceEndpointMMAP::openWithFormat(
        // not match the hardware.
        ALOGD("%s() - openMmapStream() returned status=%d, suggested format=%#x, sample_rate=%u, "
              "channel_mask=%#x",
              __func__, status, config.format, config.sample_rate, config.format);
              __func__, status, config.format, config.sample_rate, config.channel_mask);
        *nextFormatToTry = config.format != audioFormat ? config.format
                                                        : *nextFormatToTry;
        return AAUDIO_ERROR_UNAVAILABLE;