commit | d9422ccaeceec59b420dac7dcc709df95cd0d574 | [log] [tgz] |
---|---|---|
author | xiaotonj <xiaotonj@google.com> | Fri Nov 10 18:22:42 2023 -0800 |
committer | xiaotonj <xiaotonj@google.com> | Mon Nov 13 12:29:22 2023 -0800 |
tree | c6f14d68d1c6a58f2785e33c021aa0963be48733 | |
parent | cf22ed224abc282a4586e835a5b8354e817b5763 [diff] |
Protect audio communication device set/clear operations with a lock. Currently, when telecom audio stack handle series messages relate to communication device set/clear operations, these operations will be completed in random order which will cause unexpected device set as the communication device. Protect these operations with a lock to avoid race conditions. Bug: b/303001133 Test: atest CallAudioRouteStateMachineTest Change-Id: Ib9fcbc712aaa3583ceea17288fa85ac33c0e7d3c