diff options
author | Christian Pointner <equinox@helsinki.at> | 2024-05-10 18:26:46 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2024-05-10 18:26:46 (GMT) |
commit | 627f7d488817e308d6f3a92fd9a877723ac7ae1d (patch) | |
tree | 554a3c53c90b20da5bd0da0c8da67a9b169bd10f /snd-alpx/snd_alpx_xdma.h |
import snd-alpx V3.4.3
Diffstat (limited to 'snd-alpx/snd_alpx_xdma.h')
-rw-r--r-- | snd-alpx/snd_alpx_xdma.h | 24 |
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_*/ |