Skip to content

Commit effe448

Browse files
singalsuperexg
authored andcommitted
Topology: NHLT: Intel: Fix DMA slots config in SSP blob
This fixes a mistake in function ssp_calculate_intern_v30(). The rx_dir[0] and tx_dir[0] value was hard-coded to 0x3 for typical stereo slots configuration. It should be instead retrieved from topology parameters for the SSP. Closes: alsa-project#289 Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
1 parent 54e09df commit effe448

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

topology/nhlt/intel/ssp/ssp-process.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ static void ssp_calculate_intern_v30(struct intel_nhlt_params *nhlt, int hwi)
6060
blob30->rsvd2 = 0;
6161
blob30->ssioc = blob->ssioc;
6262

63-
blob30->rx_dir[0].ssmidytsa = 3;
63+
blob30->rx_dir[0].ssmidytsa = ssp->ssp_prm[di].hw_cfg[hwi].rx_slots;
6464
for (i = 1; i < I2SIPCMC; i++)
6565
blob30->rx_dir[i].ssmidytsa = 0;
6666

67-
blob30->tx_dir[0].ssmodytsa = 3;
67+
blob30->tx_dir[0].ssmodytsa = ssp->ssp_prm[di].hw_cfg[hwi].tx_slots;
6868
for (i = 1; i < I2SOPCMC; i++)
6969
blob30->tx_dir[i].ssmodytsa = 0;
7070

0 commit comments

Comments
 (0)