Merge "Fix for infinite loop in impd_apply_gains_and_add function" into rvc-dev am: dd0c4f77d0

Change-Id: I97ac4fdaf6c88d3de355f0a804b8fd1ce0edda0e