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

Commit 62e9345a authored by Jhansi Konathala's avatar Jhansi Konathala Committed by Gerrit - the friendly Code Review server
Browse files

Soc: q6afe: Initialize the delay entry structure in q6afe



Initialize the delay entry structure by memset to zero.

CRs-fixed: 2223256
Change-Id: I460d557278bd6fd98062e2bc01633964eb8a2f2e
Signed-off-by: default avatarJhansi Konathala <cjkonat@codeaurora.org>
parent 38bc3d98
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1144,6 +1144,7 @@ static int afe_send_hw_delay(u16 port_id, u32 rate)

	pr_debug("%s:\n", __func__);

	memset(&delay_entry, 0, sizeof(delay_entry));
	delay_entry.sample_rate = rate;
	if (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_TX)
		ret = afe_get_cal_hw_delay(TX_DEVICE, &delay_entry);