summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/avs/Makefile
diff options
context:
space:
mode:
authorCezary Rojewski <cezary.rojewski@intel.com>2022-12-02 16:28:31 +0100
committerMark Brown <broonie@kernel.org>2022-12-05 15:05:23 +0100
commit9e3c15beb8976771f95ba30b3da8bd35dc7188ac (patch)
treeb4b2874a862ff8021cb6d6482173ea69c90fff69 /sound/soc/intel/avs/Makefile
parentASoC: Intel: avs: Drop fifo_lock (diff)
downloadlinux-9e3c15beb8976771f95ba30b3da8bd35dc7188ac.tar.xz
linux-9e3c15beb8976771f95ba30b3da8bd35dc7188ac.zip
ASoC: Intel: avs: Introduce debug-context aware helpers
Debug-related fields and log-dumping are useful when debugfs is enabled. Define them under CONFIG_DEBUG_FS and provide stubs when the config is disabled so that the code that makes use of these needs not to be complicated unnecessarily. Members that are duplicated by this patch will be removed by the follow up changes. Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://lore.kernel.org/r/20221202152841.672536-7-cezary.rojewski@intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/avs/Makefile')
-rw-r--r--sound/soc/intel/avs/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/intel/avs/Makefile b/sound/soc/intel/avs/Makefile
index 919212825f21..a211a0b7b4a8 100644
--- a/sound/soc/intel/avs/Makefile
+++ b/sound/soc/intel/avs/Makefile
@@ -9,6 +9,10 @@ snd-soc-avs-objs += trace.o
# tell define_trace.h where to find the trace header
CFLAGS_trace.o := -I$(src)
+ifneq ($(CONFIG_DEBUG_FS),)
+snd-soc-avs-objs += debugfs.o
+endif
+
obj-$(CONFIG_SND_SOC_INTEL_AVS) += snd-soc-avs.o
# Machine support