Skip to content

Commit 0ce5e4f

Browse files
committed
ASoC: SOF: ipc4-topology: Propagate change caused by NHLT data for SSP
We need to adjust the params based on the available and picked SSP blob in the similar way we do for DMIC. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent b104aa1 commit 0ce5e4f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

sound/soc/sof/ipc4-topology.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,6 +1805,12 @@ snd_sof_get_nhlt_endpoint_data(struct snd_sof_dev *sdev, struct snd_sof_dai *dai
18051805
dai_index);
18061806
if (dev_type < 0)
18071807
return dev_type;
1808+
1809+
if (params_width(params) != bit_depth) {
1810+
format_change = true;
1811+
dev_dbg(sdev->dev, "SSP sample width change from %d to %d\n",
1812+
params_width(params), bit_depth);
1813+
}
18081814
break;
18091815
default:
18101816
return 0;

0 commit comments

Comments
 (0)