Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Audio: DRC: Use audio_stream_copy() with pass-through configuration
The configuration blob is checked in drc_prepare(). If the blob does not have params.enable set, then it is safe to switch to a more efficient buffer copy function that bypasses the internal DRC lookup delay with channels de-interleave and interleave operations. The enable in the blob is a master switch for DRC. With such configuration in the blob the switch control from user space can't switch the processing on. Therefore it is safe to change the processing function. This change minimizes the MCPS overhead of unused DRC and reduces audio latency. If a new blob is received during streaming, the params.enable is checked again and the processing function is set again if the pass-through copy mode was in use. If the new blob has enable false, then the processing is changed to pass-through mode. The pass-through blob configuration is useful when the same pipeline is used for both headphone and speaker, where DRC is usually disabled for headphone mode. This change saves in hda-generic topologies with the default blob about 1.2 MCPS in TGL platform. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
- Loading branch information