AudioFlinger: Add patch latency for direct record/playback

This relies on being able to obtain presentation position and
capture position accurately from the HAL, in the presence
of potential underruns or overruns.

Test: MSD hal dumpsys
Bug: 112428710
Change-Id: I9aad574baaff60b5e0c5d8c39a2147d19ee613f5
3 files changed