Skip to content

Commit 816f291

Browse files
ujfalusibroonie
authored andcommitted
ASoC: SOF: ipc4-topology: Convert FLOAT to S32 during blob selection
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") Cc: [email protected] Signed-off-by: Peter Ujfalusi <[email protected]> Reviewed-by: Bard Liao <[email protected]> Reviewed-by: Seppo Ingalsuo <[email protected]> Reviewed-by: Kai Vehmanen <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 26e4550 commit 816f291

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sof/ipc4-topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1843,7 +1843,7 @@ snd_sof_get_nhlt_endpoint_data(struct snd_sof_dev *sdev, struct snd_sof_dai *dai
18431843
*len = cfg->size >> 2;
18441844
*dst = (u32 *)cfg->caps;
18451845

1846-
if (format_change) {
1846+
if (format_change || params_format(params) == SNDRV_PCM_FORMAT_FLOAT_LE) {
18471847
/*
18481848
* Update the params to reflect that different blob was loaded
18491849
* instead of the requested bit depth (16 -> 32 or 32 -> 16).

0 commit comments

Comments
 (0)