commit | d125e40c37c686efed8be542eb0a37d7ff9af3d1 | [log] [tgz] |
---|---|---|
author | Shunkai Yao <yaoshunkai@google.com> | Sat Jan 20 03:19:06 2024 +0000 |
committer | Shunkai Yao <yaoshunkai@google.com> | Wed Jan 24 05:50:04 2024 +0000 |
tree | d7a1b38952bbd53c2c031f3381476cf40b696720 | |
parent | f4847650dd2fa7f99d8f0fe07ff47d46d3b96d18 [diff] [blame] |
Add thread safe annotation in audio flinger effects Bug: 315995877 Test: atest AudioTrackTest AudioRecordTest audioeffect_tests Change-Id: I90406c48660aef25ab4402a70a2a45deb6651335
diff --git a/services/audioflinger/DeviceEffectManager.cpp b/services/audioflinger/DeviceEffectManager.cpp index 201d147..feae97e 100644 --- a/services/audioflinger/DeviceEffectManager.cpp +++ b/services/audioflinger/DeviceEffectManager.cpp
@@ -143,7 +143,7 @@ if (lStatus == NO_ERROR) { lStatus = effect->addHandle(handle.get()); if (lStatus == NO_ERROR) { - lStatus = effect->init(patches); + lStatus = effect->init_l(patches); if (lStatus == NAME_NOT_FOUND) { lStatus = NO_ERROR; }