Snap for 4620899 from 5a59dff461409983f5fe910aaa0b9b79a2064798 to pi-release

Change-Id: I55e50dfd4934465ce4d8b7e474fa4bf40eb2c172
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 9191994..535c772 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -2722,7 +2722,7 @@
             }
             ALOGVV("%s: writing buffer (%zu bytes) to pcm device", __func__, bytes_to_write);
 
-            long ns = (frames * NANOS_PER_SECOND) / out->config.rate;
+            long ns = (frames * (int64_t) NANOS_PER_SECOND) / out->config.rate;
             request_out_focus(out, ns);
 
             bool use_mmap = is_mmap_usecase(out->usecase) || out->realtime;