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

Commit ac26309a authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati
Browse files

drivers: mfd: Mark ANC coefficients registers as volatile



Mark ANC (Active Noise Cancellation) filter coefficients
as volatile because codec hardware can auto update the
registers based on coefficient pointer register update.

Change-Id: I65aef7d7322db0ab3815d69e19cb97c7a2e044b2
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent 6f524acc
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1327,6 +1327,13 @@ static bool wcd9335_is_volatile_register(struct device *dev, unsigned int reg)
	    (reg <= WCD9335_CDC_SIDETONE_IIR1_IIR_COEF_B2_CTL))
		return true;

	if ((reg >= WCD9335_CDC_ANC0_IIR_COEFF_1_CTL) &&
	    (reg <= WCD9335_CDC_ANC0_IIR_COEFF_2_CTL))
		return true;

	if ((reg >= WCD9335_CDC_ANC1_IIR_COEFF_1_CTL) &&
	    (reg <= WCD9335_CDC_ANC1_IIR_COEFF_2_CTL))
		return true;
	/*
	 * CPE inbox and outbox registers are volatile
	 * since they can be updated in the codec hardware