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

Commit 11b247f5 authored by Sachin Mohan Gadag's avatar Sachin Mohan Gadag
Browse files

asoc: routing: Pass correct port id to adm close



Currently based on fe_dai index backend dai port id is
selected and passed to adm_close api which is incorrect.
Fix it by using be_dai index to select backend dai port id.

Change-Id: I12affaf7b08d2f69264338d098c30600ed014220
Signed-off-by: default avatarSachin Mohan Gadag <sgadag@codeaurora.org>
parent 1eaaa37d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16941,7 +16941,7 @@ static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
				if (test_bit(idx, &copp))
					break;
			fdai->be_srate = bedai->sample_rate;
			port_id = get_port_id(msm_bedais[i].port_id);
			port_id = get_port_id(bedai->port_id);
			topology = adm_get_topology_for_port_copp_idx(port_id,
								     idx);
			adm_close(port_id, fdai->perf_mode, idx);