TAS2572: How to add the IV-sense protection algorithm for TAS2572 on Qualcomm platform?

Part Number: TAS2572

The product uses a Qualcomm platform, and the TAS2572 driver selected is the RCA driver, which runs on the AP side (ARM). According to the previous support engineer’s explanation, this driver does not include speaker protection algorithms. The customer now requests the addition of the IV-sense protection algorithm. Should this protection algorithm run on the ADSP side or the AP side? Please help provide the relevant algorithm and porting documentation.