UAC麦克风实例分析
+ -

UAC麦克见音频数据格式FORMAT_TYPE_I

2021-07-23 572 0

FORMAT_TYPE_I

#define DECLARE_UAC_FORMAT_TYPE_I_DISCRETE_DESC(n)\ struct uac_format_type_i_discrete_descriptor_## n {\
    __u8 bLength;\
    __u8 bDescriptorType;\
    __u8 bDescriptorSubtype;\
    __u8 bFormatType;\
    __u8 bNrChannels;\
    __u8 bSubframeSize;\
    __u8 bBitResolution;\
    __u8 bSamFreqType;\
    __u8 tSamFreq[n][3];\
}
__attribute__((packed))
static struct uac_format_type_i_discrete_descriptor_1 microphone_as_type_i_desc = {.bLength = UAC_FORMAT_TYPE_I_DISCRETE_DESC_SIZE(1),
    .bDescriptorType = USB_DT_CS_INTERFACE,
    .bDescriptorSubtype = UAC_FORMAT_TYPE,
    .bFormatType = UAC_FORMAT_TYPE_I,
    .bNrChannels = 1,
    .bSubframeSize = 2,
    .bBitResolution = 16,
    .bSamFreqType = 1,
};

UAC麦克见音频数数据格式FORMAT_TYPE_I各字段的描述详见:http://www.usbzh.com/article/detail-184.html

模拟设备信息(Free Device Monitoring Studio 抓取

  • descriptors[8] = “Class-Specific Interface Descriptor”
  • bLength = 11
  • bDescriptorType = CS_INTERFACE (36)
  • bDescriptorSubtype = 2
  • as_interface =
  • bFormatType = 1
  • bNrChannels = 1
  • bSubslotSize = 2
  • bBitResolution = 16
  • bSampleFreqType = 1
  • sample_freq = “16000 Hz”
  • aSampleFreq = 128, 62, 0
HID人机交互QQ群:564808376    UAC音频QQ群:218581009    UVC相机QQ群:331552032    BOT&UASP大容量存储QQ群:258159197    STC-USB单片机QQ群:315457461    USB技术交流QQ群2:580684376    USB技术交流QQ群:952873936   

0 篇笔记 写笔记

UAC 音频数据格式FORMAT_TYPE_I
下面来介绍USB Audio Data Formats 的第一类音频数格式 FORMAT_TYPE_I = 0x01Audio Data Format Type I Codes 其下又分为5种,分别为:NamewFormatTagTYPE_I_UNDEFINED0x0000PCM0x0001PCM8......
UAC麦克见音频数据格式FORMAT_TYPE_I
#define DECLARE_UAC_FORMAT_TYPE_I_DISCRETE_DESC(n) struct uac_format_type_i_discrete_descriptor_## n { __u8 bLength; __u8 bDescriptorType;......
关注公众号
  • HID人机交互
  • Linux&USB
  • UAC音频
  • TYPE-C
  • USB规范
  • USB大容量存储
  • USB百科
  • USB周边
  • UVC摄像头
  • Windows系统USB
  • 音视频博客
  • 取消
    感谢您的支持,我会继续努力的!
    扫码支持
    扫码打赏,你说多少就多少

    打开支付宝扫一扫,即可进行扫码打赏哦

    您的支持,是我们前进的动力!