agm: fix infinite loop for mmap poll

This reverts fb0fcde8d99dc566ad5053847910a10c33a64ba2
and come with a more generic solution.
Previous solution checks for default sound card status,
while if a dynamic sound card such as USB headset may also
be unvailable during playback, this can still cause
infinite loop waiting for available buffers.
Instead, check for time in waiting for available
buffers, if real time elapsed is much longer than
expected buffer size, prompt an error to indicate
possible under layer failures.

Change-Id: Iccfba9c21299fb8e6eb7c6fb812b490fd92bf664
1 file changed
tree: 44506d601a583426fce4d388219106db6900e5e1
  1. ipc/
  2. plugins/
  3. service/
  4. snd_parser/
  5. Android.mk
  6. NOTICE
  7. README.md
README.md

agm

Audio Graph Manager