Skip to content

Conversation

@ujfalusi
Copy link
Collaborator

Hi,

the introduction of 8-bit and FLOAT formats missed updating the code responsible for the NHLT blob lookup and selection for DMIC and SSP.
Before these exotic formats we had only 16-bit or 32-bit formats and this needs to be changed to be able to select the correct blob for the configuration.
We also need to make sure that the format is corrected (FLOAT is not supported in blobs for example).

This set updates the blob lookup and allows more formats to be used on the FE side against DMIC or SSP.

…as well

With the introduction of 8-bit formats the DMIC blob lookup also needs to
be modified to prefer the 32-bit blob when 8-bit format is used on FE.

At the same time we also need to make sure that in case 8-bit format is
used, but only 16-bit blob is available for DMIC then we will not try to
look for 8-bit blob (which is invalid) as fallback, but for a 16-bit one.

Fixes: c04c2e8 ("ASoC: SOF: ipc4-topology: Add support for 8-bit formats")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
SSP/DMIC blobs have no support for FLOAT type, they are using S32 on data
bus.

Convert the format from FLOAT_LE to S32_LE to make sure that the correct
format is used within the path.

FLOAT conversion will be done on the host side (or within the path).

Fixes: f7c4191 ("ASoC: SOF: ipc4-topology: Add support for float sample type")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Copy link

@singalsu singalsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this fixes the FLOAT_LE capture issue for PCH DMIC.

Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic around blobs starts to be quite exotic as well. I had to reread the patch a few times, but it does look solid.

@ujfalusi ujfalusi merged commit 5bce610 into thesofproject:topic/sof-dev Oct 27, 2025
5 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants