audio-hal: use audio source to get delay latency

Bug: 138918061
Test: CTS testSynchronizedRecord pass

Change-Id: Icb9babf7e6a63c1f3d1af73c42ef21fb8b7d211b
Signed-off-by: Juyu Chen <juyuchen@google.com>
(cherry picked from commit 1a5c6d674d85a35890c33ea5e1a505a970cebb57)
Signed-off-by: Aniket Kumar Lata <alata@codeaurora.org>
diff --git a/hal/platform_api.h b/hal/platform_api.h
index 0934bb2..1da7198 100644
--- a/hal/platform_api.h
+++ b/hal/platform_api.h
@@ -421,4 +421,8 @@
 int platform_get_display_port_ctl_index(int controller, int stream);
 bool platform_is_call_proxy_snd_device(snd_device_t snd_device);
 void platform_set_snd_device_delay(snd_device_t snd_device, int delay_ms);
+void platform_set_audio_source_delay(audio_source_t audio_source, int delay_ms);
+
+int platform_get_audio_source_index(const char *audio_source_name);
+
 #endif // AUDIO_PLATFORM_API_H