xCore-200 MC dev board own design - simple mute, possible?

Technical discussions related to any XMOS development kit or reference design. Eg XK-1A, sliceKIT, etc.
Zed1970
Member++
Posts: 26
Joined: Tue Oct 15, 2019 10:36 am

xCore-200 MC dev board own design - simple mute, possible?

Postby Zed1970 » Fri Nov 08, 2019 12:28 am

Hi,

I need to add a basic mute to the spdif tx output of our custom board ( based on xCore-200 MC development board ). I've sorted all the user "mute" switch part and have a simple "chan mute" that can be used where needed 0 =audio, 1=mute. Question is where would the idea place be in the app_usb_aud_xk_216_mc demo code to make use of my mute bool? This is for spdif tx only.

Thanks.
User avatar
mon2
XCore Legend
Posts: 1756
Joined: Thu Jun 10, 2010 11:43 am

Postby mon2 » Fri Nov 08, 2019 2:56 am

User avatar
mon2
XCore Legend
Posts: 1756
Joined: Thu Jun 10, 2010 11:43 am

Postby mon2 » Fri Nov 08, 2019 11:21 am

Review AudioHwConfig() routine documented in section 6.6.4 of the USB Audio Design Guide. Looks like a sweet spot to insert your mute button.
Zed1970
Member++
Posts: 26
Joined: Tue Oct 15, 2019 10:36 am

Postby Zed1970 » Wed Nov 13, 2019 4:46 pm

Hi mon2,

Thanks, getting the switch states not the problem - done that; what I'm trying to figure out is where I can "gate" the audio stream as it's a DIY mute switch ( no HID controls ). As an audio card the project still needs to stream music but the mute switch simple stops the spdif audio output. I tried in spdif_tx to gate the serial buffer feeding the spdif pin but something didn't like that idea and the debug balked at it.

Who is online

Users browsing this forum: No registered users and 0 guests