Use ALOGD when fails setting event callback.
The codec changed callback is not mandatory. In that case, it is not
considered as error when fails setting event callback. Use ALOGD instead
as the information will be useful to debug codec changed event.
Bug: 165629960
Test: make
Change-Id: I077c7a75acfb474344cd278394a778176471f224
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index 6302fc4..affc09e 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -1946,7 +1946,7 @@
// here instead of constructor of PlaybackThread so that the onFirstRef
// callback would not be made on an incompletely constructed object.
if (mOutput->stream->setEventCallback(this) != OK) {
- ALOGE("Failed to add event callback");
+ ALOGD("Failed to add event callback");
}
}
run(mThreadName, ANDROID_PRIORITY_URGENT_AUDIO);