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:
Fenglin Wu
2019-12-09 09:39:11 +08:00
부모 67da967cff
커밋 074c5fe49c
2개의 변경된 파일505개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@@ -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')\"