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 <spujar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2774427
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Sameer Pujar
2022-08-04 21:47:33 +05:30
committed by mobile promotions
parent 9cb012312d
commit 6684fbbedf

View File

@@ -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);