diff options
author | Andy Hung <hunga@google.com> | 2015-05-31 21:36:46 -0700 |
---|---|---|
committer | Andy Hung <hunga@google.com> | 2015-06-01 18:34:14 -0700 |
commit | 08945c44a97d3749cc48f860eb4e01e57183ad90 (patch) | |
tree | d3603562eadffb7b44220575bd1267072dd52237 /services | |
parent | db431db53fbbb9024b6e72c528e2d195d63ad544 (diff) | |
download | frameworks_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')
-rw-r--r-- | services/audiopolicy/managerdefault/AudioPolicyManager.cpp | 5 |
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; } |