Merge pull request #43 from ranj063/sectionpcm
[RFC] Changes to SectionPCM macros
This commit is contained in:
commit
722a24ab2e
|
@ -29,23 +29,4 @@ define(`W_BUFFER',
|
|||
dnl COMP_BUFFER_SIZE( num_periods, sample_size, channels, fmames)
|
||||
define(`COMP_BUFFER_SIZE', `eval(`$1 * $2 * $3 * $4')')
|
||||
|
||||
dnl PCM_PLAYBACK_ADD(name, pipeline, pcm_id, dai_id, playback)
|
||||
define(`PCM_PLAYBACK_ADD',
|
||||
`SectionPCM.STR($1) {'
|
||||
`'
|
||||
` index STR($2)'
|
||||
`'
|
||||
` # used for binding to the PCM'
|
||||
` id STR($3)'
|
||||
`'
|
||||
` dai.STR($1 $3) {'
|
||||
` id STR($4)'
|
||||
` }'
|
||||
`'
|
||||
` pcm."playback" {'
|
||||
`'
|
||||
` capabilities STR($5)'
|
||||
` }'
|
||||
`}')
|
||||
|
||||
divert(0)dnl
|
||||
|
|
|
@ -71,46 +71,56 @@ define(`PCM_CAPABILITIES',
|
|||
` buffer_size_max STR($12)'
|
||||
`}')
|
||||
|
||||
dnl PCM_CAPTURE_ADD(name, pipeline, pcm_id, dai_id, capture)
|
||||
define(`PCM_CAPTURE_ADD',
|
||||
dnl PCM_PLAYBACK_ADD(name, pcm_id, playback)
|
||||
define(`PCM_PLAYBACK_ADD',
|
||||
`SectionPCM.STR($1) {'
|
||||
`'
|
||||
` index STR($2)'
|
||||
`'
|
||||
` # used for binding to the PCM'
|
||||
` id STR($3)'
|
||||
` id STR($2)'
|
||||
`'
|
||||
` dai.STR($1 $3) {'
|
||||
` id STR($4)'
|
||||
` }'
|
||||
`'
|
||||
` pcm."capture" {'
|
||||
`'
|
||||
` capabilities STR($5)'
|
||||
` }'
|
||||
`}')
|
||||
|
||||
dnl PCM_DUPLEX_ADD(name, pipeline, pcm_id, dai_id, playback, capture)
|
||||
define(`PCM_DUPLEX_ADD',
|
||||
`SectionPCM.STR($1) {'
|
||||
`'
|
||||
` index STR($2)'
|
||||
`'
|
||||
` # used for binding to the PCM'
|
||||
` id STR($3)'
|
||||
`'
|
||||
` dai.STR($1 $3) {'
|
||||
` id STR($4)'
|
||||
` }'
|
||||
`'
|
||||
` pcm."capture" {'
|
||||
`'
|
||||
` capabilities STR($6)'
|
||||
` dai.STR($1 $2) {'
|
||||
` }'
|
||||
`'
|
||||
` pcm."playback" {'
|
||||
`'
|
||||
` capabilities STR($5)'
|
||||
` capabilities STR($3)'
|
||||
` }'
|
||||
`}')
|
||||
|
||||
dnl PCM_CAPTURE_ADD(name, pcm_id, capture)
|
||||
define(`PCM_CAPTURE_ADD',
|
||||
`SectionPCM.STR($1) {'
|
||||
`'
|
||||
` # used for binding to the PCM'
|
||||
` id STR($2)'
|
||||
`'
|
||||
` dai.STR($1 $2) {'
|
||||
` }'
|
||||
`'
|
||||
` pcm."capture" {'
|
||||
`'
|
||||
` capabilities STR($3)'
|
||||
` }'
|
||||
`}')
|
||||
|
||||
dnl PCM_DUPLEX_ADD(name, pcm_id, playback, capture)
|
||||
define(`PCM_DUPLEX_ADD',
|
||||
`SectionPCM.STR($1) {'
|
||||
`'
|
||||
` # used for binding to the PCM'
|
||||
` id STR($2)'
|
||||
`'
|
||||
` dai.STR($1 $2) {'
|
||||
` }'
|
||||
`'
|
||||
` pcm."capture" {'
|
||||
`'
|
||||
` capabilities STR($4)'
|
||||
` }'
|
||||
`'
|
||||
` pcm."playback" {'
|
||||
`'
|
||||
` capabilities STR($3)'
|
||||
` }'
|
||||
`}')
|
||||
|
||||
|
|
|
@ -218,16 +218,15 @@ DAI_ADD(sof/pipe-dai-capture.m4,
|
|||
PIPELINE_SINK_13, 2, s32le,
|
||||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Low Latency, id 0
|
||||
dnl PCM_DUPLEX_ADD(name, pipeline, pcm_id, dai_id, playback, capture)
|
||||
PCM_DUPLEX_ADD(Port0, 0, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
PCM_DUPLEX_ADD(Port1, 1, 1, 1, PIPELINE_PCM_3, PIPELINE_PCM_4)
|
||||
PCM_DUPLEX_ADD(Port2, 2, 2, 2, PIPELINE_PCM_5, PIPELINE_PCM_6)
|
||||
PCM_DUPLEX_ADD(Port3, 3, 3, 3, PIPELINE_PCM_7, PIPELINE_PCM_8)
|
||||
PCM_DUPLEX_ADD(Port4, 4, 4, 4, PIPELINE_PCM_9, PIPELINE_PCM_10)
|
||||
PCM_DUPLEX_ADD(Port5, 5, 5, 5, PIPELINE_PCM_11, PIPELINE_PCM_12)
|
||||
dnl PCM_CAPTURE_ADD(name, pipeline, pcm_id, dai_id, capture)
|
||||
PCM_CAPTURE_ADD(DMIC01, 6, 6, 6, PIPELINE_PCM_13)
|
||||
dnl PCM_DUPLEX_ADD(name, pcm_id, playback, capture)
|
||||
PCM_DUPLEX_ADD(Port0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
PCM_DUPLEX_ADD(Port1, 1, PIPELINE_PCM_3, PIPELINE_PCM_4)
|
||||
PCM_DUPLEX_ADD(Port2, 2, PIPELINE_PCM_5, PIPELINE_PCM_6)
|
||||
PCM_DUPLEX_ADD(Port3, 3, PIPELINE_PCM_7, PIPELINE_PCM_8)
|
||||
PCM_DUPLEX_ADD(Port4, 4, PIPELINE_PCM_9, PIPELINE_PCM_10)
|
||||
PCM_DUPLEX_ADD(Port5, 5, PIPELINE_PCM_11, PIPELINE_PCM_12)
|
||||
dnl PCM_CAPTURE_ADD(name, pipeline, capture)
|
||||
PCM_CAPTURE_ADD(DMIC01, 6, PIPELINE_PCM_13)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
|
@ -41,7 +41,7 @@ DAI_ADD(sof/pipe-dai-playback.m4,
|
|||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Low Latency, id 0
|
||||
PCM_PLAYBACK_ADD(Port5, 0, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
PCM_PLAYBACK_ADD(Port5, 0, PIPELINE_PCM_1)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
|
@ -168,12 +168,12 @@ DAI_ADD(sof/pipe-dai-capture.m4,
|
|||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Low Latency, id 0
|
||||
PCM_DUPLEX_ADD(Port0, 2, 2, 2, PIPELINE_PCM_4, PIPELINE_PCM_5)
|
||||
PCM_CAPTURE_ADD(Port1, 3, 3, 3, PIPELINE_PCM_6)
|
||||
PCM_DUPLEX_ADD(Port2, 1, 1, 1, PIPELINE_PCM_2, PIPELINE_PCM_3)
|
||||
PCM_DUPLEX_ADD(Port3, 4, 4, 4, PIPELINE_PCM_7, PIPELINE_PCM_8)
|
||||
PCM_PLAYBACK_ADD(Port4, 0, 0, 0, PIPELINE_PCM_1)
|
||||
PCM_DUPLEX_ADD(Port5, 5, 5, 5, PIPELINE_PCM_9, PIPELINE_PCM_10)
|
||||
PCM_DUPLEX_ADD(Port0, 2, PIPELINE_PCM_4, PIPELINE_PCM_5)
|
||||
PCM_CAPTURE_ADD(Port1, 3, PIPELINE_PCM_6)
|
||||
PCM_DUPLEX_ADD(Port2, 1, PIPELINE_PCM_2, PIPELINE_PCM_3)
|
||||
PCM_DUPLEX_ADD(Port3, 4, PIPELINE_PCM_7, PIPELINE_PCM_8)
|
||||
PCM_PLAYBACK_ADD(Port4, 0, PIPELINE_PCM_1)
|
||||
PCM_DUPLEX_ADD(Port5, 5, PIPELINE_PCM_9, PIPELINE_PCM_10)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
|
@ -86,7 +86,7 @@ DAI_ADD(sof/pipe-dai-capture.m4,
|
|||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Low Latency
|
||||
PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
PCM_DUPLEX_ADD(Low Latency, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
|
@ -86,7 +86,7 @@ DAI_ADD(sof/pipe-dai-capture.m4,
|
|||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Low Latency
|
||||
PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
PCM_DUPLEX_ADD(Low Latency, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
|
@ -86,7 +86,7 @@ DAI_ADD(sof/pipe-dai-capture.m4,
|
|||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Low Latency
|
||||
PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
PCM_DUPLEX_ADD(Low Latency, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
|
@ -86,7 +86,7 @@ DAI_ADD(sof/pipe-dai-capture.m4,
|
|||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Low Latency
|
||||
PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
PCM_DUPLEX_ADD(Low Latency, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
|
@ -86,7 +86,7 @@ DAI_ADD(sof/pipe-dai-capture.m4,
|
|||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Low Latency
|
||||
PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
PCM_DUPLEX_ADD(Low Latency, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
|
@ -86,7 +86,7 @@ DAI_ADD(sof/pipe-dai-capture.m4,
|
|||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Low Latency
|
||||
PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
PCM_DUPLEX_ADD(Low Latency, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
|
@ -86,7 +86,7 @@ DAI_ADD(sof/pipe-dai-capture.m4,
|
|||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Low Latency
|
||||
PCM_DUPLEX_ADD(Low Latency, 3, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
PCM_DUPLEX_ADD(Low Latency, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
|
@ -86,7 +86,7 @@ DAI_ADD(sof/pipe-dai-capture.m4,
|
|||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Low Latency
|
||||
PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
PCM_DUPLEX_ADD(Low Latency, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
|
@ -86,7 +86,7 @@ DAI_ADD(sof/pipe-dai-capture.m4,
|
|||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Low Latency
|
||||
PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
PCM_DUPLEX_ADD(Low Latency, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
|
@ -58,7 +58,7 @@ DAI_ADD(sof/pipe-dai-capture.m4,
|
|||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Low Latency
|
||||
PCM_DUPLEX_ADD(Passthrough, 3, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
PCM_DUPLEX_ADD(Passthrough, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
|
@ -86,7 +86,7 @@ DAI_ADD(sof/pipe-dai-capture.m4,
|
|||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Low Latency
|
||||
PCM_DUPLEX_ADD(Low Latency, 6, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
PCM_DUPLEX_ADD(Low Latency, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
|
@ -58,7 +58,7 @@ DAI_ADD(sof/pipe-dai-capture.m4,
|
|||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Low Latency
|
||||
PCM_DUPLEX_ADD(Passthrough, 3, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
PCM_DUPLEX_ADD(Passthrough, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
|
@ -76,7 +76,7 @@ DAI_ADD(sof/pipe-dai-capture.m4,
|
|||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Passthrough
|
||||
PCM_DUPLEX_ADD(Passthrough, 3, 0, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
PCM_DUPLEX_ADD(Passthrough, 0, PIPELINE_PCM_1, PIPELINE_PCM_2)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
|
@ -60,7 +60,7 @@ DAI_ADD(sof/pipe-dai-capture.m4,
|
|||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Passthrough
|
||||
PCM_CAPTURE_ADD(Passthrough, 3, 0, 0, PIPELINE_PCM_2)
|
||||
PCM_CAPTURE_ADD(Passthrough, 0, PIPELINE_PCM_2)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
|
@ -59,7 +59,7 @@ DAI_ADD(sof/pipe-dai-playback.m4,
|
|||
48, 1000, 0, 0)
|
||||
|
||||
# PCM Passthrough
|
||||
PCM_PLAYBACK_ADD(Passthrough, 3, 0, 0, PIPELINE_PCM_1)
|
||||
PCM_PLAYBACK_ADD(Passthrough, 0, PIPELINE_PCM_1)
|
||||
|
||||
#
|
||||
# BE configurations - overrides config in ACPI if present
|
||||
|
|
Loading…
Reference in New Issue