audiohal: Add dead stream release thread in audio server. [1/1]

PD#SWPL-36186

Problem:
When a client with HW sync output stream killed, the
output stream still exists in audio HAL and when the
stream data underrun, the HW sync processing is still
running, which generates log spams for APTS->PCR reset.
There was an automatic stream garbage collection
handling but it happens only when next new stream is
created.

Solution:
Add a dead stream recycle thread inaudio server to
restroy dead streams.

Verify:
Verified on T5D build with channel playback and kill.
Observed the output stream is released by audio server
recycle thread.

Change-Id: Id44d4a7b3fe7b879a0402fb5d61f445bd2a42285
1 file changed
tree: 4a0989bc282974fd2662a75dc1a0b442c5834394
  1. include/
  2. src/
  3. Makefile