How to make XCore 200 MC board support 12 & 24kHz? Topic is solved

If you have a simple question and just want an answer.
xchips
Active Member
Posts: 51
Joined: Wed Jun 22, 2016 8:08 am

How to make XCore 200 MC board support 12 & 24kHz?

Post by xchips »

I tried to let XCore 200 MC board support 8k, 11.025k, 12k, 16k, 22.05k, 24k, 32k frequencies.
I found the code 'unsigned lowSampleRateList[] = {8000, 11025, 12000, 16000, 32000};' in file 'module_usb_audio/endpoint0/audiorequests.xc', line 877.

1. I added 22050, 24000 to this array.
2. I added:
#ifndef MIN_FREQ
#define MIN_FREQ (8000)
#endif
to customdefines.h file.
Then rebuilt it, I found 8k, 11.025k, 16k, 22.05k, 32k had been supported on Windows OS 7(32-bit).
But not included 12kHz and 24kHz. Can someone tell me why?
Driver info: 3.20.0 EVAL

Thanks in advance.

New-found: Actually, even 12kHz and 24kHz are not included in the list. I still can use Foobar2000 to play sound at 12kHz or 24khz with a 'WASAPI' pluggin.

So my new question is: Who define the strings for different Fs, the driver or the OS?
(String means that the format description in audio device manager. eg: '10 channels, 16bit, 11025 Hz').


View Solution
ffomich
Experienced Member
Posts: 119
Joined: Mon Sep 15, 2014 1:32 pm

Post by ffomich »

Hi, xchips.

I think driver generates strings when you use Thesycon driver.
For example, for multichannel board in Windows Volume Control you can choose any combination of channelsNum + samplingFreq + sampleSize.

In UAC1 mode Windows Volume Control display only modes defined in USB Device Descriptor.

Also keep in mind Windows doesn't support/display some modes. See TUSBAudio_UserManual.pdf, "9. Known Issues".
xchips
Active Member
Posts: 51
Joined: Wed Jun 22, 2016 8:08 am

Post by xchips »

Thank you ffomich, I really missed this doc. I found it in this path:
C:\Thesycon\TUSBAudio_v3.20.0\EvaluationKit\doc\TUSBAudio_UserManual.pdf, in case it helps others.
ffomich
Experienced Member
Posts: 119
Joined: Mon Sep 15, 2014 1:32 pm

Post by ffomich »

Also try recent version of Thesycon driver - 3.34
xchips
Active Member
Posts: 51
Joined: Wed Jun 22, 2016 8:08 am

Post by xchips »

Thanks for your advice ffomich, maybe I will try it latter because I'm currently focusing on other things.