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

Commit 601e7e84 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dsp: q6afe: Add check for DC detection registration"

parents 55d691c1 0ffc6081
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -1796,9 +1796,12 @@ static void afe_send_cal_spkr_prot_tx(int port_id)
	}
	}
	mutex_unlock(&this_afe.cal_data[AFE_FB_SPKR_PROT_EX_VI_CAL]->lock);
	mutex_unlock(&this_afe.cal_data[AFE_FB_SPKR_PROT_EX_VI_CAL]->lock);


	/* Register for DC detection event */
	/* Register for DC detection event if speaker protection is enabled */
	if (this_afe.prot_cfg.mode != MSM_SPKR_PROT_DISABLED &&
		(this_afe.vi_tx_port == port_id)) {
		afe_spkr_prot_reg_event_cfg(port_id);
		afe_spkr_prot_reg_event_cfg(port_id);
	}
	}
}


static void afe_send_cal_spkr_prot_rx(int port_id)
static void afe_send_cal_spkr_prot_rx(int port_id)
{
{