From 9cf5f2d4096d1858d2e9eb8357fa14d31d9691cf Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Mon, 8 May 2023 21:10:12 +0530 Subject: [PATCH] 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. --- .../.config/wireplumber/main.lua.d/51-alsa-disable.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 wireplumber/.config/wireplumber/main.lua.d/51-alsa-disable.lua diff --git a/wireplumber/.config/wireplumber/main.lua.d/51-alsa-disable.lua b/wireplumber/.config/wireplumber/main.lua.d/51-alsa-disable.lua new file mode 100644 index 0000000..2447105 --- /dev/null +++ b/wireplumber/.config/wireplumber/main.lua.d/51-alsa-disable.lua @@ -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)