topology: dai: add link_id for dai_link matching in DAI_CONFIG
This is used for the matching with snd_soc_dai_link.id in BE dai_links. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
This commit is contained in:
parent
ed3f3aa94a
commit
ed471edb8f
|
@ -140,17 +140,17 @@ define(`DAI_TDM',
|
|||
dnl DAI Config)
|
||||
define(`N_DAI_CONFIG', `DAICONFIG.'$1)
|
||||
|
||||
dnl DAI_CONFIG(type, idx, name, format, valid bits, mclk, bclk, fsync, tdm)
|
||||
dnl DAI_CONFIG(type, idx, link_id, name, format, valid bits, mclk, bclk, fsync, tdm)
|
||||
define(`DAI_CONFIG',
|
||||
`SectionHWConfig."'$1$2`" {'
|
||||
`'
|
||||
` id "'$2`"'
|
||||
` format "'$4`"'
|
||||
` format "'$5`"'
|
||||
`'
|
||||
` '$6
|
||||
` '$7
|
||||
` '$8
|
||||
` '$9
|
||||
` '$10
|
||||
`}'
|
||||
`SectionVendorTuples."'N_DAI_CONFIG($1$2)`_tuples_str" {'
|
||||
` tokens "sof_dai_tokens"'
|
||||
|
@ -164,14 +164,15 @@ define(`DAI_CONFIG',
|
|||
`SectionVendorTuples."'N_DAI_CONFIG($1$2)`_tuples" {'
|
||||
` tokens "sof_dai_tokens"'
|
||||
` tuples."word" {'
|
||||
` SOF_TKN_DAI_SAMPLE_BITS' STR($5)
|
||||
` SOF_TKN_DAI_SAMPLE_BITS' STR($6)
|
||||
` }'
|
||||
`}'
|
||||
`SectionData."'N_DAI_CONFIG($1$2)`_data" {'
|
||||
` tuples "'N_DAI_CONFIG($1$2)`_tuples"'
|
||||
`}'
|
||||
`'
|
||||
`SectionBE."'$3`" {'
|
||||
`SectionBE."'$4`" {'
|
||||
` id "'$3`"'
|
||||
` index "0"'
|
||||
` default_hw_conf_id "'$2`"'
|
||||
`'
|
||||
|
|
|
@ -93,7 +93,7 @@ PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
|||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
#
|
||||
DAI_CONFIG(SSP, 2, NoCodec, I2S, 24,
|
||||
DAI_CONFIG(SSP, 2, 0, NoCodec, I2S, 24,
|
||||
DAI_CLOCK(mclk, 19200000, codec_mclk_in),
|
||||
DAI_CLOCK(bclk, 2400000, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
|
|
|
@ -76,13 +76,13 @@ PCM_DUPLEX_ADD(Port2, 4, 1, 1, PIPELINE_PCM_2, PIPELINE_PCM_3)
|
|||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
#
|
||||
DAI_CONFIG(SSP, 4, SSP4-Codec, DSP_B, 32,
|
||||
DAI_CONFIG(SSP, 4, 4, SSP4-Codec, DSP_B, 32,
|
||||
DAI_CLOCK(mclk, 24576000, codec_mclk_in),
|
||||
DAI_CLOCK(bclk, 12288000, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
DAI_TDM(8, 32, 15, 15))
|
||||
|
||||
DAI_CONFIG(SSP, 2, SSP2-Codec, I2S, 16,
|
||||
DAI_CONFIG(SSP, 2, 2, SSP2-Codec, I2S, 16,
|
||||
DAI_CLOCK(mclk, 24576000, codec_mclk_in),
|
||||
DAI_CLOCK(bclk, 1536000, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
|
|
|
@ -93,7 +93,7 @@ PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
|||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
#
|
||||
DAI_CONFIG(SSP, 0, Codec, I2S, 24,
|
||||
DAI_CONFIG(SSP, 0, 0, Codec, I2S, 24,
|
||||
DAI_CLOCK(mclk, 24000000, codec_mclk_in),
|
||||
DAI_CLOCK(bclk, 2400000, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
|
|
|
@ -93,7 +93,7 @@ PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
|||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
#
|
||||
DAI_CONFIG(SSP, 0, Codec, I2S, 24,
|
||||
DAI_CONFIG(SSP, 0, 0, Codec, I2S, 24,
|
||||
DAI_CLOCK(mclk, 24000000, codec_mclk_in),
|
||||
DAI_CLOCK(bclk, 2400000, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
|
|
|
@ -93,7 +93,7 @@ PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
|||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
#
|
||||
DAI_CONFIG(SSP, 2, SSP2-Codec, I2S, 24,
|
||||
DAI_CONFIG(SSP, 2, 0, SSP2-Codec, I2S, 24,
|
||||
DAI_CLOCK(mclk, 19200000, codec_mclk_in),
|
||||
DAI_CLOCK(bclk, 2400000, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
|
|
|
@ -93,7 +93,7 @@ PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
|||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
#
|
||||
DAI_CONFIG(SSP, 2, NoCodec, I2S, 24,
|
||||
DAI_CONFIG(SSP, 2, 0, NoCodec, I2S, 24,
|
||||
DAI_CLOCK(mclk, 19200000, codec_mclk_in),
|
||||
DAI_CLOCK(bclk, 2400000, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
|
|
|
@ -93,7 +93,7 @@ PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
|||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
#
|
||||
DAI_CONFIG(SSP, 2, SSP2-Codec, I2S, 24,
|
||||
DAI_CONFIG(SSP, 2, 0, SSP2-Codec, I2S, 24,
|
||||
DAI_CLOCK(mclk, 19200000, codec_mclk_in),
|
||||
DAI_CLOCK(bclk, 2400000, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
|
|
|
@ -93,7 +93,7 @@ PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
|||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
#
|
||||
DAI_CONFIG(SSP, 2, SSP2-Codec, I2S, 24,
|
||||
DAI_CONFIG(SSP, 2, 0, SSP2-Codec, I2S, 24,
|
||||
DAI_CLOCK(mclk, 19200000, codec_mclk_in),
|
||||
DAI_CLOCK(bclk, 2400000, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
|
|
|
@ -93,7 +93,7 @@ PCM_DUPLEX_ADD(Low Latency, 3, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
|||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
#
|
||||
DAI_CONFIG(SSP, 2, SSP2-Codec, I2S, 24,
|
||||
DAI_CONFIG(SSP, 2, 0, SSP2-Codec, I2S, 24,
|
||||
DAI_CLOCK(mclk, 19200000, codec_mclk_in),
|
||||
DAI_CLOCK(bclk, 2400000, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
|
|
|
@ -93,7 +93,7 @@ PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
|||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
#
|
||||
DAI_CONFIG(SSP, 2, SSP2-Codec, I2S, 16,
|
||||
DAI_CONFIG(SSP, 2, 0, SSP2-Codec, I2S, 16,
|
||||
DAI_CLOCK(mclk, 19200000, codec_mclk_in),
|
||||
DAI_CLOCK(bclk, 1920000, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
|
|
|
@ -93,7 +93,7 @@ PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
|||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
#
|
||||
DAI_CONFIG(SSP, 2, NoCodec, I2S, 24,
|
||||
DAI_CONFIG(SSP, 2, 0, NoCodec, I2S, 24,
|
||||
DAI_CLOCK(mclk, 19200000, codec_mclk_in),
|
||||
DAI_CLOCK(bclk, 2400000, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
|
|
|
@ -64,7 +64,7 @@ PCM_DUPLEX_ADD(Passthrough, 3, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
|||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
#
|
||||
DAI_CONFIG(SSP, 0, SSP0-Codec, DSP_B, 24,
|
||||
DAI_CONFIG(SSP, 0, 0, SSP0-Codec, DSP_B, 24,
|
||||
DAI_CLOCK(mclk, 24000000, codec_mclk_in),
|
||||
DAI_CLOCK(bclk, 4800000, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
|
|
|
@ -93,7 +93,7 @@ PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
|||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
#
|
||||
DAI_CONFIG(SSP, 0, Codec, I2S, 24,
|
||||
DAI_CONFIG(SSP, 0, 0, Codec, I2S, 24,
|
||||
DAI_CLOCK(mclk, 24000000, codec_mclk_in),
|
||||
DAI_CLOCK(bclk, 2400000, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
|
|
|
@ -68,7 +68,7 @@ PCM_CAPTURE_ADD(Passthrough, 3, 0, 0, PIPELINE_PCM_2)
|
|||
#
|
||||
# TEST_SSP_DATA_BITS bit I2S using TEST_SSP_PHY_BITS bit sample conatiner on SSP TEST_SSP_PORT
|
||||
#
|
||||
DAI_CONFIG(SSP, TEST_SSP_PORT, TEST_DAI_LINK_NAME, TEST_SSP_MODE, TEST_SSP_DATA_BITS,
|
||||
DAI_CONFIG(SSP, TEST_SSP_PORT, 0, TEST_DAI_LINK_NAME, TEST_SSP_MODE, TEST_SSP_DATA_BITS,
|
||||
DAI_CLOCK(mclk, TEST_SSP_MCLK, codec_mclk_in),
|
||||
DAI_CLOCK(bclk, TEST_SSP_BCLK, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
|
|
|
@ -68,7 +68,7 @@ PCM_PLAYBACK_ADD(Passthrough, 3, 0, 0, PIPELINE_PCM_1)
|
|||
#
|
||||
# TEST_SSP_DATA_BITS bit I2S using TEST_SSP_PHY_BITS bit sample conatiner on SSP TEST_SSP_PORT
|
||||
#
|
||||
DAI_CONFIG(SSP, TEST_SSP_PORT, TEST_DAI_LINK_NAME, TEST_SSP_MODE, TEST_SSP_DATA_BITS,
|
||||
DAI_CONFIG(SSP, TEST_SSP_PORT, 0, TEST_DAI_LINK_NAME, TEST_SSP_MODE, TEST_SSP_DATA_BITS,
|
||||
DAI_CLOCK(mclk, TEST_SSP_MCLK, codec_slave),
|
||||
DAI_CLOCK(bclk, TEST_SSP_BCLK, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
|
|
|
@ -86,7 +86,7 @@ PCM_DUPLEX_ADD(Passthrough, 3, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
|||
#
|
||||
# TEST_SSP_DATA_BITS bit I2S using TEST_SSP_PHY_BITS bit sample conatiner on SSP TEST_SSP_PORT
|
||||
#
|
||||
DAI_CONFIG(SSP, TEST_SSP_PORT, TEST_DAI_LINK_NAME, TEST_SSP_MODE, TEST_SSP_DATA_BITS,
|
||||
DAI_CONFIG(SSP, TEST_SSP_PORT, 0, TEST_DAI_LINK_NAME, TEST_SSP_MODE, TEST_SSP_DATA_BITS,
|
||||
DAI_CLOCK(mclk, TEST_SSP_MCLK, codec_mclk_in),
|
||||
DAI_CLOCK(bclk, TEST_SSP_BCLK, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
|
|
|
@ -56,7 +56,7 @@ DAI_ADD(sof/pipe-dai-playback.m4,
|
|||
#
|
||||
# TEST_SSP_DATA_BITS bit I2S using TEST_SSP_PHY_BITS bit sample conatiner on SSP TEST_SSP_PORT
|
||||
#
|
||||
DAI_CONFIG(SSP, TEST_SSP_PORT, TEST_DAI_LINK_NAME, I2S, TEST_SSP_DATA_BITS,
|
||||
DAI_CONFIG(SSP, TEST_SSP_PORT, 0, TEST_DAI_LINK_NAME, I2S, TEST_SSP_DATA_BITS,
|
||||
DAI_CLOCK(mclk, TEST_SSP_MCLK, codec_mclk_in),
|
||||
DAI_CLOCK(bclk, TEST_SSP_BCLK, codec_slave),
|
||||
DAI_CLOCK(fsync, 48000, codec_slave),
|
||||
|
|
Loading…
Reference in New Issue