liba2dp: Fix timeout computation in wait_for_start()

Also increase a2dp_write timeout from 100ms to 500 ms
to avoid losing the first fraction of a second of a song
when streaming starts.

This is a manual integration of commit cb75ad7a5a708a6a1f593cddb745f1c0460676c6
from donut.

Signed-off-by: Mike Lockwood <lockwood@android.com>
1 file changed