Usb Audio Device Descriptor(8) Type I Format Type Descriptor
2016-01-22 16:36
399 查看
Type I Format Type Descriptor
bLength = 8+(ns*3); 当为continous frequecy 时, ns = 2;
bDescriptorType = 0x24; class-specific interface;
bDescriptorSubtype = 0x02; 同input terminal->bDescriptorSubtype, 此时要通过bLength来区别,input terminal->bLength = 12;
bFormatType = 0x01; FORMAT_TYPE_I;
bNrChannels: audio streaming 物理声道数;
bSubframeSize: 对于一个subframe, 需要多少bytes;
bBitResolution: bit resolution,即多少位的pcm数据;
bSamFreqType: 0 表示 continuous sampling frequecy; 1…ns(max=255)表示离散的sampling freqency;
tLowSamFreq/tUpperSamFreq: Sampling Frequency的高低位;
struct usb_format_type_1 { U8 bLength; /*Size of this descriptor, in bytes: 8+(ns*3)*/ U8 bDescriptorType; /*CS_INTERFACE descriptor type*/ U8 bDescriptorSubtype; /*FORMAT_TYPE descriptor subtype.*/ U8 bFormatType; /*FORMAT_TYPE_I. Constant identifying the Format Type the AudioStreaming interface is using.*/ U8 bNrChannels; /*Indicates the number of physical channels in the audio data stream.*/ U8 bSubframeSize; /*The number of bytes occupied by one audio subframe. Can be 1, 2, 3 or 4.*/ U8 bBitResolution; /*The number of effectively used bits from the available bits in an audio subframe.*/ U8 bSamFreqType; /*Indicates how the sampling frequency can be programmed: 0: Continuous sampling frequency 1..255: The number of discrete sampling frequencies supported by the isochronous data endpoint of the AudioStreaming interface (ns)*/ U8 tLowerSamFreq[3]; /*Lower bound in Hz of the sampling frequency range for this isochronous data endpoint.*/ U8 tUpperSamFreq[3]; /*Upper bound in Hz of the sampling frequency range for this isochronous data endpoint.*/ };
bLength = 8+(ns*3); 当为continous frequecy 时, ns = 2;
bDescriptorType = 0x24; class-specific interface;
bDescriptorSubtype = 0x02; 同input terminal->bDescriptorSubtype, 此时要通过bLength来区别,input terminal->bLength = 12;
bFormatType = 0x01; FORMAT_TYPE_I;
bNrChannels: audio streaming 物理声道数;
bSubframeSize: 对于一个subframe, 需要多少bytes;
bBitResolution: bit resolution,即多少位的pcm数据;
bSamFreqType: 0 表示 continuous sampling frequecy; 1…ns(max=255)表示离散的sampling freqency;
tLowSamFreq/tUpperSamFreq: Sampling Frequency的高低位;
相关文章推荐
- BootISO:从 ISO 文件中创建一个可启动的 USB 设备
- android USB如何修改VID具体实现
- 用vbs确定计算机是否有 USB 2.0 端口的代码
- Android中查看USB连接的外接设备信息的代码实例
- C#获取USB事件API实例分析
- 网络资料备忘录
- 用u盘安装操作系统
- 从usb启动安装linux
- 利用4G U盘安装Fedora Linux
- 用组策略彻低禁止USB存储设备、光驱、软驱、ZIP软驱
- usb禁用原理
- USB有关的编程
- usb
- USB硬件***危险性初步分析
- 关于禁用USB存储设备,而不禁使用USB键盘,鼠标
- 用USB安装esxi
- 量产化工具
- 用DriverStudio制作简单USB驱动程序
- USB设备驱动程序开发框架
- 如何在XenDesktop中映射USB设备