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

Commit 7f36a27f authored by Damir Didjusto's avatar Damir Didjusto
Browse files

ASoC: msm: qdsp6v2: Fix the array index for COPP status



Use the correct variable for indexing into the array that
keeps track of COPP status.

Change-Id: Ib84a9136fd9f61ff436e5f0f8acee3e3eacd728d
Signed-off-by: default avatarDamir Didjusto <damird@codeaurora.org>
parent acf473c0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1138,7 +1138,7 @@ static int send_adm_cal_block(int port_id, int copp_idx,
				atomic_read(&this_adm.mem_map_cal_index)]);
	adm_params.payload_size = aud_cal->cal_size;

	atomic_set(&this_adm.copp.stat[port_id][copp_idx], 0);
	atomic_set(&this_adm.copp.stat[port_idx][copp_idx], 0);
	pr_debug("%s: Sending SET_PARAMS payload = 0x%x, size = %d\n",
		__func__, adm_params.payload_addr_lsw,
		adm_params.payload_size);