From 9aadd197ab882ca4510fddd90dc178094c12a0b1 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Fri, 13 Oct 2023 14:29:43 +0300 Subject: [PATCH] Tools: Topology2: Change gain default curve type to linear This change can drop in TGL platform 2ch 48 kHz gain component peak load e.g. from 16.7 to 7.09 MCPS CPU_PEAK(MAX) reported by sof_perf_analyzer.py. The peak varies a bit time. If several gain instances ramp simulatenously in stream start, the peak MCPS consumption could be source for xruns and glitches if overall load is high. The change with linear curve is barely audible. The computationally heavier Windows fade exponential curve is required only with Windows OS. Since Windows is not using ALSA topologies this change does not impact it. Signed-off-by: Seppo Ingalsuo --- tools/topology/topology2/include/components/gain.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/topology/topology2/include/components/gain.conf b/tools/topology/topology2/include/components/gain.conf index 9167c7df5..334336588 100644 --- a/tools/topology/topology2/include/components/gain.conf +++ b/tools/topology/topology2/include/components/gain.conf @@ -159,7 +159,7 @@ Class.Widget."gain" { uuid "A8:A9:BC:61:D0:18:18:4A:8E:7B:26:39:21:98:04:B7" no_pm "true" cpc 10183 - curve_type "windows_fade" + curve_type "linear" curve_duration 200000 # 20 ms init_value 0x7fffffff num_input_pins 1