commit | 1f8c3b6f3f0d0a255ac20c134c54bce75297308e | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Tue Sep 12 12:40:43 2023 -0700 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Mon Sep 18 18:47:04 2023 +0000 |
tree | b19a8bde3fd311d007ed6ac058a66474e6924a54 | |
parent | 4329d375fe167e3dde7a47b14bec10a275678fb8 [diff] |
audio: Mitigate double receiving of the "exit" command In rare cases, a worker thread from a new stream created via StreamSwitcher can read again from the command FMQ the "exit" command which was sent to the worker of the previous stream. The underlying reason for that has to be investigated. For now, mitigate the issue by salting the cookie of the "exit" command with the worker's TID. Bug: 300130515 Test: atest VtsHalAudioCoreTargetTest (cherry picked from https://android-review.googlesource.com/q/commit:0e7bcae462e05dbdf4ef797365f9414437914bd7) Merged-In: Ie7d2e847e8b39414ffd31afd64e32d4c9a292c03 Change-Id: Ie7d2e847e8b39414ffd31afd64e32d4c9a292c03