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 <ranjani.sridharan@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2022-10-19 15:17:35 -07:00 committed by Kai Vehmanen
parent 8083eb0156
commit 1ea364620f
1 changed files with 3 additions and 3 deletions

View File

@ -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