例程里面USB声卡是48k16位的,现在想准备改成24位的,除了修改描述符,还需要修改什么吗?求路过的大佬给讲讲!谢谢
0x0B, /* bLength */
0x24, /* bDescriptorType */
0x02, /* bDescriptorSubtype */
0x03, /* bFormatType */
0x02, /* bNrChannels */
0x02, /* bSubFrameSize : 2 Bytes per frame (16bits) */
16, /* bBitResolution (16-bits per sample) */
0x01, /* bSamFreqType only one frequency supported */
SAMPLE_FREQ(USBD_AUDIO_FREQ), /* Audio sampling frequency coded on 3 bytes */
把这段描述符修改成了
0x0B, /* bLength */
0x24, /* bDescriptorType */
0x02, /* bDescriptorSubtype */
0x03, /* bFormatType */
0x02, /* bNrChannels */
0x03, /* bSubFrameSize : 2 Bytes per frame (16bits) */
24, /* bBitResolution (16-bits per sample) */
0x01, /* bSamFreqType only one frequency supported */
SAMPLE_FREQ(USBD_AUDIO_FREQ), /* Audio sampling frequency coded on 3 bytes */
除了修改这段描述符,其他的描述符或者其他的还需要修改吗? |