hal: configure the path for flicker sensor
Flicker sensor / rainbow sensor is connected to audio codec
on SDM845.
This change configures how the flicker sensor data
is rounted from AMIC1 to HAL. It has no impact on power consumption.
Camera HAL uses pcm_read to enable the the data path in camera use cases.
Bug: 77698944
Test: audio recording and playback
Change-Id: I8a776d7b3c13c7350875d7e7f024afdf632f3d8d
diff --git a/hal/Android.mk b/hal/Android.mk
index 3dd408a..ac6ea74 100644
--- a/hal/Android.mk
+++ b/hal/Android.mk
@@ -132,6 +132,10 @@
LOCAL_CFLAGS += -DEXTERNAL_BT_SUPPORTED
endif
+ifeq ($(strip $(AUDIO_FEATURE_FLICKER_SENSOR_INPUT)),true)
+ LOCAL_CFLAGS += -DFLICKER_SENSOR_INPUT
+endif
+
ifeq ($(strip $(AUDIO_FEATURE_NO_AUDIO_OUT)),true)
LOCAL_CFLAGS += -DNO_AUDIO_OUT
endif