Skip to content

Commit 14958e2

Browse files
Eric LaurentAndroid (Google) Code Review
authored andcommitted
Merge "audioflinger: fix issue with camcorder and A2DP" into ics-mr1
2 parents dbab18f + 10c3fc8 commit 14958e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/audioflinger/AudioFlinger.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,8 @@ status_t AudioFlinger::setParameters(int ioHandle, const String8& keyValuePairs)
794794
// indicate output device change to all input threads for pre processing
795795
AudioParameter param = AudioParameter(keyValuePairs);
796796
int value;
797-
if (param.getInt(String8(AudioParameter::keyRouting), value) == NO_ERROR) {
797+
if ((param.getInt(String8(AudioParameter::keyRouting), value) == NO_ERROR) &&
798+
(value != 0)) {
798799
for (size_t i = 0; i < mRecordThreads.size(); i++) {
799800
mRecordThreads.valueAt(i)->setParameters(keyValuePairs);
800801
}

0 commit comments

Comments
 (0)