Merge changes I58bfd0a2,I57051bf3,If9282f2d

* changes:
  Return the time of the last presentation
  Account for underruns
  Fix calculation of available frames in audio hal