audio policy: allow virtual input even if there are active inputs

Bug: 10460751

Change-Id: Ic6fcd14162e9c6e03366d887063321e21fcf14cd
This commit is contained in:
Chong Zhang 2013-08-24 16:44:47 -07:00
parent b96b2839f4
commit fe97ee4b99

View file

@ -959,7 +959,7 @@ status_t AudioPolicyManagerBase::startInput(audio_io_handle_t input)
#endif //AUDIO_POLICY_TEST
{
// refuse 2 active AudioRecord clients at the same time
if (getActiveInput() != 0) {
if (!isVirtualInputDevice(inputDesc->mDevice) && getActiveInput(true) != 0) {
ALOGW("startInput() input %d failed: other input already started", input);
return INVALID_OPERATION;
}