OSDN Git Service

audiopolicy: Two session can not offload concurrently
authorKevin Rocard <krocard@google.com>
Mon, 6 Mar 2017 22:18:23 +0000 (14:18 -0800)
committerKevin Rocard <krocard@google.com>
Fri, 12 May 2017 23:39:22 +0000 (16:39 -0700)
commit169753cd5f71ba92560e993bb7cb461d2f094272
tree7414ab09392201eb08c3ef966d40f2f88abd518f
parent9ec59fc5d016a609adffdb7e68236b9d5d05254d
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>
services/audiopolicy/common/managerdefinitions/include/AudioOutputDescriptor.h
services/audiopolicy/common/managerdefinitions/src/AudioOutputDescriptor.cpp
services/audiopolicy/managerdefault/AudioPolicyManager.cpp
services/audiopolicy/managerdefault/AudioPolicyManager.h