XK-AUDIO-316-MC-AB analog input doesn't work

Discussions relating to the XK-EVK-XU316
Zetika
Junior Member
Posts: 5
Joined: Tue Jun 13, 2023 10:38 pm

XK-AUDIO-316-MC-AB analog input doesn't work

Post by Zetika »

I started to test the XK-AUDIO-316-MC-AB. I build app_usb_aud_xk_316_mc 1AMi2o2xxxxxx and set the jumpers for i2S. Analoge output is working but It doesn't send audio to the PC. Any idea? I am building with xtools 15.2.1 and app_usb_aud_xk_316_mc is version 8.1.0.

Thank you.
maxmatteo
Member
Posts: 10
Joined: Wed Dec 30, 2020 8:11 pm
Location: Hamburg

Post by maxmatteo »

how did you setup the jumpers?

did you try the precompiled images?

mine is working fine
Zetika
Junior Member
Posts: 5
Joined: Tue Jun 13, 2023 10:38 pm

Post by Zetika »

Thank you.
I upoload the picture with the jumpers.
I only downloaded code from https://www.xmos.com/develop/usb-multichannel-audio/ and built it.
You do not have the required permissions to view the files attached to this post.
maxmatteo
Member
Posts: 10
Joined: Wed Dec 30, 2020 8:11 pm
Location: Hamburg

Post by maxmatteo »

my jumpers are the same.

did you try 2AMi8o8xxxxxx ?

that’s the one i used
Zetika
Junior Member
Posts: 5
Joined: Tue Jun 13, 2023 10:38 pm

Post by Zetika »

Same result, no audio from mic.
Joe
Verified
Active Member
Posts: 59
Joined: Sun Dec 13, 2009 1:12 am

Post by Joe »

Do you have any more details on your exact test setup?

When you say no audio from mic how are you providing a signal to the line input? Are you playing an output at the same time and using the loopback cable? Is your loopback cable definitely a stereo TRS jack cable? (I noted it has a mic symbol on it). What OS and software are you using to test?

If you want to test the hardware you can run the attached binary with the command: xrun --xscope analogue_loopback.xe
analogue_loopback.zip
This test plays a tone out of all analogue outputs and looks for signals on all analogue inputs and reports their level. For your setup with a single loopback cable from out 1/2 to in 1/2 you should get an output like this:

Starting I2S sample tap
Starting audio analyzer task
Generating sine table for chan 0, frequency 1000, period 48, volume 27
Starting audio analyzer task
Starting audio analyzer task
Starting audio analyzer task
Generating sine table for chan 1, frequency 2000, period 24, volume 27
Generating sine table for chan 2, frequency 3000, period 16, volume 27
Generating sine table for chan 3, frequency 4000, period 12, volume 27
Generating sine table for chan 4, frequency 5000, period 240, volume 27
Generating sine table for chan 5, frequency 6000, period 8, volume 27
Generating sine table for chan 6, frequency 7000, period 336, volume 27
Generating sine table for chan 7, frequency 8000, period 6, volume 27
Generating signals.
Channel 0: Signal detected (amplitude: 209336832,-208744960)
Channel 1: Signal detected (amplitude: 203174912,-202546688)
Channel 0: Frequency 1000 (mag: 78)
Channel 1: Frequency 2000 (mag: 76)

Cheers,
Joe
You do not have the required permissions to view the files attached to this post.
XMOS hardware grey beard.
Zetika
Junior Member
Posts: 5
Joined: Tue Jun 13, 2023 10:38 pm

Post by Zetika »

Thank you.
I tested with a loopback cable and it works.

Starting I2S sample tap
Starting audio analyzer task
Generating sine table for chan 0, frequency 1000, period 48, volume 27
Starting audio analyzer task
Starting audio analyzer task
Starting audio analyzer task
Generating sine table for chan 1, frequency 2000, period 24, volume 27
Generating sine table for chan 2, frequency 3000, period 16, volume 27
Generating sine table for chan 3, frequency 4000, period 12, volume 27
Generating sine table for chan 4, frequency 5000, period 240, volume 27
Generating sine table for chan 5, frequency 6000, period 8, volume 27
Generating sine table for chan 6, frequency 7000, period 336, volume 27
Generating sine table for chan 7, frequency 8000, period 6, volume 27
Generating signals.
Channel 0: Signal detected (amplitude: 209794560,-209621504)
Channel 1: Signal detected (amplitude: 206200832,-205728768)
Channel 0: Frequency 1000 (mag: 78)
Channel 1: Frequency 2000 (mag: 78)

But when a plugin a headphone stereo microphone no signal is received:
Starting I2S sample tap
Starting audio analyzer task
Generating sine table for chan 0, frequency 1000, period 48, volume 27
Starting audio analyzer task
Starting audio analyzer task
Starting audio analyzer task
Generating sine table for chan 1, frequency 2000, period 24, volume 27
Generating sine table for chan 2, frequency 3000, period 16, volume 27
Generating sine table for chan 3, frequency 4000, period 12, volume 27
Generating sine table for chan 4, frequency 5000, period 240, volume 27
Generating sine table for chan 5, frequency 6000, period 8, volume 27
Generating sine table for chan 6, frequency 7000, period 336, volume 27
Generating sine table for chan 7, frequency 8000, period 6, volume 27
Generating signals.

I don't understand why.
Joe
Verified
Active Member
Posts: 59
Joined: Sun Dec 13, 2009 1:12 am

Post by Joe »

Hi,

The IN 1/2 connector is designed for stereo line level signals. It is a TRS jack where TIP = left channel, RING = right channel, SLEEVE = ground. It is not compatible with headsets with microphones if this is what you are using for test?

If you want to test the input in a different way you could connect a phone or ipod or similar directly to the IN 1/2 connector.

Cheers,
Joe
XMOS hardware grey beard.
Zetika
Junior Member
Posts: 5
Joined: Tue Jun 13, 2023 10:38 pm

Post by Zetika »

It is clear. Thank you very much.