Skip to content

Commit

Permalink
set Microphone Interface
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbartman committed Feb 21, 2024
1 parent dcbceaf commit d762274
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions qubesguidaemon/mic.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@

class MicDevice(qubes.devices.DeviceInfo):
"""Microphone device info class"""
pass

def __init__(self, backend_domain):
super().__init__(
backend_domain=backend_domain, ident="mic", devclass="mic")
self._interfaces = [
qubes.devices.DeviceInterface("******", devclass="mic")]


class MicDeviceExtension(qubes.ext.Extension):
Expand All @@ -41,7 +46,7 @@ def __init__(self):
super(MicDeviceExtension, self).__init__()

def get_device(self, app):
return MicDevice(app.domains[0], ident='mic', devclass='mic')
return MicDevice(app.domains[0])

@qubes.ext.handler('device-list:mic')
def on_device_list_mic(self, vm, event):
Expand Down

0 comments on commit d762274

Please sign in to comment.