diff --git a/Makefile b/Makefile index 7d9fd627..809ff3d2 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,4 @@ obj-m += drivers/ obj-m += sound/soc/tegra/ -ifeq ($(shell test $$VERSION -lt 6; echo $$?),0) obj-m += sound/tegra-safety-audio/ -endif diff --git a/sound/tegra-safety-audio/sound-card.c b/sound/tegra-safety-audio/sound-card.c index 1fb038dd..bd19afc7 100644 --- a/sound/tegra-safety-audio/sound-card.c +++ b/sound/tegra-safety-audio/sound-card.c @@ -13,6 +13,7 @@ #include #include #include +#include #include "tegra_i2s.h" @@ -455,7 +456,10 @@ static int gpcdma_hw_params(struct snd_pcm_substream *substream, slave_config.src_maxburst = 2; } +#if (KERNEL_VERSION(5, 17, 0) > LINUX_VERSION_CODE) + //TODO: Read from DT later on slave_config.slave_id = dma_data->req_sel; +#endif ret = dmaengine_slave_config(chan, &slave_config); if (ret < 0) {