sound: soc: Use conftest to find if asoc_simple_xxx renamed

In Linux v6.7, commit b5a95c5bf6d69 ("ASoC: simple_card_utils.h: convert
not to use asoc_xxx()") add new APIs to convert asoc_simple_xxx() to
simple_util_xxx().

Use the conftest to find if soc_snd_util_xxx() present.

Bug 4346767

Change-Id: I3b282eb08d51c997760cc0b9752438c94e3caae5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3028578
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Laxman Dewangan
2023-12-05 13:35:41 +00:00
committed by mobile promotions
parent e225408ff7
commit 3013b107c1
5 changed files with 24 additions and 6 deletions

View File

@@ -7149,6 +7149,25 @@ compile_test() {
compile_check_conftest "$CODE" "NV_SND_SOC_RTD_TO_CODEC_PRESENT" "" "functions"
;;
simple_util_dai_init)
#
# Determine if the simple_util_dai_init() is present. This will help on finding
# if asoc_simple_xxx() renamed to simple_util_xxx()
#
# In Linux v6.7, commit b5a95c5bf6d69 ("ASoC: simple_card_utils.h: convert
# not to use asoc_xxx()") add new APIs to convert asoc_simple_xxx() to
# simple_util_xxx().
#
CODE="
#include <sound/soc.h>
#include <sound/simple_card_utils.h>
void conftest_simple_util_dai_init(void) {
simple_util_dai_init();
}"
compile_check_conftest "$CODE" "NV_ASOC_SIMPLE_RENAMED_SIMPLE" "" "functions"
;;
tc_taprio_qopt_offload_struct_has_cmd)
#
# Determine if struct tc_taprio_qopt_offload has a member named cmd