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

Commit 35f18eb7 authored by Colin Cross's avatar Colin Cross
Browse files

Fix warnings in bitrotted module

Test: builds
Change-Id: Ib94f78f7baffbc63cff708ca5d81233618f30015
(cherry picked from commit e8f16b3e)
parent 1e9024c0
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -337,7 +337,7 @@ status_t SoftAACEncoder::setAudioParams() {
    // We call this whenever sample rate, number of channels or bitrate change
    // in reponse to setParameter calls.

    ALOGV("setAudioParams: %lu Hz, %lu channels, %lu bps",
    ALOGV("setAudioParams: %u Hz, %u channels, %u bps",
         mSampleRate, mNumChannels, mBitRate);

    status_t err = setAudioSpecificConfigData();
@@ -387,12 +387,12 @@ status_t SoftAACEncoder::setAudioSpecificConfigData() {
    int32_t index;
    status_t err = getSampleRateTableIndex(mSampleRate, index);
    if (err != OK) {
        ALOGE("Unsupported sample rate (%lu Hz)", mSampleRate);
        ALOGE("Unsupported sample rate (%u Hz)", mSampleRate);
        return err;
    }

    if (mNumChannels > 2 || mNumChannels <= 0) {
        ALOGE("Unsupported number of channels(%lu)", mNumChannels);
        ALOGE("Unsupported number of channels(%u)", mNumChannels);
        return UNKNOWN_ERROR;
    }

@@ -403,7 +403,7 @@ status_t SoftAACEncoder::setAudioSpecificConfigData() {
    return OK;
}

void SoftAACEncoder::onQueueFilled(OMX_U32 portIndex) {
void SoftAACEncoder::onQueueFilled(OMX_U32 /*portIndex*/) {
    if (mSignalledError) {
        return;
    }