Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4fec31d3 authored by leon ye's avatar leon ye Committed by xunanbin
Browse files

Synchronize codes for OP7T



kernel device tree source code for OnePlus7T

Change-Id: Ieb30c6fc7649c1aa5f5cb7870a380399694e3632
Signed-off-by: default avatarleon ye <leon.ye@oneplus.com>
parent cc9b2d92
Loading
Loading
Loading
Loading

Android.mk

100644 → 100755
+2 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ $(shell rm -rf $(PRODUCT_OUT)/obj/vendor/qcom/opensource/audio-kernel/soc/Module
$(shell rm -rf $(PRODUCT_OUT)/obj/vendor/qcom/opensource/audio-kernel/asoc/Module.symvers)
$(shell rm -rf $(PRODUCT_OUT)/obj/vendor/qcom/opensource/audio-kernel/asoc/codecs/Module.symvers)
$(shell rm -rf $(PRODUCT_OUT)/obj/vendor/qcom/opensource/audio-kernel/asoc/codecs/wcd934x/Module.symvers)
$(shell rm -rf $(PRODUCT_OUT)/obj/vendor/qcom/opensource/audio-kernel/asoc/codecs/tfa9894/Module.symvers)

include $(MY_LOCAL_PATH)/include/uapi/Android.mk
include $(MY_LOCAL_PATH)/ipc/Android.mk
@@ -22,6 +23,7 @@ include $(MY_LOCAL_PATH)/soc/Android.mk
include $(MY_LOCAL_PATH)/asoc/Android.mk
include $(MY_LOCAL_PATH)/asoc/codecs/Android.mk
include $(MY_LOCAL_PATH)/asoc/codecs/wcd934x/Android.mk
include $(MY_LOCAL_PATH)/asoc/codecs/tfa9894/Android.mk
endif

ifeq ($(call is-board-platform-in-list,sdm670 msmnile),true)

Makefile

100644 → 100755
+4 −0
Original line number Diff line number Diff line
@@ -51,6 +51,10 @@ LINUXINCLUDE += \
                -include $(srctree)/techpack/audio/config/sm8150autoconf.h
endif

LINUXINCLUDE    += \
                -I$(srctree)/techpack/audio/include/elliptic
obj-y += dsp/elliptic

obj-y += soc/
obj-y += dsp/
obj-y += ipc/

Makefile.am

100644 → 100755
+2 −2
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ endif
ifeq ($(TARGET_SUPPORT),qcs40x)
KBUILD_OPTIONS += CONFIG_ARCH_QCS405=y
endif
ifeq ($(TARGET_SUPPORT), sdmsteppe)
ifeq ($(TARGET_SUPPORT), sdmsteppe))
KBUILD_OPTIONS += CONFIG_ARCH_SM6150=y
endif

@@ -47,7 +47,7 @@ obj-m += asoc/codecs/bolero/
obj-m += asoc/codecs/csra66x0/
obj-m += asoc/codecs/ep92/
endif
ifeq ($(TARGET_SUPPORT), sdmsteppe)
ifeq ($(TARGET_SUPPORT), sdmsteppe))
obj-m += asoc/codecs/bolero/
obj-m += asoc/codecs/wcd937x/
endif

asoc/codecs/bolero/wsa-macro.c

100644 → 100755
+0 −3
Original line number Diff line number Diff line
@@ -913,9 +913,6 @@ static int wsa_macro_event_handler(struct snd_soc_codec *codec, u16 event,
	if (!wsa_macro_get_data(codec, &wsa_dev, &wsa_priv, __func__))
		return -EINVAL;

	if (!(wsa_priv->swr_ctrl_data))
		return -EINVAL;

	switch (event) {
	case BOLERO_MACRO_EVT_SSR_DOWN:
		swrm_wcd_notify(
+62 −0
Original line number Diff line number Diff line
# Android makefile for audio kernel modules

# Assume no targets will be supported

# Check if this driver needs be built for current target
ifeq ($(call is-board-platform,sdm845),true)
AUDIO_SELECT  := CONFIG_SND_SOC_SDM845=m
endif

ifeq ($(call is-board-platform,msmnile),true)
AUDIO_SELECT  := CONFIG_SND_SOC_SM8150=m
endif

ifeq ($(call is-board-platform,$(MSMSTEPPE)),true)
AUDIO_SELECT  := CONFIG_SND_SOC_SM6150=m
endif

ifeq ($(call is-board-platform-in-list,msm8953 sdm670 qcs605),true)
AUDIO_SELECT  := CONFIG_SND_SOC_SDM670=m
endif

AUDIO_CHIPSET := audio
# Build/Package only in case of supported target
ifeq ($(call is-board-platform-in-list,msm8953 sdm845 sdm670 qcs605 msmnile $(MSMSTEPPE)),true)

LOCAL_PATH := $(call my-dir)

# This makefile is only for DLKM
ifneq ($(findstring vendor,$(LOCAL_PATH)),)

ifneq ($(findstring opensource,$(LOCAL_PATH)),)
	AUDIO_BLD_DIR := $(shell pwd)/vendor/qcom/opensource/audio-kernel
endif # opensource

DLKM_DIR := $(TOP)/device/qcom/common/dlkm

# Build audio.ko as $(AUDIO_CHIPSET)_audio.ko
###########################################################
# This is set once per LOCAL_PATH, not per (kernel) module
KBUILD_OPTIONS := AUDIO_ROOT=$(AUDIO_BLD_DIR)

# We are actually building audio.ko here, as per the
# requirement we are specifying <chipset>_audio.ko as LOCAL_MODULE.
# This means we need to rename the module to <chipset>_audio.ko
# after audio.ko is built.
KBUILD_OPTIONS += MODNAME=tfa9894_dlkm
KBUILD_OPTIONS += BOARD_PLATFORM=$(TARGET_BOARD_PLATFORM)
KBUILD_OPTIONS += $(AUDIO_SELECT)

###########################################################
include $(CLEAR_VARS)
LOCAL_MODULE              := $(AUDIO_CHIPSET)_tfa9894.ko
LOCAL_MODULE_KBUILD_NAME  := tfa9894_dlkm.ko
LOCAL_MODULE_TAGS         := optional
LOCAL_MODULE_DEBUG_ENABLE := true
LOCAL_MODULE_PATH         := $(KERNEL_MODULES_OUT)
include $(DLKM_DIR)/AndroidKernelModule.mk
###########################################################
###########################################################

endif # DLKM check
endif # supported target check
Loading