sof icon indicating copy to clipboard operation
sof copied to clipboard

[FEATURE]: Enhancement of SOF mixer to overcome saturation possibility

Open jairaj-arava opened this issue 2 years ago • 2 comments

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.

jairaj-arava avatar Aug 17 '22 20:08 jairaj-arava

@sathya-nujella @lrgirdwo

jairaj-arava avatar Aug 17 '22 20:08 jairaj-arava

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.

plbossart avatar Aug 18 '22 08:08 plbossart

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.

singalsu avatar Sep 28 '23 07:09 singalsu