how to adjust firmware for higher mclk

Sub forums for various specialist XMOS applications. e.g. USB audio, motor control and robotics.
Post Reply
hushange
Member++
Posts: 30
Joined: Tue Oct 11, 2016 7:08 am

how to adjust firmware for higher mclk

Post by hushange »

in usb audio firmware, we now use default mclk setting for xmos as bellow:

Code: Select all

/* Master clock defines (in Hz) */
#define MCLK_441           (512*44100)   /* 44.1, 88.2 etc */
#define MCLK_48            (512*48000)   /* 48, 96 etc */
in order to use 45.158MHz as mclk input, i change the

Code: Select all

#define MCLK_441           (512*44100)   /* 44.1, 88.2 etc */
to

Code: Select all

#define MCLK_441           (1024*44100)   /* 44.1, 88.2 etc */
but sometimes the player can't open the usb audio card.
so whether my changes is not enogh for a higher mclk?

my firmware: 6.15.2
my board: xCORE-200 eXplorer
my app: app_usb_aud_xk_216_mc
my configure: 2xoxx


User avatar
larry
Respected Member
Posts: 275
Joined: Fri Mar 12, 2010 6:03 pm

Post by larry »

Did you also set MCLK_48? What sample rate is your device initially set to by the host?
hushange
Member++
Posts: 30
Joined: Tue Oct 11, 2016 7:08 am

Post by hushange »

Did you also set MCLK_48? What sample rate is your device initially set to by the host?
----changed nothing for MCLK_48, because now we only have 45.158MHz for mclk, also all our testing is done by 44.1 88.2 176.4 and DSD256 songs. but sometimes the player is can't open usb audio card when playing DSD256. the linux host print the following errors:
usb 2-1.2: 1:3: cannot set freq 352800 (v2): err -110
Post Reply