Skip to content

Commit

Permalink
Tools: Topology2: Change in capture gain curve_duration to 50 ms
Browse files Browse the repository at this point in the history
This change increases the ramp duration from 20 ms to 50 ms. It
lowers the peak load of peak volume component due to longer same
gain value blocks. The internal update rate for gain becomes 250 us
instead of 125 us. The longer fade-in ramp also conceals better
possible analog capture start transients.

This changes for 4ch capture for gain.11.1 in sof-hda-generic-4ch.tplg
from

CPU_PEAK(MAX) = 21.95
PEAK(MAX)/AVG(AVG) = 7.51

to

CPU_PEAK(MAX) = 9.07
PEAK(MAX)/AVG(AVG) = 3.12

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
  • Loading branch information
singalsu authored and lgirdwood committed Sep 20, 2023
1 parent f070135 commit d0d74a4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/topology/topology2/cavs-nocodec-multicore.conf
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ IncludeByKey.PASSTHROUGH {
}
}
Object.Widget.gain.1 {
curve_duration 500000
num_input_audio_formats 2
num_output_audio_formats 2
Object.Base.audio_format.1 {
Expand Down Expand Up @@ -396,6 +397,7 @@ IncludeByKey.PASSTHROUGH {
}
}
Object.Widget.gain.1 {
curve_duration 500000
num_input_audio_formats 2
num_output_audio_formats 2
Object.Base.audio_format.1 {
Expand Down Expand Up @@ -454,6 +456,7 @@ IncludeByKey.PASSTHROUGH {
}
}
Object.Widget.gain.1 {
curve_duration 500000
num_input_audio_formats 2
num_output_audio_formats 2
Object.Base.audio_format.1 {
Expand Down
6 changes: 6 additions & 0 deletions tools/topology/topology2/cavs-nocodec.conf
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ IncludeByKey.PASSTHROUGH {
pcm_id $SSP0_PCM_ID
}
Object.Widget.gain.1 {
curve_duration 500000
Object.Control.mixer.1 {
name 'Post Demux $SSP0_PCM_NAME Capture Volume'
}
Expand All @@ -289,6 +290,7 @@ IncludeByKey.PASSTHROUGH {
pcm_id $SSP0_CAPTURE_PCM_ID
}
Object.Widget.gain.1 {
curve_duration 500000
Object.Control.mixer.1 {
name 'Post Demux $SSP0_CAPTURE_PCM Volume'
}
Expand Down Expand Up @@ -329,6 +331,7 @@ IncludeByKey.PASSTHROUGH {
}
}
Object.Widget.gain.1 {
curve_duration 500000
num_input_audio_formats 2
num_output_audio_formats 2
Object.Base.audio_format.1 {
Expand Down Expand Up @@ -394,6 +397,7 @@ IncludeByKey.PASSTHROUGH {
}
}
Object.Widget.gain.1 {
curve_duration 500000
Object.Control.mixer.1 {
name 'Pre Demux $SSP0_PCM_NAME Capture Volume'
}
Expand Down Expand Up @@ -699,6 +703,7 @@ IncludeByKey.PASSTHROUGH {
}
}
Object.Widget.gain.1 {
curve_duration 500000
num_input_audio_formats 2
num_output_audio_formats 2
Object.Base.audio_format.1 {
Expand Down Expand Up @@ -755,6 +760,7 @@ IncludeByKey.PASSTHROUGH {
}
}
Object.Widget.gain.1 {
curve_duration 500000
num_input_audio_formats 2
num_output_audio_formats 2
Object.Base.audio_format.1 {
Expand Down
1 change: 1 addition & 0 deletions tools/topology/topology2/platform/intel/dmic-generic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ IncludeByKey.PASSTHROUGH {
}
}
Object.Widget.gain.1 {
curve_duration 500000
num_input_audio_formats 2
num_output_audio_formats 2
Object.Base.audio_format.1 {
Expand Down

0 comments on commit d0d74a4

Please sign in to comment.