Skip to content

Commit

Permalink
Topology: NHLT: Intel: Fix DMA slots config in SSP blob
Browse files Browse the repository at this point in the history
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: #289
Signed-off-by: Seppo Ingalsuo <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
singalsu authored and perexg committed Jan 23, 2025
1 parent 54e09df commit effe448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions topology/nhlt/intel/ssp/ssp-process.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ static void ssp_calculate_intern_v30(struct intel_nhlt_params *nhlt, int hwi)
blob30->rsvd2 = 0;
blob30->ssioc = blob->ssioc;

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

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

Expand Down

0 comments on commit effe448

Please sign in to comment.