audio: revert the calculation of out_get_presentation_position

Revert the calcaulation of out_get_presentation_position for ULL/MMAP
streams as it used to be. This fixes frame being reset during standby.
Using hw_ptr instead of frames written causes a state mismatch between
HAL and AudioFlinger leading spurious error reported by AudioTrack.

CRs-Fixed: 2207829
Change-Id: I3701b8f440651313659cd2b917230ff78542e1b4
1 file changed