From 2407441a2f67341a0e13b4ba6547555e387c671c Mon Sep 17 00:00:00 2001 From: Andreas Pehrson Date: Mon, 16 Sep 2024 15:54:04 +0200 Subject: [PATCH] Block Studio Display Mic for input-only when its Speakers are default output The VPIO unit behaves the same when not setting an output as when setting the default output device as output. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1914925. --- src/backend/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/mod.rs b/src/backend/mod.rs index d3c84111..5b242517 100644 --- a/src/backend/mod.rs +++ b/src/backend/mod.rs @@ -3323,6 +3323,7 @@ impl<'ctx> CoreStreamData<'ctx> { .map(|id| log_device_and_get_model_uid(id, DeviceType::INPUT)) .unwrap_or_default(), out_id + .or_else(|| get_default_device(DeviceType::OUTPUT)) .map(|id| log_device_and_get_model_uid(id, DeviceType::OUTPUT)) .unwrap_or_default(), );