From 4da76c4bd03198938dc3a22ec991a2b9203b594b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20M=C3=BCller?= Date: Mon, 17 Jan 2022 19:12:29 +0100 Subject: [PATCH] Address review comments * DescriptorLength is unused and therefore removed * InputTerminalDescriptor has OverloadControl and no ClockFrequencyControl according to Table 4-9 of [Audio20] --- usb_protocol/types/descriptors/uac2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usb_protocol/types/descriptors/uac2.py b/usb_protocol/types/descriptors/uac2.py index 97ee4ef..f51bddb 100644 --- a/usb_protocol/types/descriptors/uac2.py +++ b/usb_protocol/types/descriptors/uac2.py @@ -19,7 +19,7 @@ import construct from .standard import StandardDescriptorNumbers from ..descriptor import \ - DescriptorField, DescriptorNumber, DescriptorFormat, DescriptorLength + DescriptorField, DescriptorNumber, DescriptorFormat class AudioInterfaceClassCode(IntEnum): @@ -634,7 +634,7 @@ InputTerminalDescriptor = DescriptorFormat( "bNrChannels" / DescriptorField(description="number of logical output channels in the terminal’s output channel cluster"), "bmChannelConfig" / DescriptorField(description="describes the spatial location of the logical channels", default=0, length=4), "iChannelNames" / DescriptorField(description="string descriptor index of the first logical channel name", default=0), - "bmControls" / DescriptorField(description="OR combination of ClockFrequencyControl, CopyProtectControl, ConnectorControl, ClusterControl, UnderflowControl and OverflowControl", default=0, length=2), + "bmControls" / DescriptorField(description="OR combination of CopyProtectControl, ConnectorControl, OverloadControl, ClusterControl, UnderflowControl and OverflowControl", default=0, length=2), "iTerminal" / DescriptorField(description="ID of the input terminal string descriptor", default=0) )