audio: improve read/write timing for streams

Change-Id: Ic4231c4b44369a9438c6c94622b90862047e9a32
Reference: https://github.com/LineageOS/android_hardware_libhardware/commit/0caeee8ac429dd8098e97b2cd8ad3751031a5b67
diff --git a/audio/audio_hw.h b/audio/audio_hw.h
index 851b44d..6e58a11 100644
--- a/audio/audio_hw.h
+++ b/audio/audio_hw.h
@@ -306,6 +306,8 @@
 #endif
 
     bool                         is_fastmixer_affinity_set;
+
+    int64_t                      last_write_time_us;
 };
 
 struct stream_in {
@@ -359,6 +361,8 @@
 
     struct audio_device*                dev;
     bool                                is_fastcapture_affinity_set;
+
+    int64_t                             last_read_time_us;
 };
 
 struct mixer_card {