Merge "Close a newly opened direct output if its parameters are invalid" into jb-mr1-aah-dev

This commit is contained in:
Jason Simmons 2012-11-06 13:23:13 -08:00 committed by Android (Google) Code Review
commit 7aab5b0f27

View file

@ -1672,6 +1672,7 @@ status_t AudioPolicyManagerBase::checkOutputsForDevice(audio_devices_t device,
((profile->mFormats[0] == 0) &&
(profile->mChannelMasks.size() < 2))) {
ALOGW("checkOutputsForDevice() direct output missing param");
mpClientInterface->closeOutput(output);
output = 0;
} else {
addOutput(output, desc);