From e99bf8f5fc80b87098763ee9fe3bf90421b8ebb6 Mon Sep 17 00:00:00 2001 From: Piotr Bartman Date: Fri, 12 Apr 2024 06:11:28 +0200 Subject: [PATCH] q-dev: better description of mic --- qubesguidaemon/mic.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qubesguidaemon/mic.py b/qubesguidaemon/mic.py index 0a0de03b..e925df67 100644 --- a/qubesguidaemon/mic.py +++ b/qubesguidaemon/mic.py @@ -30,9 +30,11 @@ class MicDevice(qubes.device_protocol.DeviceInfo): """Microphone device info class""" - def __init__(self, backend_domain): + def __init__(self, backend_domain, product, manufacturer): super().__init__( - backend_domain=backend_domain, ident="mic", devclass="mic") + backend_domain=backend_domain, + ident="mic", devclass="mic", + product=product, manufacturer=manufacturer) self._interfaces = [ qubes.device_protocol.DeviceInterface("******", devclass="mic")] @@ -46,7 +48,8 @@ def __init__(self): super(MicDeviceExtension, self).__init__() def get_device(self, app): - return MicDevice(app.domains[0]) + return MicDevice( + app.domains[0], product="microphone", manufacturer="build-in") @qubes.ext.handler('device-list:mic') def on_device_list_mic(self, vm, event):