Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2b1ad86 authored by Banajit Goswami's avatar Banajit Goswami Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: use list function to access PCM runtime nodes



ASoC has replaced the PCM runtime array with a linked list.
Update MSM drivers to use list operations to access the
runtime nodes for the platform.
These changes are in accordance with the upstream changes
in ASoC between Linux-4.4 and Linux-4.9 versions.

Change-Id: I96dcb282eaae1999d583e7a98f6b2748df5a35c8
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
parent 9f923c3e
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -3025,7 +3025,6 @@ static int msm_asoc_cpe_lsm_probe(struct snd_soc_platform *platform)
	const char *cpe_dev_id = "qcom,msm-cpe-lsm-id";
	u32 port_id = 0;
	int ret = 0;
	int i;

	if (!platform || !platform->component.card) {
		pr_err("%s: Invalid platform or card\n",
@@ -3036,8 +3035,7 @@ static int msm_asoc_cpe_lsm_probe(struct snd_soc_platform *platform)
	card = platform->component.card;

	/* Match platform to codec */
	for (i = 0; i < card->num_links; i++) {
		rtd = &card->rtd[i];
	list_for_each_entry(rtd, &card->rtd_list, list) {
		if (!rtd->platform)
			continue;
		if (!strcmp(rtd->platform->component.name,