ASoC: SOF: ipc4-topology: Correct the process module's output lookup
The process module can change different parameters in the audio path and this change has to be properly evaluated and applied.
In case of playback we are converting from multiple input formats to a single format (or just passing through without change), the output format lookup must be based on the input format.
In case of capture, we are converting from a single input format to a format which is to be passed to the FE, we need to use the input parameters and the FE parameters to be able to find the correct format: for those parameters that are modified by the module instance we need to use the FE parameter while for the rest we use the input parameters.
Signed-off-by: Peter Ujfalusi [email protected]
Changes since v1:
- rebased on 8-bit format support
Changes since v2:
- rebased on the fmt type fix