asoc: swr: Add config flag for New soundiwre driver compilation
Add new kconfig to control compilation of new soundwire driver
Change-Id: I6eb8b30de9f6dc2ffa152b6dfffbc2b02d0a990c
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
diff --git a/soc/Kbuild b/soc/Kbuild
index aee1a1f..f04631b 100644
--- a/soc/Kbuild
+++ b/soc/Kbuild
@@ -92,6 +92,11 @@
SWR_CTRL_OBJS += swr-wcd-ctrl.o
endif
+# for new soundwire driver
+ifdef CONFIG_SOUNDWIRE_MSTR_CTRL
+ SWR_CTRL_OBJS += swr-mstr-ctrl.o
+endif
+
ifdef CONFIG_SOUNDWIRE
SWR_OBJS += regmap-swr.o
SWR_OBJS += soundwire.o