File tree 1 file changed +18
-26
lines changed
.config/wireplumber/main.lua.d
1 file changed +18
-26
lines changed Original file line number Diff line number Diff line change 1
- local disable_spdif = {
2
- matches = {
3
- {
1
+ local function disable_node ( node_name )
2
+ local rule = {
3
+ matches = {
4
4
{
5
- " node.name" ,
6
- " equals" ,
7
- " alsa_output.usb-Generic_USB_Audio-00.HiFi__hw_Audio_3__sink"
5
+ {
6
+ " node.name" ,
7
+ " equals" ,
8
+ node_name
9
+ }
8
10
}
11
+ },
12
+ apply_properties = {
13
+ [" node.disabled" ] = true
9
14
}
10
- },
11
- apply_properties = {
12
- [" node.disabled" ] = true
13
15
}
14
- }
15
16
16
- local disable_fpaudio = {
17
- matches = {
18
- {
19
- {
20
- " node.name" ,
21
- " equals" ,
22
- " alsa_output.usb-Generic_USB_Audio-00.HiFi__hw_Audio_1__sink"
23
- }
24
- }
25
- },
26
- apply_properties = {
27
- [" node.disabled" ] = true
28
- }
29
- }
17
+ table.insert (alsa_monitor .rules , rule )
18
+ end
19
+
20
+ -- S/PDIF
21
+ disable_node (" alsa_output.usb-Generic_USB_Audio-00.HiFi__hw_Audio_3__sink" )
30
22
31
- table.insert ( alsa_monitor . rules , disable_spdif )
32
- table.insert ( alsa_monitor . rules , disable_fpaudio )
23
+ -- Front panel audio
24
+ disable_node ( " alsa_output.usb-Generic_USB_Audio-00.HiFi__hw_Audio_1__sink " )
You can’t perform that action at this time.
0 commit comments