Skip to content

Commit

Permalink
q-dev: better description of mic
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbartman committed May 8, 2024
1 parent cd97c56 commit 2062be5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions qubesguidaemon/mic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

Expand All @@ -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):
Expand Down

0 comments on commit 2062be5

Please sign in to comment.