fcb00d9def
update custom audio policy implementation APIs against below O-AOSP updates. 1) audio policy: broadcast device connect event before refreshing profiles This patch broadcasts the connect device event before checking and reloading capabilities of profiles. It allows the HAL implementor to use connect / disconnect event to respectively load / reset capabilities of devices that has dynamic capabilities (e.g. HDMI). Change-Id: Ie0533da25fed89cb9e5bbfc5b1fc886b3176837d 2) audio policy: fix volume control regression commit 28d09f064 introduced regressions in volume control resulting in changing some device/stream volumes unexpectedly. Bug: 27586382 Change-Id: I3fe2a25767319800b0db5fd1ed7c1bd751b04732 3) audio policy: fix in call volume over USB Do not consider only primary output for voice volume control as sometimes the output device selected for a call can be connected to another output stream (e.g USB) Bug: 27108587 Change-Id: I8ec3db272f87d49f57044a771019672050f63d32 4) audio policy: new getOutputForAttr() prototype. Update getOutputForAttr() prototype and group all logic dealing with audio attributes to stream type conversion in audio policy manager. Bug: 18067208. Change-Id: I1bfbe9626c04c7955d77f8a70aecfad2cb204817 5) AudioRecord: use audio attributes instead of audio source. Added AudioRecord constructor with audio attributes. Replaced AudioPolicymanager::getInput() by getInputForAttr(). Bug: 16006090. Change-Id: I15df21e4411db688e3096dd801cf579d76d81711 6) audiopolicy: Two clients can not offload concurrently If two application are playing a compatible offload stream at the same time. Bug: 34012147 Change-Id: I98a8913d6faf5092a1e43a0bdd0f1ce1482221a9 7) Fix clang-tidy warnings in audio and playerservice. * Add explicit keyword to conversion constructors. Bug: 28341362 * Use const reference type for read-only parameters. Bug: 30407689 Test: build with WITH_TIDY=1 Change-Id: I265f3b094e08d5705b506b3fbba51439c134af84 8) audio policy for concurrent capture. First implementation of concurrent capture policy: Initially, only capture for HOTWORD or FM TUNER sources or re-route submix is allowed at the same time as any other capture. Several capture clients can share the same input stream. In this case active clients are sorted by audio source priority level and the input path configuration and routing is driven by the highest priority active source. Bug: 22702906 Change-Id: Icbedfe001c6243ecad7a7b57ab78d893b2b97402 Change-Id: I54f24d3e0914db3c9f7da26ea053ee6c5aa91784 |
||
---|---|---|
.. | ||
Android.mk | ||
AudioPolicyManager.cpp | ||
AudioPolicyManager.h |