hal: Retrieve ahal feature flags from audioconfigstore
Update ahal_config_helper to fetch feature flags from
audioconfigstore.
Change-Id: I91c6c21df8f781420d03c027f54d8a7529e746fd
diff --git a/hal/ahal_config_helper.h b/hal/ahal_config_helper.h
index 32f575c..048b9cc 100644
--- a/hal/ahal_config_helper.h
+++ b/hal/ahal_config_helper.h
@@ -27,9 +27,14 @@
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// ToDo: This struct must be used only if config store is disabled.
-// Use AHalValues struct from config store once support is added.
-struct AHalValues_t {
+#ifdef __LP64__
+#define AUDIO_CONFIGSTORE_LIB_PATH "/vendor/lib64/libaudioconfigstore.so"
+#else
+#define AUDIO_CONFIGSTORE_LIB_PATH "/vendor/lib/libaudioconfigstore.so"
+#endif
+
+// AHalValues must be in sync with AHalValues_t in libaudioconfigstore
+typedef struct {
bool snd_monitor_enabled;
bool compress_capture_enabled;
bool source_track_enabled;
@@ -57,20 +62,25 @@
bool usb_offload_burst_mode;
bool usb_offload_sidetone_vol_enabled;
bool a2dp_offload_enabled;
+ bool hfp_enabled;
bool vbat_enabled;
+ bool ext_hw_plugin_enabled;
+ bool record_play_concurrency;
+ bool hdmi_passthrough_enabled;
+ bool concurrent_capture_enabled;
+ bool compress_in_enabled;
+ bool battery_listener_enabled;
bool compress_metadata_needed;
+ bool incall_music_enabled;
bool compress_voip_enabled;
bool dynamic_ecns_enabled;
-};
-typedef struct AHalValues_t AHalValues;
+} AHalValues;
#ifdef __cplusplus
extern "C" {
#endif
void audio_extn_ahal_config_helper_init(bool isVendorEnhancedFwk);
-AHalValues* audio_extn_get_feature_values();
-bool audio_extn_is_config_from_remote();
+void audio_extn_get_feature_values(AHalValues* *confValues);
#ifdef __cplusplus
}
#endif
-