summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy/managerdefault
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2015-05-31 21:36:46 -0700
committerAndy Hung <hunga@google.com>2015-06-01 18:34:14 -0700
commit08945c44a97d3749cc48f860eb4e01e57183ad90 (patch)
treed3603562eadffb7b44220575bd1267072dd52237 /services/audiopolicy/managerdefault
parentdb431db53fbbb9024b6e72c528e2d195d63ad544 (diff)
downloadframeworks_av-08945c44a97d3749cc48f860eb4e01e57183ad90.zip
frameworks_av-08945c44a97d3749cc48f860eb4e01e57183ad90.tar.gz
frameworks_av-08945c44a97d3749cc48f860eb4e01e57183ad90.tar.bz2
Add property to control audio offload with video content
Property audio.offload.video normally disabled (set to 1 to enable) Bug: 21198655 Change-Id: Ib1c457b1e3950f18d91b855424aa80bd23c723b0
Diffstat (limited to 'services/audiopolicy/managerdefault')
-rw-r--r--services/audiopolicy/managerdefault/AudioPolicyManager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
index 665cce9..82c9e55 100644
--- a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
+++ b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
@@ -2031,8 +2031,9 @@ bool AudioPolicyManager::isOffloadSupported(const audio_offload_info_t& offloadI
}
//TODO: enable audio offloading with video when ready
- if (offloadInfo.has_video)
- {
+ const bool allowOffloadWithVideo =
+ property_get_bool("audio.offload.video", false /* default_value */);
+ if (offloadInfo.has_video && !allowOffloadWithVideo) {
ALOGV("isOffloadSupported: has_video == true, returning false");
return false;
}