!276 Add the compilation script of headset driver

Merge pull request !276 from wangyeyu/master
This commit is contained in:
openharmony_ci
2022-03-18 02:04:42 +00:00
committed by Gitee
2 changed files with 20 additions and 0 deletions
+9
View File
@@ -18,6 +18,15 @@ config DRIVERS_HDF_AUDIO_RK3568
help
Answer Y to choice HDF Audio Codec driver.
config DRIVERS_HDF_AUDIO_ANA_HEADSET
bool "Audio Headset support"
default n
depends on DRIVERS_HDF_AUDIO_RK3568
help
Audio Headset support:
support hook interrupt mode.
support hook adc mode.
config DRIVERS_HDF_AUDIO_TEST
bool "Enable HDF Audio driver Test"
default n
+11
View File
@@ -60,6 +60,12 @@ obj-$(CONFIG_DRIVERS_HDF_AUDIO_RK3568) += \
$(KHDF_AUDIO_RK3568_DIR)/soc/src/rk3568_dma_adapter.o \
$(KHDF_AUDIO_RK3568_DIR)/soc/src/rk3568_dma_ops.o
obj-$(CONFIG_DRIVERS_HDF_AUDIO_ANA_HEADSET) += \
$(KHDF_AUDIO_RK3568_DIR)/headset_monitor/src/analog_headset_base.o \
$(KHDF_AUDIO_RK3568_DIR)/headset_monitor/src/analog_headset_core.o \
$(KHDF_AUDIO_RK3568_DIR)/headset_monitor/src/analog_headset_gpio.o \
$(KHDF_AUDIO_RK3568_DIR)/headset_monitor/src/analog_headset_adc.o
ccflags-$(CONFIG_DRIVERS_HDF_AUDIO) += -lm -lc -lgcc -std=gnu99 -Werror\
-I$(srctree)/$(KHDF_AUDIO_KHDF_ROOT_DIR)/osal/include \
-I$(srctree)/$(KHDF_FRAMEWORK_ROOT_DIR)/include/core \
@@ -89,3 +95,8 @@ ccflags-$(CONFIG_DRIVERS_HDF_AUDIO_RK3568) += \
-I$(srctree)/$(KHDF_AUDIO_RK3568_INC_DIR)/dsp/include \
-I$(srctree)/$(KHDF_AUDIO_RK3568_INC_DIR)/codec/rk809_codec/include \
-I$(srctree)/$(KHDF_AUDIO_RK3568_INC_DIR)/include
ccflags-$(CONFIG_DRIVERS_HDF_AUDIO_ANA_HEADSET) += \
-I$(srctree)/$(KHDF_FRAMEWORK_ROOT_DIR)/model/input/driver \
-I$(srctree)/drivers/hdf/evdev \
-I$(srctree)/$(KHDF_AUDIO_RK3568_INC_DIR)/headset_monitor/include