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

Commit 8f0306eb authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "audiopolicy: remove soundcard status check from isOffloadSupported()"...

Merge "audiopolicy: remove soundcard status check from isOffloadSupported()" into audio-userspace.lnx.2.1-dev
parents 4e1bfdef cf558ba7
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -563,16 +563,7 @@ bool AudioPolicyManagerCustom::isOffloadSupported(const audio_offload_info_t& of
    if (mEffects.isNonOffloadableEffectEnabled()) {
        return false;
    }
    // Check for soundcard status
    String8 valueStr = mpClientInterface->getParameters((audio_io_handle_t)0,
    String8("SND_CARD_STATUS"));
    AudioParameter result = AudioParameter(valueStr);
    int isonline = 0;
    if ((result.getInt(String8("SND_CARD_STATUS"), isonline) == NO_ERROR)
           && !isonline) {
         ALOGD("copl: soundcard is offline rejecting offload request");
         return false;
    }

    // See if there is a profile to support this.
    // AUDIO_DEVICE_NONE
    sp<IOProfile> profile = getProfileForDirectOutput(AUDIO_DEVICE_NONE /*ignore device */,