Audio HAL: Wait for available frames for the input stream.

Audio HAL in_read function does not wait for all required frames. And if
there's not enough frames to fill application's input buffer, HAL just
silences the rest.

This patch adds polling for the required number of frames for the
input stream.

Bug: 167390806
Test: Build, boot, play an audio file
Change-Id: I162672feba7414c7f93c9c3bf9493cacb4ce367a
1 file changed