Page 1 of 2

384KHz Audio Enablement in XMOS MCA Reference Design

Posted: Fri Feb 26, 2016 1:43 am
by amninder
I am using XMOS MCA kit and want to enable 384kHz audio which is not enabled by default.
What steps do I need to do on the firmware side to enable it?
Is there any special drivers I need on the host side(Windows PC) to use the 384Khz Audio feature?
I already installed the Thesycon UAC2.0 Drivers.

Re: 384KHz Audio Enablement in XMOS MCA Reference Design

Posted: Sun Feb 28, 2016 9:07 am
by infiniteimprobability
Try setting MAX FREQ in customdefines.h. See docs below..


https://www.xmos.com/support/boards?com ... 442&page=3

Re: 384KHz Audio Enablement in XMOS MCA Reference Design

Posted: Sun Feb 28, 2016 10:06 pm
by amninder
I could not find this setting "MAX FREQ" in customdefines.h (see attached) for the multi channel audio kit reference firmware at $firmware\sw_usb_audio\app_usb_aud_skc_u16_audio8\src\core.

However, I find this setting in the devicedefines.h file at $firmware\sc_usb_audio\module_usb_audio. Shall I change it in the devicedefines.h file and expect it to work?

Also, in the devicedefines.h file, I see the following parameters for sampling rate restrictions:
Do, I need to change any of them for 384Khz support?

/* Apply sample-rate restrictions to full-speed operation */
#if (NUM_USB_CHAN_OUT_FS > 0) && (NUM_USB_CHAN_IN_FS > 0)
#if(MAX_FREQ > 48000)
#define MAX_FREQ_FS 48000
#else
#define MAX_FREQ_FS MAX_FREQ
#endif
#else
#if (MAX_FREQ > 96000)
#define MAX_FREQ_FS 96000
#else
#define MAX_FREQ_FS MAX_FREQ
#endif
#endif

Re: 384KHz Audio Enablement in XMOS MCA Reference Design

Posted: Mon Feb 29, 2016 4:22 pm
by Ross
just add

#define MAX_FREQ 384000

to customdefines.h

Re: 384KHz Audio Enablement in XMOS MCA Reference Design

Posted: Tue Mar 01, 2016 2:24 pm
by infiniteimprobability
The multi-channel audio ref design hardware doesn't support 384KHz however, so beware!

Re: 384KHz Audio Enablement in XMOS MCA Reference Design

Posted: Fri Mar 04, 2016 10:59 pm
by amninder
@ infiniteimprobability,

Actually, I made the changes in the customdefines.h file in the firmware and gave it a shot. On, windows PC, I could no see the 384K Rate listed in the Sound Properties for XMOS device even I have the UAC2.0 installed. However, On a MAC PC . it lists the 384K , 24B rate as in attached file but I didn't get a change to play and measure the output to see if LRCK is actually = 384K.
On a Windows PC, I then tried to test it indirectly using foobar by playing DSD128 (DoP) as it is based on 352K PCM. So, in the foobar when I set it for DSD128 playback , I could measure the output of XMOS at 352K but the USB ports on my PC hangs after a second of playing and I have to reboot it.This measurement of 352K makes me think that the XMOS HW can support it and there needs to be fixed something on the firmware or the host PC side.
Anyways, I am going to try playback and measuring LRCK for 384K with MAC.

Re: 384KHz Audio Enablement in XMOS MCA Reference Design

Posted: Sat Mar 05, 2016 11:05 pm
by Ross
384 is only supported in windows via ASIO.

Re: 384KHz Audio Enablement in XMOS MCA Reference Design

Posted: Sun Mar 06, 2016 8:30 am
by amninder
Is there a link or documents that explains how to test 384K on Windows using ASIO ?
I have used foobar earlier to verify the DoP on Windows PC but not sure what is the procedure/settings to play PCM audio at 384K using foobar or whether it supports this feature or not.

Re: 384KHz Audio Enablement in XMOS MCA Reference Design

Posted: Sun Mar 06, 2016 10:04 pm
by Ross
XMOS doesn't provide any guides for any players. You can find some instructions here: http://www.asus.com/microsite/essence/u ... -ASIO.html

Re: 384KHz Audio Enablement in XMOS MCA Reference Design

Posted: Thu Mar 10, 2016 1:02 am
by amninder
With the above mentioned change in custom defines, I tried to test the 384K audio playback on a mac PC as it natively supports sampling rates upto 384K.

What I found is that 384K @ 16bit resolution just works fine when I listened the output from my device and it also looks fine from audio analyzer output (attached file 384_16b_Tone) .

However, when I changed the bit depth on mac to 24Bit, I heard cracking sound from my device and on looking at the audio analyzer output the tone looks out of shape with some digital pulses over-riding.(attached file 384_24b_tone). You have any reasoning for that?

Is there any specific setting required in firmware for 384K @ 24 bit ? Could it be the buffer size in the XMOS , that holds audio data from USB to convert it to I2S, that might be the issue ?