Tools: Topology2: Add module copier to HDA analog capture

This patch changes in cavs-mixin-mixout-hda based topologies the
analog capture pipeline from

dai-copier -> eqiir -> host-copier

to

dai-copier -> eqiir -> module-copier -> host-copier

It allows more flexibility with processing add into host-copier
pipeline and allow capture stream duplication to multiple PCMs.

This change adds 2.2 MCPS from module-copier in TGL platform.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2024-09-06 13:43:58 +03:00 committed by Kai Vehmanen
parent b9aa4c5603
commit cf7f45ecb0
1 changed files with 44 additions and 9 deletions

View File

@ -198,10 +198,9 @@ Object.Pipeline {
}
]
highpass-capture-be [
dai-copier-eqiir-module-copier-capture [
{
index 4
direction capture
Object.Widget.dai-copier."1" {
dai_type "HDA"
@ -227,12 +226,48 @@ Object.Pipeline {
}
]
}
Object.Widget.eqiir.1 {
Object.Control.bytes."1" {
name '$ANALOG_CAPTURE_PCM IIR Eq'
}
}
}
Object.Widget.eqiir.1 {
Object.Control.bytes."1" {
name '$ANALOG_CAPTURE_PCM IIR Eq'
<include/components/eqiir/highpass_40hz_0db_48khz.conf>
}
num_input_audio_formats 1
num_output_audio_formats 1
Object.Base.input_audio_format [
{
in_rate $HDA_ANALOG_CAPTURE_RATE
in_bit_depth 32
in_valid_bit_depth 32
}
]
Object.Base.output_audio_format [
{
out_rate $HDA_ANALOG_CAPTURE_RATE
out_bit_depth 32
out_valid_bit_depth 32
}
]
}
Object.Widget.module-copier."2" {
stream_name $HDA_ANALOG_DAI_NAME
num_input_audio_formats 1
num_output_audio_formats 1
Object.Base.input_audio_format [
{
in_rate $HDA_ANALOG_CAPTURE_RATE
in_bit_depth 32
in_valid_bit_depth 32
}
]
Object.Base.output_audio_format [
{
out_rate $HDA_ANALOG_CAPTURE_RATE
out_bit_depth 32
out_valid_bit_depth 32
}
]
}
}
]
}
Object.PCM.pcm [
@ -275,7 +310,7 @@ Object.Base.route [
sink 'eqiir.4.1'
}
{
source 'eqiir.4.1'
source 'module-copier.4.2'
sink 'host-copier.0.capture'
}
{