after I change my descriptor:
from:
static struct usb_audio_data_format_1 as11_data_format_1 = {
.bLength = 0x0e, /* 8 + ns*3 bytes */
.bDescriptorType = 0x24, /* 0x24 = CS_INTERFACE */
.bDescriptorSubtype = 0x02,/* 0x02 = FORMAT TYPE */
.bFormatType = 0x01, /* 0x01 type 1 */
.bNrChannels = 0x02, /* No of channels = nr */
.bSubframeSize = 0x02, /* 1, 2, 3, or 4-byte subs */
.bBitResolution = 0x10, /* No. used bits in subs */
.bSamFreqType = 0x00, /* Sampling freqs. = ns */
.iSamFreq[0][0] = 0x40, /* 24-bit freq. in 8000Hz */
.iSamFreq[0][1] = 0x1f,
.iSamFreq[0][2] = 0x00,
.iSamFreq[1][0] = 0x80,/* 24-bit freq. in 48000Hz */
.iSamFreq[1][1] = 0xbb,
.iSamFreq[1][2] = 0x00,
};
to
static struct usb_audio_data_format_1 as11_data_format_1 = {
.bLength = 0x0e, /* 8 + ns*3 bytes */
.bDescriptorType = 0x24, /* 0x24 = CS_INTERFACE */
.bDescriptorSubtype = 0x02,/* 0x02 = FORMAT TYPE */
.bFormatType = 0x01, /* 0x01 type 1 */
.bNrChannels = 0x02, /* No of channels = nr */
.bSubframeSize = 0x02, /* 1, 2, 3, or 4-byte subs */
.bBitResolution = 0x10, /* No. used bits in subs */
.bSamFreqType = 0x00, /* Sampling freqs. = ns */
.iSamFreq[0][0] = 0x44, /* 24-bit freq. in 8000Hz */
.iSamFreq[0][1] = 0xac,
.iSamFreq[0][2] = 0x00,
.iSamFreq[1][0] = 0x44,/* 24-bit freq. in 48000Hz */
.iSamFreq[1][1] = 0xac,
.iSamFreq[1][2] = 0x00,
};
Just the iSamFreq from 8000 to 48000, to both equal to 44.1K.
But when I playing the media, it also very fast?
Any other suggestions?