Skip to content

Commit

Permalink
Tools: Topology2: Fix the gain.conf curve_type values
Browse files Browse the repository at this point in the history
This patch adds the other SOF volume ramp types linear and
logarithmic with and without zero crossings detect mode to gain
widget class. The names of fade values are changed to be similar
as in enum sof_volume_ramp, since there is a specific curve
shape required for Windows OS.

Signed-off-by: Seppo Ingalsuo <[email protected]>
  • Loading branch information
singalsu committed Sep 20, 2023
1 parent b41973e commit 655f5c7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tools/topology/topology2/include/components/gain.conf
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,20 @@ Class.Widget."gain" {
token_ref "gain.word"
constraints {
!valid_values [
"no_fade"
"fade"
"windows_no_fade"
"windows_fade"
"linear"
"log"
"linear_zc"
"log_zc"
]
!tuple_values [
0
1
2
3
4
5
]
}
}
Expand Down Expand Up @@ -151,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 "fade"
curve_type "windows_fade"
curve_duration 200000 # 20 ms
init_value 0x7fffffff
num_input_pins 1
Expand Down

0 comments on commit 655f5c7

Please sign in to comment.