summaryrefslogtreecommitdiff
path: root/snd-alpx/snd_alpx_xdma.h
diff options
context:
space:
mode:
Diffstat (limited to 'snd-alpx/snd_alpx_xdma.h')
-rw-r--r--snd-alpx/snd_alpx_xdma.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/snd-alpx/snd_alpx_xdma.h b/snd-alpx/snd_alpx_xdma.h
new file mode 100644
index 0000000..5acba24
--- /dev/null
+++ b/snd-alpx/snd_alpx_xdma.h
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+* Support for Digigram AlpX PCI-e boards
+*
+* Copyright (c) 2024 Digigram Digital (info@digigram.com)
+*/
+#ifndef _SND_ALPX_XDMA_H_
+#define _SND_ALPX_XDMA_H_
+
+/* dependency check support */
+#if (!IS_ENABLED(CONFIG_XILINX_XDMA)) || \
+ (KERNEL_VERSION(6, 7, 0) > LINUX_VERSION_CODE)
+#warning "USE Package's XDMA module"
+ /* snd-alpx-xdma dependency */
+ const char* SND_ALPX_XDMA_DEP(void);
+#else
+/* NO dependency SO required local define*/
+static const char* SND_ALPX_XDMA_DEP(void)
+{
+ return "Internal XDMA support";
+}
+#endif
+
+#endif /*_SND_ALPX_XDMA_H_*/