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

Commit 1f1574bb authored by Sudheer Papothi's avatar Sudheer Papothi Committed by Kyle Yan
Browse files

ASoC: wcd9335: Fix traversing of source dapm widgets



Parsing of audio routing in ASoC core has been changed in
kernel 4.4 to use new variables. Update the codec driver
to traverse to source dapm widget using new variables.

Change-Id: I8c545248f23c73ff9fb470705f1c17175a8e4e0b
Signed-off-by: default avatarSudheer Papothi <spapothi@codeaurora.org>
parent aa0b21c9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -7511,9 +7511,9 @@ static int tasha_mad_input_put(struct snd_kcontrol *kcontrol,
		"%s: tasha input widget = %s\n", __func__,
		mad_input_widget);

	for (i = 0; i < card->num_dapm_routes; i++) {
		if (!strcmp(card->dapm_routes[i].sink, mad_input_widget)) {
			source_widget = card->dapm_routes[i].source;
	for (i = 0; i < card->num_of_dapm_routes; i++) {
		if (!strcmp(card->of_dapm_routes[i].sink, mad_input_widget)) {
			source_widget = card->of_dapm_routes[i].source;
			if (!source_widget) {
				dev_err(codec->dev,
					"%s: invalid source widget\n",