From 1ea364620f8ff9592b9101fa3055328631dbd756 Mon Sep 17 00:00:00 2001 From: Ranjani Sridharan Date: Wed, 19 Oct 2022 15:17:35 -0700 Subject: [PATCH] topology2: gain: Fix curve_type log and linear are not supported with IPC4. Use no_fade and fade instead and set the default to fade. This should fix the following error seen with volume prepare(): volume: comp:9 0x60003 volume_prepare(): invalid cd->ramp_func Signed-off-by: Ranjani Sridharan --- tools/topology/topology2/include/components/gain.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/topology/topology2/include/components/gain.conf b/tools/topology/topology2/include/components/gain.conf index 34c539209..76e75d0f4 100644 --- a/tools/topology/topology2/include/components/gain.conf +++ b/tools/topology/topology2/include/components/gain.conf @@ -54,8 +54,8 @@ Class.Widget."gain" { token_ref "sof_tkn_gain.word" constraints { !valid_values [ - "linear" - "log" + "no_fade" + "fade" ] !tuple_values [ 0 @@ -158,7 +158,7 @@ Class.Widget."gain" { no_pm "true" period_sink_count 2 period_source_count 2 - curve_type "linear" + curve_type "fade" curve_duration 10 init_value 0x7fffffff num_sink_pins 1