mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
ASoC: tegra: Fix build for Linux v6.5
In Linux v6.5, the arguments to the function snd_soc_of_get_dai_name() were updated and this is causing the Tegra ASoC machine driver build to fail. Add a new test to the conftest script to check the arguments for snd_soc_of_get_dai_name() and use the definition generated by the conftest script accordingly. Bug 4221847 Change-Id: I32772da12ab59eb09e2f9d8bc66471d859201f8e Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2990531 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
2fab40f274
commit
f926a58dd1
@@ -111,6 +111,7 @@ NV_CONFTEST_FUNCTION_COMPILE_TESTS += netif_napi_add_weight
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += pde_data
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += register_shrinker_has_fmt_arg
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += snd_soc_dai_link_struct_has_c2c_params_arg
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += snd_soc_of_get_dai_name_has_index_arg
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tc_taprio_qopt_offload_struct_has_cmd
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra_dev_iommu_get_stream_id
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += tegra_ivc_struct_has_iosys_map
|
||||
|
||||
@@ -6738,6 +6738,24 @@ compile_test() {
|
||||
"NV_SND_SOC_DAI_LINK_STRUCT_HAS_C2C_PARAMS_ARG" "" "types"
|
||||
;;
|
||||
|
||||
snd_soc_of_get_dai_name_has_index_arg)
|
||||
#
|
||||
# Determine if the function 'snd_soc_of_get_dai_name()' has an index argument.
|
||||
#
|
||||
# In Linux v6.5, commit 3c8b5861850c ("ASoC: soc-core.c: add index on
|
||||
# snd_soc_of_get_dai_name()") updated the arguments to the function
|
||||
# snd_soc_of_get_dai_name().
|
||||
#
|
||||
CODE="
|
||||
#include <sound/soc.h>
|
||||
int conftest_snd_soc_of_get_dai_name_has_index_args(struct device_node *np,
|
||||
const char **name) {
|
||||
return snd_soc_of_get_dai_name(np, name, 0);
|
||||
}"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_SND_SOC_OF_GET_DAI_NAME_HAS_INDEX_ARG" "" "types"
|
||||
;;
|
||||
|
||||
tc_taprio_qopt_offload_struct_has_cmd)
|
||||
#
|
||||
# Determine if struct tc_taprio_qopt_offload has a member named cmd
|
||||
|
||||
Reference in New Issue
Block a user