Skip to contentSkip to conversation

ASoC: qcom: audioreach: explicitly enable speaker protection modules

PATCH Superseded Ravi Hothi 2 participants 3 messages Mar 25 – Mar 26

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Ravi Hothi

author
#0 lore raw

PATCH 1/1 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.

---
 sound/soc/qcom/qdsp6/audioreach.c | 5 +++++
 1 file changed, 5 insertions(+)
sound/soc/qcom/qdsp6/audioreach.c +5 -0
index 241c3b4479c6..ff8cd55b0d89 100644
@@ -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:
Signature · 1 line
2.34.1
#1 lore raw
Quoted 4 lines · Ravi Hothi

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

Fixes?

Quoted 4 lines
---
 sound/soc/qcom/qdsp6/audioreach.c | 5 +++++
 1 file changed, 5 insertions(+)
Signature · 2 lines
With best wishes
Dmitry
author
#2 lore raw
Quoted 7 lines · Dmitry Baryshkov
Quoted 4 lines · Ravi Hothi

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

Fixes?

ACK, Will add the fixes tag.

Best Regards,
Ravi Hothi

Quoted 6 lines
Quoted 5 lines
---
  sound/soc/qcom/qdsp6/audioreach.c | 5 +++++
  1 file changed, 5 insertions(+)