Unverified Commit b481eabe authored by Ravi Hothi's avatar Ravi Hothi Committed by Mark Brown
Browse files

ASoC: qcom: audioreach: explicitly enable speaker protection modules



Speaker protection and VI feedback modules are disabled by default.
Explicitly enable them when configuring speaker protection.

Fixes: 3e43a8c0 ("ASoC: qcom: audioreach: Add support for VI Sense module")
Fixes: 0db76f5b ("ASoC: qcom: audioreach: Add support for Speaker Protection module")
Signed-off-by: default avatarRavi Hothi <ravi.hothi@oss.qualcomm.com>
Reviewed-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Link: https://patch.msgid.link/20260326113531.3144998-1-ravi.hothi@oss.qualcomm.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 247d1c13
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1365,9 +1365,14 @@ int audioreach_set_media_format(struct q6apm_graph *graph,
	case MODULE_ID_SPEAKER_PROTECTION:
		rc = audioreach_speaker_protection(graph, module,
						   PARAM_ID_SP_OP_MODE_NORMAL);
		if (!rc)
			rc = audioreach_module_enable(graph, module, true);

		break;
	case MODULE_ID_SPEAKER_PROTECTION_VI:
		rc = audioreach_speaker_protection_vi(graph, module, cfg);
		if (!rc)
			rc = audioreach_module_enable(graph, module, true);
		break;

	default: