diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2015-10-31 04:03:14 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-10-31 04:03:14 -0700 |
commit | d5c974e1c7f7c1d9dbea5e064126188e44e1ba1b (patch) | |
tree | d495f084cdd5bf55c7f0117d8dedda73d8e0fa33 | |
parent | f0d03f2537dd88c9f7d7f13442e6c9c772081822 (diff) | |
parent | 4921c64cef207f969ea8c0b4b9f5f2a3d6790f49 (diff) | |
download | android_hardware_qcom_audio-d5c974e1c7f7c1d9dbea5e064126188e44e1ba1b.tar.gz android_hardware_qcom_audio-d5c974e1c7f7c1d9dbea5e064126188e44e1ba1b.tar.bz2 android_hardware_qcom_audio-d5c974e1c7f7c1d9dbea5e064126188e44e1ba1b.zip |
Merge "policy_hal: Reject offload path for AV streaming usecase"
-rw-r--r-- | policy_hal/AudioPolicyManager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/policy_hal/AudioPolicyManager.cpp b/policy_hal/AudioPolicyManager.cpp index b9d75054..b603d354 100644 --- a/policy_hal/AudioPolicyManager.cpp +++ b/policy_hal/AudioPolicyManager.cpp @@ -459,6 +459,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 |