audio policy: allow virtual input even if there are active inputs
Bug: 10460751 Change-Id: Ic6fcd14162e9c6e03366d887063321e21fcf14cd
This commit is contained in:
parent
b96b2839f4
commit
fe97ee4b99
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue