Skip to content

Commit 638ce08

Browse files
committed
topology2: sdw-amp-generic: always create module-copier.1.22
This is a preparation commit for creating a stand alone echo reference topology. module-copier.1.22 is used by the echo reference, but it is harmless to create it and connect it to the no echo reference topology. And then we can connect the echo reference pipeline to module-copier.1.22 is echo reference is needed. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent 223512c commit 638ce08

1 file changed

Lines changed: 39 additions & 75 deletions

File tree

tools/topology/topology2/platform/intel/sdw-amp-generic.conf

Lines changed: 39 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,26 @@ Object.Dai.ALH [
5454
}
5555
]
5656

57+
Object.Widget.module-copier."22" {
58+
index 21
59+
num_input_pins 1
60+
num_output_pins 2
61+
num_input_audio_formats 1
62+
num_output_audio_formats 1
63+
Object.Base.input_audio_format [
64+
{
65+
in_bit_depth 32
66+
in_valid_bit_depth 32
67+
}
68+
]
69+
Object.Base.output_audio_format [
70+
{
71+
out_bit_depth 32
72+
out_valid_bit_depth 32
73+
}
74+
]
75+
}
76+
5777
IncludeByKey.PASSTHROUGH {
5878
"false" {
5979
Object.Pipeline {
@@ -737,41 +757,25 @@ Object.PCM.pcm [
737757

738758
IncludeByKey.PASSTHROUGH {
739759
"false" {
740-
IncludeByKey.SDW_SPK_ECHO_REF {
760+
IncludeByKey.SDW_SPK_ENHANCED_PLAYBACK {
741761
"true" {
742-
IncludeByKey.SDW_SPK_ENHANCED_PLAYBACK {
762+
IncludeByKey.USE_DAX {
743763
"true" {
744-
IncludeByKey.USE_DAX {
745-
"true" {
746-
Object.Base.route [
747-
{
748-
source "dolby-dax.21.1"
749-
sink "module-copier.21.22"
750-
}
751-
{
752-
source "module-copier.21.22"
753-
sink "alh-copier.$SDW_SPK_STREAM.0"
754-
}
755-
]
764+
Object.Base.route [
765+
{
766+
source "dolby-dax.21.1"
767+
sink "module-copier.21.22"
756768
}
757-
"false" {
758-
Object.Base.route [
759-
{
760-
source "drc.21.1"
761-
sink "module-copier.21.22"
762-
}
763-
{
764-
source "module-copier.21.22"
765-
sink "alh-copier.$SDW_SPK_STREAM.0"
766-
}
767-
]
769+
{
770+
source "module-copier.21.22"
771+
sink "alh-copier.$SDW_SPK_STREAM.0"
768772
}
769-
}
773+
]
770774
}
771775
"false" {
772776
Object.Base.route [
773777
{
774-
source "gain.21.1"
778+
source "drc.21.1"
775779
sink "module-copier.21.22"
776780
}
777781
{
@@ -783,36 +787,16 @@ IncludeByKey.PASSTHROUGH {
783787
}
784788
}
785789
"false" {
786-
IncludeByKey.SDW_SPK_ENHANCED_PLAYBACK {
787-
"true" {
788-
IncludeByKey.USE_DAX {
789-
"true" {
790-
Object.Base.route [
791-
{
792-
source "dolby-dax.21.1"
793-
sink "alh-copier.$SDW_SPK_STREAM.0"
794-
}
795-
]
796-
}
797-
"false" {
798-
Object.Base.route [
799-
{
800-
source "drc.21.1"
801-
sink "alh-copier.$SDW_SPK_STREAM.0"
802-
}
803-
]
804-
}
805-
}
790+
Object.Base.route [
791+
{
792+
source "gain.21.1"
793+
sink "module-copier.21.22"
806794
}
807-
"false" {
808-
Object.Base.route [
809-
{
810-
source "gain.21.1"
811-
sink "alh-copier.$SDW_SPK_STREAM.0"
812-
}
813-
]
795+
{
796+
source "module-copier.21.22"
797+
sink "alh-copier.$SDW_SPK_STREAM.0"
814798
}
815-
}
799+
]
816800
}
817801
}
818802
Object.Base.route [
@@ -1048,26 +1032,6 @@ IncludeByKey.SDW_AMP_FEEDBACK {
10481032

10491033
IncludeByKey.SDW_SPK_ECHO_REF {
10501034
"true" {
1051-
Object.Widget.module-copier."22" {
1052-
index 21
1053-
num_input_pins 1
1054-
num_output_pins 2
1055-
num_input_audio_formats 1
1056-
num_output_audio_formats 1
1057-
Object.Base.input_audio_format [
1058-
{
1059-
in_bit_depth 32
1060-
in_valid_bit_depth 32
1061-
}
1062-
]
1063-
Object.Base.output_audio_format [
1064-
{
1065-
out_bit_depth 32
1066-
out_valid_bit_depth 32
1067-
}
1068-
]
1069-
}
1070-
10711035
Object.Pipeline {
10721036
siggen-host-copier-capture [
10731037
{

0 commit comments

Comments
 (0)