华为UAC耳机 概述
2021-02-08
3002
2
本人手中有一个华为的TYPE-C耳机,其实是一个复合设备(usbccgp.sys)。这个复合设备总共有三个分设备,分别为HeadPhone(耳机),Microphone(麦克风)和一个自定义的HID设备。
在设备管理器中设备树关系如下:
设备的硬件ID如下:
- USB\VID_12D1&PID_3A07&REV_0024(USB Composite Device)
- USB\VID_12D1&PID_3A07&REV_0024&MI_00(HUAWEI USB-C HEADSET)
- MMDEVAPI\AudioEndpoints(耳机 (HUAWEI USB-C HEADSET))
- MMDEVAPI\AudioEndpoints(麦克风 (HUAWEI USB-C HEADSET))
- USB\VID_12D1&PID_3A07&REV_0024&MI_03(USB 输入设备)
- HID\VID_12D1&PID_3A07&REV_0024&MI_03(人体学输入设备)
- USB\VID_12D1&PID_3A07&REV_0024&MI_00(HUAWEI USB-C HEADSET)
从硬件ID上分析可知:驱动从接口0开始的是UAC复合设备,一般情况下0接口是UAC的控制,1接口是UAC音频流,后续可能还有音频流如接口2。接口3是用于HID的复合设备。
使用UsbTreeView.exe工具显示的设备信息如下:
+++++++++++++++++ Device Information ++++++++++++++++++
Device Description : USB Composite Device
Device Path : \\?\USB#VID_12D1&PID_3A07#0296A100000000000000000000000#{a5dcbf10-6530-11d2-901f-00c04fb951ed} (GUID_DEVINTERFACE_USB_DEVICE)
Kernel Name : \Device\USBPDO-4
Device ID : USB\VID_12D1&PID_3A07\0296A100000000000000000000000
Hardware IDs : USB\VID_12D1&PID_3A07&REV_0024 USB\VID_12D1&PID_3A07
Driver KeyName : {36fc9e60-c465-11cf-8056-444553540000}\0006 (GUID_DEVCLASS_USB)
Driver : \SystemRoot\System32\drivers\usbccgp.sys (Version: 10.0.18362.1110 Date: 2020-10-17)
Driver Inf : C:\Windows\inf\usb.inf
Legacy BusType : PNPBus
Class : USB
Class GUID : {36fc9e60-c465-11cf-8056-444553540000} (GUID_DEVCLASS_USB)
Service : usbccgp
Enumerator : USB
Location Info : Port_#0008.Hub_#0001
Location IDs : PCIROOT(0)#PCI(1400)#USBROOT(0)#USB(8), ACPI(_SB_)#ACPI(PCI0)#ACPI(XHC_)#ACPI(RHUB)#ACPI(HS08)
Container ID : {39f77723-d0e6-5a93-99d2-4d2fa46e3984}
Manufacturer Info : (标准 USB 主控制器)
Capabilities : 0x94 (Removable, UniqueID, SurpriseRemovalOK)
Status : 0x0180600A (DN_DRIVER_LOADED, DN_STARTED, DN_DISABLEABLE, DN_REMOVABLE, DN_NT_ENUMERATOR, DN_NT_DRIVER)
Problem Code : 0
Address : 8
HcDisableSelectiveSuspend: 0
EnableSelectiveSuspend : 0
SelectiveSuspendEnabled : 0
EnhancedPowerMgmtEnabled : 0
IdleInWorkingState : 0
WakeFromSleepState : 0
Power State : D0 (supported: D0, D1, D2, D3, wake from D0, wake from D1, wake from D2)
Child Device 1 : HUAWEI USB-C HEADSET (USB Audio Device)
Device Path 1 : \\?\USB#VID_12D1&PID_3A07&MI_00#6&a006c3d&0&0000#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\global (AM_KSCATEGORY_AUDIO)
Device Path 2 : \\?\USB#VID_12D1&PID_3A07&MI_00#6&a006c3d&0&0000#{65e8773e-8f56-11d0-a3b9-00a0c9223196}\global (AM_KSCATEGORY_RENDER)
Device Path 3 : \\?\USB#VID_12D1&PID_3A07&MI_00#6&a006c3d&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global (AM_KSCATEGORY_CAPTURE)
Kernel Name : \Device\00000090
Device ID : USB\VID_12D1&PID_3A07&MI_00\6&A006C3D&0&0000
Class : MEDIA
Driver KeyName : {4d36e96c-e325-11ce-bfc1-08002be10318}\0012 (GUID_DEVCLASS_MEDIA)
Service : usbaudio
Child Device 1 : 耳机 (HUAWEI USB-C HEADSET) (音频端点)
Device Path : \\?\SWD#MMDEVAPI#{0.0.0.00000000}.{aa115463-a901-4515-8355-445771a72cad}#{e6327cad-dcec-4949-ae8a-991e976a79d2} (DEVINTERFACE_AUDIO_RENDER)
Kernel Name : \Device\000000dd
Device ID : SWD\MMDEVAPI\{0.0.0.00000000}.{AA115463-A901-4515-8355-445771A72CAD}
Class : AudioEndpoint
Driver KeyName : {c166523c-fe0c-4a94-a586-f1a80cfbbf3e}\0017 (AUDIOENDPOINT_CLASS_UUID)
Child Device 2 : 麦克风 (HUAWEI USB-C HEADSET) (音频端点)
Device Path : \\?\SWD#MMDEVAPI#{0.0.1.00000000}.{e2ee91ee-5d4d-48bf-ad42-e61f69e4a7b2}#{2eef81be-33fa-4800-9670-1cd474972c3f} (DEVINTERFACE_AUDIO_CAPTURE)
Kernel Name : \Device\000000e2
Device ID : SWD\MMDEVAPI\{0.0.1.00000000}.{E2EE91EE-5D4D-48BF-AD42-E61F69E4A7B2}
Class : AudioEndpoint
Driver KeyName : {c166523c-fe0c-4a94-a586-f1a80cfbbf3e}\0016 (AUDIOENDPOINT_CLASS_UUID)
Child Device 2 : USB 输入设备
Device ID : USB\VID_12D1&PID_3A07&MI_03\6&A006C3D&0&0003
Class : HIDClass
Driver KeyName : {745a17a0-74d3-11d0-b6fe-00a0c90f57da}\0025 (GUID_DEVCLASS_HIDCLASS)
Service : HidUsb
Child Device 1 : 符合 HID 标准的用户控制设备
Device Path : \\?\HID#VID_12D1&PID_3A07&MI_03#7&288cea76&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} (GUID_DEVINTERFACE_HID)
Kernel Name : \Device\00000094
Device ID : HID\VID_12D1&PID_3A07&MI_03\7&288CEA76&0&0000
Class : HIDClass
Driver KeyName : {745a17a0-74d3-11d0-b6fe-00a0c90f57da}\0026 (GUID_DEVCLASS_HIDCLASS)
HID人机交互QQ群:564808376
UAC音频QQ群:218581009
UVC相机QQ群:331552032
BOT&UASP大容量存储QQ群:258159197
STC-USB单片机QQ群:315457461
USB技术交流QQ群2:580684376
USB技术交流QQ群:952873936