Fix overflow during 32-bit integer multiplication

Regression was introduced by commit f88cdc459be13c0c9e39e04ca4a8acc853a74fa3

Test: see bug
Bug: 73619529
Change-Id: I91c6f496e2f2a0b79cdac2fcf7e203c5186fc2f8
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;