Merge "Remove unneccessary a2dpDeviceChanged variable" am: 98919aff22 am: 6fda0e3638
Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1646948
Change-Id: I7bb200d8ea1be541aad0162f3b3df22367ab3330
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index fa16298..64e935d 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -5552,8 +5552,6 @@
status_t& status)
{
bool reconfig = false;
- bool a2dpDeviceChanged = false;
-
status = NO_ERROR;
AutoPark<FastMixer> park(mFastMixer);
@@ -5625,7 +5623,7 @@
}
}
- return reconfig || a2dpDeviceChanged;
+ return reconfig;
}
@@ -6086,8 +6084,6 @@
status_t& status)
{
bool reconfig = false;
- bool a2dpDeviceChanged = false;
-
status = NO_ERROR;
AudioParameter param = AudioParameter(keyValuePair);
@@ -6122,7 +6118,7 @@
}
}
- return reconfig || a2dpDeviceChanged;
+ return reconfig;
}
uint32_t AudioFlinger::DirectOutputThread::activeSleepTimeUs() const