Scan and verify audio device parameters on open
Scanning is default disabled at this time.
Verbose logs will display device params found.
Change-Id: Id188d096ec68d2058c66ae3a51fe57d9645d03ef
Signed-off-by: Andy Hung <hunga@google.com>
diff --git a/hal/audio_hw.h b/hal/audio_hw.h
index e2d6ff7..887bf6b 100644
--- a/hal/audio_hw.h
+++ b/hal/audio_hw.h
@@ -195,6 +195,14 @@
void *visualizer_lib;
int (*visualizer_start_output)(audio_io_handle_t);
int (*visualizer_stop_output)(audio_io_handle_t);
+
+ /* The pcm_params use_case_table is loaded by adev_verify_devices() upon
+ * calling adev_open().
+ *
+ * If an entry is not NULL, it can be used to determine if extended precision
+ * or other capabilities are present for the device corresponding to that usecase.
+ */
+ struct pcm_params *use_case_table[AUDIO_USECASE_MAX];
};
/*