Skip to content

Commit f49ffed

Browse files
Eddy Hsulgirdwood
authored andcommitted
Add CTC topology.
Add CTC into the PTL pipeline for testing. Signed-off-by: Eddy Hsu <eddyhsu@google.com>
1 parent 1a7ec17 commit f49ffed

4 files changed

Lines changed: 932 additions & 0 deletions

File tree

tools/topology/topology2/cavs-sdw.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Define {
9696
SDW_JACK_OUT_BE_ID 0
9797
SDW_JACK_IN_BE_ID 1
9898
NUM_SDW_AMP_LINKS 0
99+
NUM_SDW_AMP_CTC_LINKS 0
99100
SDW_DMIC 0
100101
SDW_JACK true
101102
PASSTHROUGH false
@@ -188,6 +189,9 @@ IncludeByKey.SDW_AMP_XOVER {
188189
IncludeByKey.NUM_SDW_AMP_LINKS {
189190
"[1-3]" "platform/intel/sdw-amp-generic.conf"
190191
}
192+
IncludeByKey.NUM_SDW_AMP_CTC_LINKS {
193+
"[1-3]" "platform/intel/sdw-amp-generic-ctc.conf"
194+
}
191195
}
192196
"true" {
193197
IncludeByKey.NUM_SDW_AMP_LINKS {
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
#
2+
# BE playback pipeline: mixout-gain-ctc-alh-dai-copier.
3+
# This pipeline is an extension of the mixout-gain-alh-dai-copier-playback pipeline class.
4+
#
5+
# All attributes defined herein are namespaced
6+
# by alsatplg to "Object.Pipeline.mixout-gain-ctc-alh-dai-copier-playback.N.attribute_name"
7+
#
8+
# Usage: mixout-gain-ctc-alh-dai-copier-playback pipeline object can be instantiated as:
9+
#
10+
# Object.Pipeline.mixout-gain-ctc-alh-dai-copier-playback."N" {
11+
# period 1000
12+
# time_domain "timer"
13+
# }
14+
#
15+
# Where N is the unique pipeline ID within the same alsaconf node.
16+
#
17+
18+
<include/common/input_audio_format.conf>
19+
<include/common/output_audio_format.conf>
20+
<include/components/alh-dai-copier.conf>
21+
<include/components/gain.conf>
22+
<include/components/mixout.conf>
23+
<include/components/pipeline.conf>
24+
<include/components/ctc.conf>
25+
<platform/intel/efx-default.conf>
26+
<include/pipelines/cavs/mixout-gain-alh-dai-copier-playback.conf>
27+
28+
Class.Pipeline."mixout-gain-ctc-alh-dai-copier-playback" {
29+
SubTreeCopy.baseclass {
30+
# this class extends the mixout-gain-alh-dai-copier-playback class definition
31+
source "Class.Pipeline.mixout-gain-alh-dai-copier-playback"
32+
33+
# target node is not defined which means that the new subtree will be copied to
34+
# the parent node containing the SubTreeCopy node i.e in this case the
35+
# Class.Pipeline.mixout-gain-ctc-alh-dai-copier-playback {} node.
36+
37+
# default copy type is to extend the base class ie the widgets and routes
38+
# will be added to the existing list of widgets/routes in the base class
39+
40+
tree {
41+
Object.Widget {
42+
ctc."1" {
43+
num_input_audio_formats 1
44+
num_output_audio_formats 1
45+
46+
Object.Base.input_audio_format [
47+
{
48+
in_bit_depth 32
49+
in_valid_bit_depth 32
50+
}
51+
]
52+
Object.Base.output_audio_format [
53+
{
54+
out_bit_depth 32
55+
out_valid_bit_depth 32
56+
}
57+
]
58+
}
59+
}
60+
61+
Object.Base {
62+
! route [
63+
{
64+
source gain.$index.1
65+
sink ctc.$index.1
66+
}
67+
]
68+
}
69+
}
70+
}
71+
}

0 commit comments

Comments
 (0)