summaryrefslogtreecommitdiffstats
path: root/services/audiopolicy/service/AudioPolicyService.cpp
diff options
context:
space:
mode:
authorSatya Krishna Pindiproli <satyak@codeaurora.org>2015-08-20 18:24:16 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:25:01 -0600
commit14154955cac023afd736dc658d06a27f31f68e1c (patch)
tree144eddf230113b7563174f74db9d46586b4509e3 /services/audiopolicy/service/AudioPolicyService.cpp
parent2b0dafd500c5f2c69acbcda80a958e7b8e9d2f57 (diff)
downloadframeworks_av-14154955cac023afd736dc658d06a27f31f68e1c.zip
frameworks_av-14154955cac023afd736dc658d06a27f31f68e1c.tar.gz
frameworks_av-14154955cac023afd736dc658d06a27f31f68e1c.tar.bz2
audiopolicy: port existing fixes to AudioPolicyManager
This is a squashed commit of the following fixes in AudioPolicyManager. Only some parts of the fixes have been ported as the custom audio policy has the other required changes. audiopolicy: Fix MT call delay Change-Id: I790479eaad9d2d6fd4204cc4cb7698761c30f7cf audiopolicy: support extended feature in audiopolicymanager Change-Id: I1925339b591cd29f11a71c287a2e53c0627e9e62 audiopolicy: additional change for extended feature Change-Id: I9bad6a294ddd7aee72f6f6a314666b892b730c8e Change-Id: I7738d4b0ac11ee6d93bfd67e2553eae8518ff719
Diffstat (limited to 'services/audiopolicy/service/AudioPolicyService.cpp')
-rw-r--r--services/audiopolicy/service/AudioPolicyService.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/services/audiopolicy/service/AudioPolicyService.cpp b/services/audiopolicy/service/AudioPolicyService.cpp
index eefff3d..d689065 100644
--- a/services/audiopolicy/service/AudioPolicyService.cpp
+++ b/services/audiopolicy/service/AudioPolicyService.cpp
@@ -893,10 +893,12 @@ void AudioPolicyService::AudioCommandThread::insertCommand_l(sp<AudioCommand>& c
} else {
data2->mKeyValuePairs = param2.toString();
}
- command->mTime = command2->mTime;
- // force delayMs to non 0 so that code below does not request to wait for
- // command status as the command is now delayed
- delayMs = 1;
+ if (!data2->mKeyValuePairs.compare(data->mKeyValuePairs)) {
+ command->mTime = command2->mTime;
+ // force delayMs to non 0 so that code below does not request to wait for
+ // command status as the command is now delayed
+ delayMs = 1;
+ }
} break;
case SET_VOLUME: {