Browse Source

Merge "Asoc: Enable audio-dlkm compilation for sdmsteppe target"

Linux Build Service Account 6 years ago
parent
commit
a49eeaac30
2 changed files with 10 additions and 3 deletions
  1. 8 1
      Makefile.am
  2. 2 2
      asoc/sm6150.c

+ 8 - 1
Makefile.am

@@ -23,6 +23,9 @@ endif
 ifeq ($(TARGET_SUPPORT),qcs40x)
 KBUILD_OPTIONS += CONFIG_ARCH_QCS405=y
 endif
+ifeq ($(TARGET_SUPPORT), sdmsteppe))
+KBUILD_OPTIONS += CONFIG_ARCH_SM6150=y
+endif
 
 obj-m := ipc/
 obj-m += dsp/
@@ -30,7 +33,7 @@ obj-m += dsp/codecs/
 obj-m += soc/
 obj-m += asoc/
 obj-m += asoc/codecs/
-ifeq ($(TARGET_SUPPORT), $(filter $(TARGET_SUPPORT), sdm670 qcs605))
+ifeq ($(TARGET_SUPPORT), $(filter $(TARGET_SUPPORT), sdm670 qcs605 sdmsteppe))
 obj-m += asoc/codecs/wcd934x/
 endif
 ifeq ($(TARGET_SUPPORT), $(filter $(TARGET_SUPPORT), apq8053 sdm670 qcs605))
@@ -44,6 +47,10 @@ obj-m += asoc/codecs/bolero/
 obj-m += asoc/codecs/csra66x0/
 obj-m += asoc/codecs/ep92/
 endif
+ifeq ($(TARGET_SUPPORT), sdmsteppe))
+obj-m += asoc/codecs/bolero/
+obj-m += asoc/codecs/wcd937x/
+endif
 
 all:
 	$(shell rm -fr $(shell pwd)/soc/core.h)

+ 2 - 2
asoc/sm6150.c

@@ -8035,8 +8035,8 @@ static int msm_init_aux_dev(struct platform_device *pdev,
 	u32 wsa_dev_cnt;
 	u32 codec_aux_dev_cnt = 0;
 	int i;
-	struct msm_wsa881x_dev_info *wsa881x_dev_info;
-	struct aux_codec_dev_info *aux_cdc_dev_info;
+	struct msm_wsa881x_dev_info *wsa881x_dev_info = NULL;
+	struct aux_codec_dev_info *aux_cdc_dev_info = NULL;
 	const char *auxdev_name_prefix[1];
 	char *dev_name_str = NULL;
 	int found = 0;