Skip to content

Commit 2de67aa

Browse files
ranj063plbossart
authored andcommitted
ASoC: SOF: do not add virtual routes to route list
Skip adding virtual routes to the route list. This will prevent sending the routes to the FW during system resume. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
1 parent ee39e8e commit 2de67aa

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

sound/soc/sof/topology.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1957,6 +1957,8 @@ static int sof_route_load(struct snd_soc_component *scomp, int index,
19571957
sink_swidget->id != snd_soc_dapm_buffer) {
19581958
dev_dbg(sdev->dev, "warning: neither Linked source component %s nor sink component %s is of buffer type, ignoring link\n",
19591959
route->source, route->sink);
1960+
ret = 0;
1961+
goto err;
19601962
} else {
19611963
ret = sof_ipc_tx_message(sdev->ipc,
19621964
connect->hdr.cmd,
@@ -1981,13 +1983,13 @@ static int sof_route_load(struct snd_soc_component *scomp, int index,
19811983
ret = reply.error;
19821984
goto err;
19831985
}
1984-
}
19851986

1986-
sroute->route = route;
1987-
sroute->private = connect;
1987+
sroute->route = route;
1988+
sroute->private = connect;
19881989

1989-
/* add route to route list */
1990-
list_add(&sroute->list, &sdev->route_list);
1990+
/* add route to route list */
1991+
list_add(&sroute->list, &sdev->route_list);
1992+
}
19911993

19921994
return ret;
19931995

0 commit comments

Comments
 (0)