topology: create m4 wrapper SectionPCMCapabilities

This patch adds a m4 wrpper for PCM Capabilities sections
in pipeline definition

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2018-03-05 13:58:31 -08:00 committed by Liam Girdwood
parent 625f2e1cc0
commit 9d846ac85a
10 changed files with 27 additions and 126 deletions

View File

@ -615,6 +615,22 @@ define(`P_GRAPH',
` ]' ` ]'
`}') `}')
dnl PCM_CAPABILITIES(name, formats, rate_min, rate_max, channels_min, channels_max, periods_min, periods_max, period_size_min, period_size_max, buffer_size_min, buffer_size_max)
define(`PCM_CAPABILITIES',
`SectionPCMCapabilities.STR($1) {'
`'
` formats "$2"'
` rate_min STR($3)'
` rate_max STR($4)'
` channels_min STR($5)'
` channels_max STR($6)'
` periods_min STR($7)'
` periods_max STR($8)'
` period_size_min STR($9)'
` period_size_max STR($10)'
` buffer_size_min STR($11)'
` buffer_size_max STR($12)'
`}')
divert(0) dnl divert(0) dnl

View File

@ -60,18 +60,4 @@ indir(`define', concat(`PIPELINE_PCM_', PIPELINE_ID), Low Latency Capture PCM_ID
# PCM Configuration # PCM Configuration
# #
SectionPCMCapabilities.STR(Low Latency Capture PCM_ID) { PCM_CAPABILITIES(Low Latency Capture PCM_ID, `S32_LE,S24_LE,S16_LE', 48000, 48000, 2, 4, 2, 4, 192, 16384, 65536, 65536)
formats "S32_LE,S24_LE,S16_LE"
rate_min "48000"
rate_max "48000"
channels_min "2"
channels_max "4"
periods_min "2"
periods_max "4"
period_size_min "192"
period_size_max "16384"
buffer_size_min "65536"
buffer_size_max "65536"
}

View File

@ -108,19 +108,7 @@ indir(`define', concat(`PIPELINE_PCM_', PIPELINE_ID), Low Latency Playback PCM_I
# PCM Configuration # PCM Configuration
# #
# PCM capabilities supported by FW # PCM capabilities supported by FW
SectionPCMCapabilities.STR(Low Latency Playback PCM_ID) { PCM_CAPABILITIES(Low Latency Playback PCM_ID, `S32_LE,S24_LE,S16_LE', 48000, 48000, 2, 2, 2, 16, 192, 16384, 65536, 65536)
formats "S32_LE,S24_LE,S16_LE"
rate_min "48000"
rate_max "48000"
channels_min "2"
channels_max "2"
periods_min "2"
periods_max "16"
period_size_min "192"
period_size_max "16384"
buffer_size_min "65536"
buffer_size_max "65536"
}

View File

@ -51,17 +51,4 @@ indir(`define', concat(`PIPELINE_PCM_', PIPELINE_ID), Passthrough Capture PCM_ID
# PCM Configuration # PCM Configuration
# #
SectionPCMCapabilities.STR(Passthrough Capture PCM_ID) { PCM_CAPABILITIES(Passthrough Capture PCM_ID, `S32_LE,S24_LE,S16_LE', 48000, 48000, 2, 4, 2, 16, 192, 16384, 65536, 65536)
formats "S32_LE,S24_LE,S16_LE"
rate_min "48000"
rate_max "48000"
channels_min "2"
channels_max "4"
periods_min "2"
periods_max "16"
period_size_min "192"
period_size_max "16384"
buffer_size_min "65536"
buffer_size_max "65536"
}

View File

@ -51,17 +51,4 @@ indir(`define', concat(`PIPELINE_PCM_', PIPELINE_ID), Passthrough Playback PCM_I
# PCM Configuration # PCM Configuration
# #
SectionPCMCapabilities.STR(Passthrough Playback PCM_ID) { PCM_CAPABILITIES(Passthrough Playback PCM_ID, `S32_LE,S24_LE,S16_LE', 48000, 48000, 2, 4, 2, 16, 192, 16384, 65536, 65536)
formats "S32_LE,S24_LE,S16_LE"
rate_min "48000"
rate_max "48000"
channels_min "2"
channels_max "4"
periods_min "2"
periods_max "16"
period_size_min "192"
period_size_max "16384"
buffer_size_min "65536"
buffer_size_max "65536"
}

View File

@ -97,19 +97,7 @@ W_PIPELINE(N_SRC(0), SCHEDULE_DEADLINE, SCHEDULE_PRIORITY, SCHEDULE_FRAMES, SCHE
# PCM capabilities supported by FW # PCM capabilities supported by FW
SectionPCMCapabilities.STR(Media Playback PCM_ID) { PCM_CAPABILITIES(Media Playback PCM_ID, `S32_LE,S24_LE,S16_LE', 8000, 192000, 2, 2, 2, 32, 192, 262144, 8388608, 8388608)
formats "S32_LE,S24_LE,S16_LE"
rate_min "8000"
rate_max "192000"
channels_min "2"
channels_max "2"
periods_min "2"
periods_max "32"
period_size_min "192"
period_size_max "262144"
buffer_size_min "8388608"
buffer_size_max "8388608"
}
# PCM Low Latency Playback and Capture # PCM Low Latency Playback and Capture
SectionPCM.STR(Media Playback PCM_ID) { SectionPCM.STR(Media Playback PCM_ID) {

View File

@ -77,17 +77,4 @@ indir(`define', concat(`PIPELINE_PCM_', PIPELINE_ID), Passthrough Capture PCM_ID
# PCM Configuration # PCM Configuration
# #
SectionPCMCapabilities.STR(Passthrough Capture PCM_ID) { PCM_CAPABILITIES(Passthrough Capture PCM_ID, `S32_LE,S24_LE,S16_LE', 8000, 96000, 2, 4, 2, 16, 192, 16384, 65536, 65536)
formats "S32_LE,S24_LE,S16_LE"
rate_min "8000"
rate_max "96000"
channels_min "2"
channels_max "4"
periods_min "2"
periods_max "16"
period_size_min "192"
period_size_max "16384"
buffer_size_min "65536"
buffer_size_max "65536"
}

View File

@ -77,18 +77,5 @@ indir(`define', concat(`PIPELINE_PCM_', PIPELINE_ID), Passthrough Playback PCM_I
# PCM Configuration # PCM Configuration
# #
SectionPCMCapabilities.STR(Passthrough Playback PCM_ID) { PCM_CAPABILITIES(Passthrough Playback PCM_ID, `S32_LE,S24_LE,S16_LE', 8000, 96000, 2, 4, 2, 16, 192, 16384, 65536, 65536)
formats "S32_LE,S24_LE,S16_LE"
rate_min "8000"
rate_max "96000"
channels_min "2"
channels_max "4"
periods_min "2"
periods_max "16"
period_size_min "192"
period_size_max "16384"
buffer_size_min "65536"
buffer_size_max "65536"
}

View File

@ -72,17 +72,5 @@ indir(`define', concat(`PIPELINE_PCM_', PIPELINE_ID), Passthrough Capture PCM_ID
# PCM Configuration # PCM Configuration
# #
SectionPCMCapabilities.STR(Passthrough Capture PCM_ID) { PCM_CAPABILITIES(Passthrough Capture PCM_ID, `S32_LE,S24_LE,S16_LE', 48000, 48000, 2, 4, 2, 16, 192, 16384, 65536, 65536)
formats "S32_LE,S24_LE,S16_LE"
rate_min "48000"
rate_max "48000"
channels_min "2"
channels_max "4"
periods_min "2"
periods_max "16"
period_size_min "192"
period_size_max "16384"
buffer_size_min "65536"
buffer_size_max "65536"
}

View File

@ -80,20 +80,7 @@ indir(`define', concat(`PIPELINE_PCM_', PIPELINE_ID), Passthrough Playback PCM_I
# #
# PCM Configuration # PCM Configuration
# #
PCM_CAPABILITIES(Passthrough Playback PCM_ID, `S32_LE,S24_LE,S16_LE', 48000, 48000, 2, 4, 2, 16, 192, 16384, 65536, 65536)
SectionPCMCapabilities.STR(Passthrough Playback PCM_ID) {
formats "S32_LE,S24_LE,S16_LE"
rate_min "48000"
rate_max "48000"
channels_min "2"
channels_max "4"
periods_min "2"
periods_max "16"
period_size_min "192"
period_size_max "16384"
buffer_size_min "65536"
buffer_size_max "65536"
}