Skip to content

Commit fbab5b3

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 9c9d463 commit fbab5b3

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
@@ -1780,6 +1780,12 @@ snd_sof_get_nhlt_endpoint_data(struct snd_sof_dev *sdev, struct snd_sof_dai *dai
17801780
dai_index);
17811781
if (dev_type < 0)
17821782
return dev_type;
1783+
1784+
if (params_width(params) != bit_depth) {
1785+
format_change = true;
1786+
dev_dbg(sdev->dev, "SSP format change from %d to %d\n",
1787+
params_width(params), bit_depth);
1788+
}
17831789
break;
17841790
default:
17851791
return 0;

0 commit comments

Comments
 (0)