Skip to content

Commit 51159d8

Browse files
singalsukv2019i
authored andcommitted
Tools: Topology2: Fix the gain.conf curve_type values
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]>
1 parent 8f9c68a commit 51159d8

File tree

1 file changed

+11
-3
lines changed
  • tools/topology/topology2/include/components

1 file changed

+11
-3
lines changed

tools/topology/topology2/include/components/gain.conf

+11-3
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,20 @@ Class.Widget."gain" {
4545
token_ref "gain.word"
4646
constraints {
4747
!valid_values [
48-
"no_fade"
49-
"fade"
48+
"windows_no_fade"
49+
"windows_fade"
50+
"linear"
51+
"log"
52+
"linear_zc"
53+
"log_zc"
5054
]
5155
!tuple_values [
5256
0
5357
1
58+
2
59+
3
60+
4
61+
5
5462
]
5563
}
5664
}
@@ -151,7 +159,7 @@ Class.Widget."gain" {
151159
uuid "A8:A9:BC:61:D0:18:18:4A:8E:7B:26:39:21:98:04:B7"
152160
no_pm "true"
153161
cpc 10183
154-
curve_type "fade"
162+
curve_type "windows_fade"
155163
curve_duration 200000 # 20 ms
156164
init_value 0x7fffffff
157165
num_input_pins 1

0 commit comments

Comments
 (0)