Can the USB Audio 2.0 RD display as a digital interface ?

Technical discussions related to any XMOS development kit or reference design. Eg XK-1A, sliceKIT, etc.
Post Reply
pasnew
Member
Posts: 15
Joined: Wed Jan 16, 2013 7:28 pm

Can the USB Audio 2.0 RD display as a digital interface ?

Post by pasnew »

Hello,
I'm using a USB Audio 2.0 RD.
It shows as a speaker in the Audio settings.
I haved changed the terminal type of the terminal descriptor of Audio Class 1.0 to 0x0602 and it shows as a digital audio interface now.
But when I changed the terminal type of Audio Class 2.0 to 0x0602, nothing happened !
It shows still as a speaker.
Is there anyway to do it?


another question, I want to use a relay to choose MCLK in my design,
but it will have a set-up delay of 10ms after the pin CLK_SEL change, is it too big
to let the system work properly?


User avatar
Ross
XCore Expert
Posts: 962
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

pasnew wrote: I want to use a relay to choose MCLK in my design,
but it will have a set-up delay of 10ms after the pin CLK_SEL change, is it too big
to let the system work properly?
You should try and use the Clocking config calls (like the reference design does). Make sure these functions do not return until your clocking is fully setup (either using a timer, or checking for a valid clock). The device will then nak the host until the sample frequency change is fully completed.
pasnew
Member
Posts: 15
Joined: Wed Jan 16, 2013 7:28 pm

Post by pasnew »

Thanks Ross,
Is it means change the timer in the function CodecConfig of codec.xc ?

Code: Select all

 /* Hold in reset for 2ms */
    t :> time;
    time += 2 00000;
    t when timerafter(time) :> int _;
Any idea for the USB descriptor?
Post Reply