Skip to content

Commit 8982a62

Browse files
committed
Tools: Topology2: Add switch control to multiband-DRC
This patch provides processing on/off switch to user space. Use e.g. alsamixer to control it. The control names are shortened to see bytes and switch string ends. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent ff94121 commit 8982a62

File tree

2 files changed

+30
-6
lines changed

2 files changed

+30
-6
lines changed

tools/topology/topology2/cavs-mixin-mixout-efx-hda.conf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,14 @@ Object.Pipeline {
5959
}
6060
}
6161
Object.Widget.multiband_drc.1 {
62-
Object.Control.bytes."1" {
63-
name 'Post Mixer $ANALOG_PLAYBACK_PCM Multiband-DRC'
62+
Object.Control {
63+
bytes."1" {
64+
name 'Post Mixer $ANALOG_PLAYBACK_PCM MBDRC bytes'
65+
}
66+
mixer."1" {
67+
name 'Post Mixer $ANALOG_PLAYBACK_PCM MBDRC switch'
68+
max 1
69+
}
6470
}
6571
}
6672
}

tools/topology/topology2/include/pipelines/cavs/mixout-gain-efx-dai-copier-playback.conf

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<include/components/mixout.conf>
2323
<include/components/pipeline.conf>
2424
<include/controls/bytes.conf>
25+
<include/controls/mixer.conf>
2526
<include/components/eqiir.conf>
2627
<include/components/eqfir.conf>
2728
<include/components/drc.conf>
@@ -155,10 +156,27 @@ Class.Pipeline."mixout-gain-efx-dai-copier-playback" {
155156
out_valid_bit_depth 32
156157
}
157158

158-
Object.Control.bytes."1" {
159-
IncludeByKey.EFX_MULTIBAND_DRC_PARAMS {
160-
"passthrough" "include/components/multiband_drc/passthrough.conf"
161-
"default" "include/components/multiband_drc/default.conf"
159+
Object.Control {
160+
bytes."1" {
161+
IncludeByKey.EFX_MULTIBAND_DRC_PARAMS {
162+
"passthrough" "include/components/multiband_drc/passthrough.conf"
163+
"default" "include/components/multiband_drc/default.conf"
164+
}
165+
}
166+
167+
mixer."1" {
168+
Object.Base.channel.1 {
169+
name "fc"
170+
shift 0
171+
}
172+
Object.Base.ops.1 {
173+
name "ctl"
174+
info "volsw"
175+
#259 binds the mixer control to switch get/put handlers
176+
get 259
177+
put 259
178+
}
179+
max 1
162180
}
163181
}
164182
}

0 commit comments

Comments
 (0)