commit | 5d8618db1211d8f59376a59d53d4f07c599bfa01 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Thu Nov 17 17:21:45 2022 -0800 |
committer | Andy Hung <hunga@google.com> | Tue Dec 27 19:39:27 2022 -0800 |
tree | 8ea1cc7cf650aed37cafe61da5368247b69a25f2 | |
parent | 560496765bbf1810443c720573cea11a965488b1 [diff] [blame] |
Spatializer: Log latency requests to/from output sink Test: verify latency commands sent Bug: 259477444 Merged-In: Iaa45dab95add534fc668d6b8c45492f82fa9bfc6 Change-Id: Iaa45dab95add534fc668d6b8c45492f82fa9bfc6
diff --git a/services/audiopolicy/service/Spatializer.cpp b/services/audiopolicy/service/Spatializer.cpp index 38ad494..ad76202 100644 --- a/services/audiopolicy/service/Spatializer.cpp +++ b/services/audiopolicy/service/Spatializer.cpp
@@ -963,7 +963,10 @@ } } if (mOutput != AUDIO_IO_HANDLE_NONE && supportsSetLatencyMode) { - AudioSystem::setRequestedLatencyMode(mOutput, requestedLatencyMode); + const status_t status = + AudioSystem::setRequestedLatencyMode(mOutput, requestedLatencyMode); + ALOGD("%s: setRequestedLatencyMode for output thread(%d) to %s returned %d", + __func__, mOutput, toString(requestedLatencyMode).c_str(), status); } }