wireplumber: Disable C920 webcam microphone

On the desktop, we use the USB microphone and the C920 being selected
as the default was becoming annoying. Add a rule to disable C920 node
acting as an audio microphone input. The video source provided by C920
will still be functional. We are only turning off the Audio/Source
node and not the complete device.
This commit is contained in:
Sanchayan Maity 2023-05-08 21:10:12 +05:30
parent 1546762662
commit 9cf5f2d409
Signed by: sanchayanmaity
GPG Key ID: 6F6A0609C12038F3
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
disable_C920_mic_rule = {
matches = {
{
{ "node.nick", "equals", "HD Pro Webcam C920" },
{ "media.class", "equals", "Audio/Source" },
},
},
apply_properties = { ["node.disabled"] = true, },
}
table.insert(alsa_monitor.rules, disable_C920_mic_rule)