mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
add some otg info
This commit is contained in:
@@ -112,7 +112,7 @@ class _GadgetConfig:
|
||||
self.__msd_instance = 0
|
||||
_mkdir(meta_path)
|
||||
|
||||
def add_audio_capture(self, start: bool) -> None:
|
||||
def add_audio_mic(self, start: bool) -> None:
|
||||
eps = 2
|
||||
func = "uac2.usb0"
|
||||
func_path = self.__create_function(func)
|
||||
@@ -122,7 +122,7 @@ class _GadgetConfig:
|
||||
_write(join(func_path, "p_ssize"), 2)
|
||||
if start:
|
||||
self.__start_function(func, eps)
|
||||
self.__create_meta(func, "Audio Capture", eps)
|
||||
self.__create_meta(func, "Microphone", eps)
|
||||
|
||||
def add_serial(self, start: bool) -> None:
|
||||
eps = 3
|
||||
@@ -308,8 +308,8 @@ def _cmd_start(config: Section) -> None: # pylint: disable=too-many-statements,
|
||||
gc.add_serial(cod.serial.start)
|
||||
|
||||
if cod.audio.enabled:
|
||||
logger.info("===== Audio Capture =====")
|
||||
gc.add_audio_capture(cod.audio.start)
|
||||
logger.info("===== Microphone =====")
|
||||
gc.add_audio_mic(cod.audio.start)
|
||||
|
||||
logger.info("===== Preparing complete =====")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user