mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
Rather than using kernel version checks to determine which kernel APIs to use, add the necessary tests to the conftest script to determine which kernel APIs are present in the kernel. Note that the function snd_soc_dai_init_dma_data() has been present in the Linux kernel since v3.13 and so use this for all kernel versions. In Linux v6.3, the 'playback_dma_data' and 'capture_dma_data' members of the snd_soc_dai_driver structure were replaced and so these could no longer be set directly. However, the arguments to snd_soc_dai_init_dma_data() have not changed and so can be used for older kernels and well has the current. This is beneficial for working with 3rd party Linux kernels that may have back-ported upstream changes into their kernel and so the kernel version checks do not work. Bug 4221847 Change-Id: Ibac0c6bab78e93f03981dfe3d1b2025ea19d4c92 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2993795 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
37 KiB
37 KiB