Compilation fix: N-MR1 merge
Change-Id: I24b0b4e9ed19552411b9042dd23ca244a7379377
diff --git a/policy_hal/AudioPolicyManager.cpp b/policy_hal/AudioPolicyManager.cpp
index 7002932..6c26b23 100644
--- a/policy_hal/AudioPolicyManager.cpp
+++ b/policy_hal/AudioPolicyManager.cpp
@@ -520,7 +520,7 @@
}
if ((prop_rec_play_enabled) &&
- ((true == mIsInputRequestOnProgress) || (mInputs.activeInputsCount() > 0))) {
+ ((true == mIsInputRequestOnProgress) || (mInputs.activeInputsCountOnDevices() > 0))) {
ALOGD("copl: blocking compress offload for record concurrency");
return false;
}
@@ -1661,7 +1661,7 @@
prop_rec_play_enabled = atoi(recConcPropValue) || !strncmp("true", recConcPropValue, 4);
}
if ((prop_rec_play_enabled) &&
- ((true == mIsInputRequestOnProgress) || (mInputs.activeInputsCount() > 0))) {
+ ((true == mIsInputRequestOnProgress) || (mInputs.activeInputsCountOnDevices() > 0))) {
if (AUDIO_MODE_IN_COMMUNICATION == mEngine->getPhoneState()) {
if (AUDIO_OUTPUT_FLAG_VOIP_RX & flags) {
// allow VoIP using voice path
@@ -2098,7 +2098,7 @@
prop_rec_play_enabled = atoi(getPropValue) || !strncmp("true", getPropValue, 4);
}
- if ((prop_rec_play_enabled) &&(mInputs.activeInputsCount() == 0)){
+ if ((prop_rec_play_enabled) &&(mInputs.activeInputsCountOnDevices() == 0)){
// send update to HAL on record playback concurrency
AudioParameter param = AudioParameter();
param.add(String8("rec_play_conc_on"), String8("true"));
@@ -2144,7 +2144,7 @@
MIX_STATE_MIXING);
}
- if (mInputs.activeInputsCount() == 0) {
+ if (mInputs.activeInputsCountOnDevices() == 0) {
SoundTrigger::setCaptureState(true);
}
setInputDevice(input, getNewInputDevice(input), true /* force */);
@@ -2189,7 +2189,7 @@
prop_rec_play_enabled = atoi(propValue) || !strncmp("true", propValue, 4);
}
- if ((prop_rec_play_enabled) && (mInputs.activeInputsCount() == 0)) {
+ if ((prop_rec_play_enabled) && (mInputs.activeInputsCountOnDevices() == 0)) {
//send update to HAL on record playback concurrency
AudioParameter param = AudioParameter();