OSDN Git Service

audio: several concurrent capture fixes
authorEric Laurent <elaurent@google.com>
Wed, 8 Feb 2017 02:17:24 +0000 (18:17 -0800)
committerEric Laurent <elaurent@google.com>
Fri, 10 Feb 2017 05:09:55 +0000 (21:09 -0800)
commit555530ab903504ad3586bc24cd8a4f200f5c39ae
tree1c7904daf0e13a86bb225d2e52f791ef84ec85a5
parentc96fc852f010f9254a38a0073a4de7a848e33e44
audio: several concurrent capture fixes

Make sure AudioRecord clients are invalidated synchronously
when closing an input stream instead of when the capture thread
exits.

Fix AudioPolicyManager::getInputForDevice() logic to make sure that
not only the first opened input encountered is considered when looking
for a compatible input to reuse for concurrent capture.

Bug: 22702906
Test: run CTS test
Change-Id: I7f69609d4ee70a37ab06753ff970b12df17d885b
services/audioflinger/Threads.cpp
services/audioflinger/Threads.h
services/audiopolicy/managerdefault/AudioPolicyManager.cpp