]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: SOF: ipc4-topology: Add support for NHLT with 16-bit only DMIC blob
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 16 May 2024 07:56:11 +0000 (10:56 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 27 May 2024 00:31:14 +0000 (01:31 +0100)
commitd556f807bda0b260b392069b3c8ac9e6491f0025
treeb2b0fbb664f066a78741f2fc2725841c33334b5a
parent6f80324bc1317f50f1c25c6d65a8dbef417aeba4
ASoC: SOF: ipc4-topology: Add support for NHLT with 16-bit only DMIC blob

The ACPI NHLT table always had 32-bit DMIC blob even if 16-bit was also
present and taken as a 'rule' which obviously got broken and there is at
least one device on the market which ships with only 16-bit DMIC
configuration blob.
This corner case has never been supported and it is going to need topology
updates for DMIC copier to support multiple formats.

As for the kernel side: if the copier supports multiple formats and the
preferred 32-bit DMIC blob is not found then we will try to get a 16-bit
DMIC configuration and look for a 16-bit copier config.

Fixes: f9209644ae76 ("ASoC: SOF: ipc4-topology: Correct DAI copier config and NHLT blob request")
Link: https://github.com/thesofproject/linux/issues/4973
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://msgid.link/r/20240516075611.18018-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-topology.c