hal: Fix improper timestamp update for Mmap record path
- Update proper timestamp datatype conversion to fix
improper timestamp caluclation
Change-Id: I6847875d9ca67ff0f9e7c0441d8510dec891f4c4
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 79be457..cd72d51 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -5862,7 +5862,7 @@
ALOGE("%s: %s", __func__, pcm_get_error(in->pcm));
return ret;
}
- position->time_nanoseconds = ts.tv_sec*1000000000L + ts.tv_nsec;
+ position->time_nanoseconds = ts.tv_sec*1000000000LL + ts.tv_nsec;
return 0;
}