Skip to content

Commit

Permalink
topology: imx: fix tdm slot width value
Browse files Browse the repository at this point in the history
Set correct TDM slot width to 32 bits.

The error has been discovered after commit
0ba64e9 ("SAI: use topology params").
We start using the tdm_slot_width from topology,
rather than hardcoded in code.

Signed-off-by: Iuliana Prodan <[email protected]>
(cherry picked from commit b9bd230)
  • Loading branch information
iuliana-prodan authored and dbaluta committed Nov 8, 2023
1 parent 27b8a7e commit 99ab9b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/topology/topology1/sof-imx8-compr-wm8960-mixer.m4
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,5 @@ DAI_CONFIG(SAI, SAI_INDEX, 0, DAI_BE_NAME,
SAI_CONFIG(I2S, SAI_CLOCK(mclk, 12288000, codec_mclk_in),
SAI_CLOCK(bclk, 3072000, codec_master),
SAI_CLOCK(fsync, 48000, codec_master),
SAI_TDM(2, 16, 3, 3),
SAI_TDM(2, 32, 3, 3),
SAI_CONFIG_DATA(SAI, SAI_INDEX, 0)))
4 changes: 2 additions & 2 deletions tools/topology/topology1/sof-imx8-wm8960-mixer.m4
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ ifelse(
SAI_CONFIG(I2S, SAI_CLOCK(mclk, 12288000, codec_mclk_in),
SAI_CLOCK(bclk, 3072000, codec_master),
SAI_CLOCK(fsync, RATE, codec_master),
SAI_TDM(2, 16, 3, 3),
SAI_TDM(2, 32, 3, 3),
SAI_CONFIG_DATA(SAI, SAI_INDEX, 0)))',
CODEC, `wm8962', `
SAI_CONFIG(I2S, SAI_CLOCK(mclk, 12288000, codec_mclk_in),
SAI_CLOCK(bclk, 3072000, codec_master),
SAI_CLOCK(fsync, RATE, codec_master),
SAI_TDM(2, 16, 3, 3),
SAI_TDM(2, 32, 3, 3),
SAI_CONFIG_DATA(SAI, SAI_INDEX, 0)))',
)

0 comments on commit 99ab9b2

Please sign in to comment.