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

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

Merge "policy_hal: Reject offload path for AV streaming usecase"

parents 718808ab a5d9faa2
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -460,6 +460,14 @@ bool AudioPolicyManagerCustom::isOffloadSupported(const audio_offload_info_t& of
            ALOGV("isOffloadSupported: has_video == true, returning false");
            return false;
        }

        const bool allowOffloadStreamingWithVideo = property_get_bool("av.streaming.offload.enable",
                                                                   false /*default value*/);
        if(offloadInfo.has_video && offloadInfo.is_streaming && !allowOffloadStreamingWithVideo) {
            ALOGW("offload disabled by av.streaming.offload.enable = %s ", propValue );
            return false;
        }

    }

    //If duration is less than minimum value defined in property, return false