a8ee996bc065d6938c0e0a5904df7fff5d946fea |
|
01-Feb-2018 |
Aniket Kumar Lata <alata@codeaurora.org> |
audiopolicy: Check if A2DP playback happens via primary output Audio policy implementation assumes A2DP playback to happen via HW module other than the primary HAL. This need not be true always, since primary audio HAL can support A2DP playback too. Add an API to check if A2DP playback is supported via primary HAL, and if it is supported avoid suspendOutput. Bug: 63932139 Bug: 68824150 Test: A2DP offload verified on supported codecs Change-Id: Ic5546bc2df632462dcc28442af561d05ba2d7c58 (cherry picked from commit 68364ffbd312cdc28dd44e66c4d80ce5a6ec49ba)
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
5babc4f104885c16a3dcfdfb5d99903c27ff2bd9 |
|
15-Feb-2018 |
Eric Laurent <elaurent@google.com> |
audio policy: fix regression with duplicated output handle Commit fe2311274 made that IO Handle for duplicated outputs were not allocated properly causing volume commands to be sent with an invalid IO handle to audio flinger. We then hit another problem with a legacy behavior which broadcasts volume commands to all output threads if received with IOHandle 0. Bug: 70332110 Test: manual test. Change-Id: Ib133abab1575e3c90ba235f0a52d5ab845514719
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
61309523e6332addbd648c0d1bf25d35d6fd7b90 |
|
23-Jan-2018 |
Jean-Michel Trivi <jmtrivi@google.com> |
Notifications are not duplicated over multiple devices Sonifications follow media routing, except for speaker playback where they follow the "safe" path when available in the absence of media playback. Test: 1/ plug headphones on phone, play notification, verify it comes only from headset 2/ mirror device and play media, then notification, verify it only comes from the speaker Change-Id: I762ad0688e879ad1e5565b4b77a7393fa7ce7ac5
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
733ce945741b1fc12cee92d8133c3136b4e6e0e0 |
|
07-Dec-2017 |
Eric Laurent <elaurent@google.com> |
audio policy: fix HAL stream activity ref counting commit f05fc906 did not take into account the specificities of duplicated outputs causing a crash when accessing the profile (null for duplicated outputs) and not counting activity resulting from duplicated output activity. Also account for HW source activity when connected to an output mix. Bug: 70319466 Test: CTS tests for AudioTrack and AudioRecord Test: audio smoke tests Change-Id: Id0364170794302e42212a90e1b40e28c1e7193fe
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
1b2a794a27caab3a1320d22b872b04ef73e96555 |
|
08-Dec-2017 |
Mikhail Naganov <mnaganov@google.com> |
audiopolicy: Remove ; after namespace bracket Semicolons are not needed after the closing bracket of a namespace, remove it. Test: compiles Change-Id: Ie82930365f738fd9c95a9163839a68b772e49d95
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
fe23112742eeb6199c3aa1f3dfcf800fc2aa0e26 |
|
18-Nov-2017 |
Eric Laurent <elaurent@google.com> |
audio policy: refactor output and input opening Refactor the way input and output streams are open so that common logic is centralized in AudioOutputDescriptor and AudioInputDescriptor classes. This is in preparation of adding reference counting for ouputs and inputs opened for a given profile. Test: Manual Change-Id: Id806e23077eb41f6398400ab40aeaa694c7d5603
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
169753cd5f71ba92560e993bb7cb461d2f094272 |
|
06-Mar-2017 |
Kevin Rocard <krocard@google.com> |
audiopolicy: Two session can not offload concurrently Previously the patch I98a8913d6faf5092a1e43a0bdd0f1ce1482221a9 forbade two tracks from different application to be offloaded concurrently. Concurrent offload is only needed for back to back playback... Detect this use case by checking the session id instead of the PID. Test: call & play music & assistant Test: run new CTS testConcurentPlayAudio Bug: 35841692 Change-Id: I2c09c54adedf12644205bef115f1a2e16b05de91 Signed-off-by: Kevin Rocard <krocard@google.com>
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
551061ab211e1da0f060d7c895617814618da5c2 |
|
07-Feb-2017 |
Kevin Rocard <krocard@google.com> |
audiopolicy: Two clients can not offload concurrently If two application are playing a compatible offload stream at the same time. Eg: two games playing MP3. At least one not taking the audio focus. The audio policy was offloading both stream resulting in audio glitches and one stream being dropped. Concurrent offload streams is intended to be a transitioning state when an application wants back to back playbacks. It should not be allowed for two different applications to stream at the same time. Test: Play mp3 while mp3 is already offloaded. Bug: 34012147 Change-Id: I98a8913d6faf5092a1e43a0bdd0f1ce1482221a9 Signed-off-by: Kevin Rocard <krocard@google.com>
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
e964d4e421e2d1ca937227a580c0c837091a11e3 |
|
09-Aug-2016 |
Chih-Hung Hsieh <chh@google.com> |
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
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
ff155c642fe7d342a3110444c6103f788230af53 |
|
26-Feb-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioPolicy: AudioOutputDescriptor set/get for patch handle For symmetry with AudioInputDescriptor: no direct access to the field for the patch handle. Change-Id: I5bffecf7a157ec042d749064208bc6c279008542
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
d60560af7cb559762593161c8202459cc01fb0f5 |
|
10-Apr-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: add support for external audio sources Add support for activity on external audio sources. An external source reflects activity on an input audio device that must be controlled (both routing and volume) by the audio policy manager. First, the input device must be connected with setDeviceConnectionState(). Then, the source activity is indicated with startAudioSource() and stopAudioSource() APIs. startAudioSource() indicates the source device with an audio port configuration and the use case by the audio attributes. Once a source is active, its routing and volume are controlled by the policy manager as it would for a software source (AudioTrack). Change-Id: If5805d58a4356b2f681f1aabf54375f62b55b98a
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
de80105c3f2db0eabd47640c49387ea3b44d4782 |
|
15-Apr-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioPolicyManager: notification of dynamic policy mix activity Implement non-stream type specific ref counting in output descriptors to keep track of mix activity. Notify audio policy client of mix activity changes. Bug 20226914 Change-Id: Iec939cb640c58056f88947b611d23b4bb6d8a11b
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
ffbc80f5908eaf67a033c6e93a343c39dd6894eb |
|
19-Mar-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: volume in dBs Volumes are now stored and exchanged in dBs to be consistent with the volume tables. They are converted if needed when applied to the target gain controller. Change-Id: I916cbb0bbe65c916444b8c65a2bdca9645c58399
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
c75307b73d324d590d0dbc05b44bce9aa89b7145 |
|
17-Mar-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: volume control reorganization Output volume and routing control by AudioOutputDescriptor is reorganized to prepare hardware source volume and routing control. AudioOutputDescriptor contains all volume, device and activity state common to software (audio flinger mixers) and hardware sources (tuners, A2DP, HDMI). A new class SwAudioOutputDescriptor is derived from AudioOutputDescriptor and is specific to software sources. Low level routing and volume control methods receive an AudioOutputDescriptor parameter instead of an IO handle. mPrimaryOutput is now an AudioOutputDescriptor. Change-Id: Ie90943ee3102cdb8adf89fdd2addd2c279b1e5bf
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
322b4d25387a04c9afebe998326d005bbdf17ede |
|
04-Apr-2015 |
Eric Laurent <elaurent@google.com> |
audio policy: fix unique audio port ID. Remove mId member from AudioPort as it was shadowed by mId in DeviceDescriptor. Add getters for Id, and HW module name and version to device, output and input descriptors. Fix DeviceDescriptor name initialization. Change-Id: I4a69f385e40330954d9dad5f2926c521f60b2ec1
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
aa9811945f575614b3482d09e4d969792701cebb |
|
21-Mar-2015 |
Paul McLean <pmclean@google.com> |
Adding explicit routing API to AudioTrack Change-Id: I40c048c7644c46f4e4f7103875206c0785c4b1dc
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
45ed3b053d9af2250f5ece9ee4e826905c3763a7 |
|
19-Mar-2015 |
François Gaffie <francois.gaffie@intel.com> |
Add EffectDescriptor and associated collection to common elements This patch adds EffectDescriptor and associated collection to common policy pillar elements. It moves the code from the policy manager and creates helpers function in the collection. It also factorize the RoutingStrategy structure within a separated header file. Change-Id: I29964ff77564fadedf3237c8754240b21ae77297 Signed-off-by: François Gaffie <francois.gaffie@intel.com>
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
53615e29c99c5e9d2ca77aaefd7bf5c770513120 |
|
19-Mar-2015 |
François Gaffie <francois.gaffie@intel.com> |
Migrate helper functions from managerdefault to common This patch moves from manager to common: -parse helper functions of the policy configuration file -collection helper function on -output / input descriptors -DeviceDescriptor -AudioPatch / Audio Port -IO Profile -HwModule Change-Id: If45e53418db75af1af198f43c4ef27884499055f Signed-off-by: François Gaffie <francois.gaffie@intel.com>
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|
98cc191247388132b6fd8a4ecd07abd6e4c5a0ed |
|
18-Mar-2015 |
François Gaffie <francois.gaffie@intel.com> |
Split ManagerDefault into Manager and ManagerDefinitions This patch splits the managerdefault into a manager and a manager defintion library that contains all pillar elements of a policy manager. It renames the file with the name of the main class they contains. It splits the AudioPort into AudioPort and AudioPatch. Change-Id: I992cf0b8aed895805cc003ba0980d2c9e92c985b Signed-off-by: François Gaffie <francois.gaffie@intel.com>
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
|