From 6684fbbedf08102400791ce60ce935fdf79737c1 Mon Sep 17 00:00:00 2001 From: Sameer Pujar Date: Thu, 4 Aug 2022 21:47:33 +0530 Subject: [PATCH] ASoC: tegra: Fix build errors due to core helpers snd_soc_of_parse_daifmt() is removed from later kernel versions and this causes complilation error. Use asoc_simple_parse_daifmt() helper to parse DAI format. asoc_simple_canonicalize_platform() has a different signature now and thus update the helper usage accordingly. Bug 3583581 Change-Id: I9a99fc71849ddf460040f980aea7d4b9f8f80011 Signed-off-by: Sameer Pujar Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2774427 Reviewed-by: Mohan Kumar D Reviewed-by: Sharad Gupta GVS: Gerrit_Virtual_Submit --- sound/soc/tegra/tegra_asoc_machine.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/tegra/tegra_asoc_machine.c b/sound/soc/tegra/tegra_asoc_machine.c index ff2100a7..7210f50d 100644 --- a/sound/soc/tegra/tegra_asoc_machine.c +++ b/sound/soc/tegra/tegra_asoc_machine.c @@ -476,11 +476,11 @@ static int parse_dt_dai_links(struct snd_soc_card *card, goto cleanup; } - dai_link->dai_fmt = - snd_soc_of_parse_daifmt(link_node, NULL, - NULL, NULL); + asoc_simple_parse_daifmt(&pdev->dev, link_node, codec, + NULL, &dai_link->dai_fmt); - asoc_simple_canonicalize_platform(dai_link); + asoc_simple_canonicalize_platform(dai_link->platforms, + dai_link->cpus); of_property_read_u32(link_node, "link-type", &link_type);