commit | 1850779bc4d7808e4d3171035ce2e027b6e36ddc | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Fri Jan 12 13:48:21 2024 -0800 |
committer | Mikhail Naganov <mnaganov@google.com> | Fri Jan 12 13:59:24 2024 -0800 |
tree | 0a1077c7fa8ef557fad793e59d909d768eb5241c | |
parent | e016befb4f321a7d183e22915199f0a2779aeeea [diff] |
audio: Fix handling of a thread exit command with a bad cookie In case when the command was sent by the HAL itself (from another thread), the worker thread must not post a reply. The only case when a reply needs to be posted is in the case when the command was sent from a VTS test. This case is identified by the fact that the cookie has value '0'. Bug: 300181540 Test: atest VtsHalAudioCoreTargetTest Change-Id: Ifeb0722b5cf7346a694c5a938f6b324f5fa825f1