* commit '165ee4c53da462b1b6d131e25456dade51c18496': audioflinger: fix issue with camcorder and A2DP
This commit is contained in:
@@ -794,7 +794,8 @@ status_t AudioFlinger::setParameters(int ioHandle, const String8& keyValuePairs)
|
|||||||
// indicate output device change to all input threads for pre processing
|
// indicate output device change to all input threads for pre processing
|
||||||
AudioParameter param = AudioParameter(keyValuePairs);
|
AudioParameter param = AudioParameter(keyValuePairs);
|
||||||
int value;
|
int value;
|
||||||
if (param.getInt(String8(AudioParameter::keyRouting), value) == NO_ERROR) {
|
if ((param.getInt(String8(AudioParameter::keyRouting), value) == NO_ERROR) &&
|
||||||
|
(value != 0)) {
|
||||||
for (size_t i = 0; i < mRecordThreads.size(); i++) {
|
for (size_t i = 0; i < mRecordThreads.size(); i++) {
|
||||||
mRecordThreads.valueAt(i)->setParameters(keyValuePairs);
|
mRecordThreads.valueAt(i)->setParameters(keyValuePairs);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user