Skip to content

Commit cbadf0b

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 08e627b commit cbadf0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sound/soc/sof/ipc4-topology.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,6 +1650,12 @@ snd_sof_get_nhlt_endpoint_data(struct snd_sof_dev *sdev, struct snd_sof_dai *dai
16501650
dai_index);
16511651
if (dev_type < 0)
16521652
return dev_type;
1653+
1654+
if (params_width(params) != bit_depth) {
1655+
format_change = true;
1656+
dev_dbg(sdev->dev, "SSP format change from %d to %d\n",
1657+
params_width(params), bit_depth);
1658+
}
16531659
break;
16541660
default:
16551661
return 0;

0 commit comments

Comments
 (0)