Skip to content

Commit

Permalink
topology2: cavs-nocodec: add a module copier to SSP 0 capture pipeline
Browse files Browse the repository at this point in the history
Add a module copier between the DAI copier and gain in preparation for
optimizing the single endpoint DAI copiers. This optimization will
temporarily make multiple sinks unsupported with DAI copiers. This
feature will be re-introduced in a follow up PR and the module copier
will be removed then.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
  • Loading branch information
ranj063 authored and kv2019i committed May 8, 2023
1 parent 59c343f commit 74f3246
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tools/topology/topology2/cavs-nocodec.conf
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Object.Pipeline.mixout-gain-smart-amp-dai-copier-playback [
}

Object.Base.input_pin_binding.2 {
input_pin_binding_name "copier.SSP.8.1"
input_pin_binding_name "module-copier.8.1"
}

Object.Control.bytes."1" {
Expand Down Expand Up @@ -345,7 +345,9 @@ Object.Pipeline.dai-copier-gain-module-copier-capture [
out_bit_depth 32
out_valid_bit_depth 32
}
}

Object.Widget.module-copier.1 {
Object.Base.output_pin_binding.1 {
output_pin_binding_name "gain.8.1"
}
Expand Down Expand Up @@ -634,7 +636,7 @@ Object.Base.route [
}
{
source "copier.SSP.8.1"
sink "gain.8.1"
sink "module-copier.8.1"
}
{
source "copier.SSP.12.1"
Expand All @@ -661,7 +663,7 @@ Object.Base.route [
sink gain.20.1
}
{
source "copier.SSP.8.1"
source "module-copier.8.1"
sink "smart_amp.2.1"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ Class.Pipeline."dai-copier-gain-module-copier-capture" {
out_valid_bit_depth 32
}
}
module-copier."1" {
num_input_audio_formats 1
num_output_audio_formats 1
Object.Base.audio_format.1 {
in_bit_depth 32
in_valid_bit_depth 32
out_bit_depth 32
out_valid_bit_depth 32
}
}

module-copier."2" {
num_input_audio_formats 1
Expand Down Expand Up @@ -92,6 +102,10 @@ Class.Pipeline."dai-copier-gain-module-copier-capture" {
source gain.$index.1
sink module-copier.$index.2
}
route.2 {
source module-copier.$index.1
sink gain.$index.1
}
}

direction "capture"
Expand Down

0 comments on commit 74f3246

Please sign in to comment.