sof
sof copied to clipboard
[FEATURE]: Enhancement of SOF mixer to overcome saturation possibility
Adding multiple PCM streams (pipelines) to the mixer component may result in possibility of Saturation in the output. Hence, need mixer enhancements to overcome this.
@sathya-nujella @lrgirdwo
This is a decades-old problem that's simply fixed by adjusting the gains on all paths prior to mixing to make sure there's no saturation added. In other words, the problem is solved PRIOR to mixing.
If you want a more elaborate solution, the mixer will have to include a dynamic range control unit which is considerably more expensive in terms of processing power, latency if a look-ahead buffer is added, and tuning becomes a lot more complicated.
This could be achieved now in modular way in topology with attenuation in each mixer input (gain), mixin/mixout, and DRC with target gain and limiter to restore the level to e.g. gain of 1 when single stream is present.