no audio input in USB Audio

Technical discussions related to any XMOS development kit or reference design. Eg XK-1A, sliceKIT, etc.
Unchyu2
Member++
Posts: 29
Joined: Tue Jun 17, 2014 11:40 am

no audio input in USB Audio

Post by Unchyu2 »

Hello,
I am trying to implement the code in "USB-Audio-2.0-Device-Reference-Design-Software(6.6.0)" for my USB sliceKit (XP-XKC-U16 1v2) and my audio slice (XA-SK-AUDIO 1v1). To do this I have programmed the board with the following application "app_usb_aud_skc_u16".

I can successfully listen to music played from my PC but I cant get any input going into it.
Using an oscilloscope I have probed the I2S data signal coming from the ADC and it looks fine, therefore I think the problem is that XMOS is not sending the signal over USB.
I have also checked if the problem was with the USB audio driver by connecting the sliceKit to a Mac computer, ho still hadn't any input, therefore I don't think that's the problem.

Any help is most welcomed.


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

Post by Ross »

app_usb_aud_skc_u16 can be build with many configurations, ensure you are running one that has input enabled (2ioxx for example). The configuration naming scheme can be found in the USB Audio Design Guide.

Also, make sure the jumpers on the board are set to that specified in the readme file in the app_usb_aud_skc_u16 folder.
Unchyu2
Member++
Posts: 29
Joined: Tue Jun 17, 2014 11:40 am

Post by Unchyu2 »

thank you for your reply Ross

app_usb_aud_skc_u16 has only one configuration in it's makefile:

Code: Select all

# The flags passed to xcc when building the application
BUILD_FLAGS     = -DFLASH_MAX_UPGRADE_SIZE=64*1024 -fcomment-asm -Xmapper --map -Xmapper MAPFILE -Wall -O3 -report -lflash -fsubword-select -save-temps -g -fxscope -DXSCOPE -DSDA_HIGH=2 -DSCL_HIGH=1 -DXUD_ON_U_SERIES=1

# Test build configs (Note these make use of the defaults in customdefines.h)

# Audio Class 2, Input, Output, No MIDI, SPDIF
XCC_FLAGS_2ioxs = $(BUILD_FLAGS)
INCLUDE_ONLY_IN_2ioxs =  
and according to USB Audio Design Guide, it should have input and output enable

and my jumpers are set accordingly; J14 to ALT and J15 to ON
User avatar
Ross
XCore Expert
Posts: 962
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

What signal are you driving into the ADC and what program are you using to try and record?
Unchyu2
Member++
Posts: 29
Joined: Tue Jun 17, 2014 11:40 am

Post by Unchyu2 »

Audio signal coming from a cellphone jack output.
To record I am using Ableton Live, I have configured the audio device in preferences to use :driver type - ASIO, and audio device - TUSBAudio ASIO Driver. I can see the XMOS slice kit as a sound card with 4 in's and 4 out's in Ableton but I don't get any input from it.
If I change NUM_USB_CHAN_IN or NUM_USB_CHAN_OUT in customdefines.h, Ableton (or the TUSBAudio driver) sees the changes and configures the IN/OUT ports accordingly.

My main problem is that I dont have any signal at recording devices
Attachments
Untitled.jpg
Untitled.jpg (54.72 KiB) Viewed 8850 times
Untitled.jpg
Untitled.jpg (54.72 KiB) Viewed 8850 times
Bayanaa
Active Member
Posts: 33
Joined: Fri Feb 07, 2014 3:03 pm

Post by Bayanaa »

I also had same problem that you showed in Figure. But I had solved it :)) . Did you compile original source code or add new source code (i.e, dsp) ?
Unchyu2
Member++
Posts: 29
Joined: Tue Jun 17, 2014 11:40 am

Post by Unchyu2 »

I compiled the original code without any alteration.

I have even re-downloaded the "USB-Audio-2.0-Device-Software(6.6.0)" reference design from xmos website, created a new project and re-compiled the application, and still no luck.
Unchyu2
Member++
Posts: 29
Joined: Tue Jun 17, 2014 11:40 am

Post by Unchyu2 »

So, after one week of troubleshooting I discovered that you have to connect with a wire the signal from PORT_MCLK_IN2 (aka PIN X0D13) to PORT_MCLK_IN (aka PIN X1D12) on the sliceKit (XP-SKC-U16 1v2)
User avatar
Ross
XCore Expert
Posts: 962
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Unchyu2 wrote:So, after one week of troubleshooting I discovered that you have to connect with a wire the signal from PORT_MCLK_IN2 (aka PIN X0D13) to PORT_MCLK_IN (aka PIN X1D12) on the sliceKit (XP-SKC-U16 1v2)
This is not required, the jumper marked D12 XOVER should do this for you (J15)
Unchyu2
Member++
Posts: 29
Joined: Tue Jun 17, 2014 11:40 am

Post by Unchyu2 »

as I said earlier, with the jumper set on "ON" position I couldn't receive any audio into my PC.
With the jumper on "ON" & the external wire I can record audio throw USB.
Post Reply