asoc: codec: Add initial driver for swr-haptics
The haptics module in some PMICs has SWR slave data port which connects to Bolero SWR RX port and it can receive PCM data from that port and use it as the pattern source to play the vibration. Add the driver to support it. Change-Id: I5e6811ac8d81a60c3cd226029ef22ee12ed46f1d Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
This commit is contained in:
@@ -187,6 +187,10 @@ ifdef CONFIG_SND_SOC_WCD_IRQ
|
||||
CORE_OBJS += wcd-irq.o
|
||||
endif
|
||||
|
||||
ifdef CONFIG_SND_SWR_HAPTICS
|
||||
SWR_HAP_OBJS += swr-haptics.o
|
||||
endif
|
||||
|
||||
LINUX_INC += -Iinclude/linux
|
||||
|
||||
INCS += $(COMMON_INC) \
|
||||
@@ -271,5 +275,8 @@ obj-$(CONFIG_SND_SOC_MSM_HDMI_CODEC_RX) += hdmi_dlkm.o
|
||||
hdmi_dlkm-y := $(HDMICODEC_OBJS)
|
||||
endif
|
||||
|
||||
obj-$(CONFIG_SND_SWR_HAPTICS) += swr_haptics_dlkm.o
|
||||
swr_haptics_dlkm-y := $(SWR_HAP_OBJS)
|
||||
|
||||
# inject some build related information
|
||||
DEFINES += -DBUILD_TIMESTAMP=\"$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')\"
|
||||
|
Reference in New Issue
Block a user