ASoC: SOF: ipc4-topology: Correct DAI copier config and NHLT blob request
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Fri, 3 May 2024 13:32:53 +0000 (08:32 -0500)
committerMark Brown <broonie@kernel.org>
Sun, 5 May 2024 14:45:38 +0000 (23:45 +0900)
commitf9209644ae7688e82f629e737417bc8916db7b57
treee644479cbf486db44f61a7da44d8223d1ce8788f
parentb679302526d637700e998da85ed1e06d8f7d3674
ASoC: SOF: ipc4-topology: Correct DAI copier config and NHLT blob request

In case of capture and when the DAI copier have single bit depth supported
on it's input side we should use this format instead of the one in
fe_params.

Regardless of the stream direction for the NHLT blob lookup when the DAI
copier only supports single bit depth on the DAI side we should only look
for a blob which matches with this single configuration.

For DMIC if the DAI copier supports multiple bit depths, try to request
32-bit blob first if the requested bit depth is 16-bit.
If the 32-bit blob is available then look for marching (32-bit) copier
format to make sure that both the blob and copier have correct parameters.

Reviewed-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20240503133253.108201-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-topology.c