more usb playback-capture devices on linux alsa Topic is solved

Sub forums for various specialist XMOS applications. e.g. USB audio, motor control and robotics.
Post Reply
RobertPE
New User
Posts: 3
Joined: Thu Oct 24, 2019 10:36 am

more usb playback-capture devices on linux alsa

Post by RobertPE »

Hello to all,
i have well compiled and running a reference design called app_usb_aud_skc_u16.
Now i need more endpoints on linux alsa.
I have multichannel audio with SPDIF and i need to split the audio channel in more USB digital Audio Playback & digital audio capture endpoints.
With alsamixer i see only 2 devices one for playback and another for capture,
is it possible to have 4 devices or more with one XMOS IC?


View Solution
User avatar
fabriceo
XCore Addict
Posts: 181
Joined: Mon Jan 08, 2018 4:14 pm

Post by fabriceo »

Hi, my view is that it would require to show multiple audio interfaces and descriptors to the host, and the app_usb_aud framework is not written/prepared for this...
also the management of 2 sets of audio endpoint would need to duplicate buffer handling in both usb_buffer.xc and decouple.xc this would be a real nightmare and needing a huge amount of man days to understand how it works and duplicate this...
you have to consider splitting the data flows upfront into the host/linux...
RobertPE
New User
Posts: 3
Joined: Thu Oct 24, 2019 10:36 am

Post by RobertPE »

thanks Fabriceo,
best of all is to have a reference desing already done!
Perhaps some of xmos gurus are listening....
User avatar
akp
XCore Expert
Posts: 578
Joined: Thu Nov 26, 2015 11:47 pm

Post by akp »

Hi. Have you tried the dmix, dsnoop and/or dshare ALSA plugins? That might give you what you want. It will take some work but less work than rewriting the XMOS IP.
RobertPE
New User
Posts: 3
Joined: Thu Oct 24, 2019 10:36 am

Post by RobertPE »

Hi.
i solve with dsnoop, thanks to akp!!
Now i need to resample some spdif input but is less effort than rewriting XMOS IP
User avatar
akp
XCore Expert
Posts: 578
Joined: Thu Nov 26, 2015 11:47 pm

Post by akp »

Glad you got it working! Good luck with the rest of your project.
Post Reply