r/linuxaudio • • 22h ago

Multiple Interfaces! 😁

Just a little excited because I've finally figured out how to do something that most search results tell me is impossible: Getting two or more identical USB audio interfaces to work simultaneously.

It took me for months, but I finally got it to work.

The top Fast Track Ultra 8R is receiving audio on channels 1-6 from the MPC while the bottom Fast Track Ultra 8R is receiving audio on channel 1 & 2 and 5 & 6 from the JV-880 and Mo' Phatt respectively. All being routed into REAPER.

I have one more of these interfaces that I'm using to record another MPC on a separate system and I'm tempted to bring it over to this one to bump the inputs and outputs up to 24 channels.

I'm excited to finally have this working.

Edit: The video was recorded at 5:30 in the morning. there's no sound because I didn't want to piss my downstairs neighbors off.

11 Upvotes

12 comments sorted by

1

u/Youtopiasound 19h ago

Your interfaces don't have SPDIF or word clock? What about TOSlink? Check the manufacturer suggestions on multiple interfaces being connected.

2

u/mrbishopjackson 19h ago

S/PDIF is on a breakout cable, which I only have for one of the interfaces; one I bought new 18 years ago, the other two I bought secondhand on eBay back in July and they came with no breakout for MIDI and S/PDIF. I've searched online for one and they are impossible to find. The only option I've seen is to make my own. I don't know if I'm ready for that.

S/PDIF and word clock would sync them but not allow for daisy-chaining the audio; I would still run into the issues presented by Linux not being able to differentiate the two interfaces from one another. TOSlink/ADAT would allow for daisy-chaining, but unfortunately these don't have that. I also think TOSlink/ADAT was a think on USB 2.0 devices and was more of a FireWire thing back then. I could be wrong.

1

u/Youtopiasound 19h ago

3

u/mrbishopjackson 19h ago

Yes. And this is what I've done. But there is not "click of a button" solution for this. The devices are supported by Linux, yes. But connecting two identical devices at the same time will confuse the audio service as the read as the exact same device just on two different USB ports. They will be assigned an extra character in their but Pipewire with read both of them as "Fast Track Ultra 8R" and get confused about which one is doing what or try running the both as one (8 track combined instead of 16; channel 1 on both routing to channel one on the computer, etc.). The fix was to tell WirePlumber to change the names of the devices so that Pipewire reads them as two different devices.

Syncing the clocks with S/PDIF is a separate issue; or maybe not an issue at all, I haven't run enough audio through them simultaneously yet. But syncing the clocks was not the issues that I was trying to troubleshoot, it was getting Linux to recognize them both as separate interfaces and being able to run audio through both at once.

1

u/Specialist-Dog-501 10h ago

Thanks for sharing this insights..*The devil is always in the detail* and AI's can only known, what is public and documented- except someone lets them deepdive into the actual code stacks..
You pushed here the limits of linux- would be great to hear further details, as a.e total latency that pipewire adds here, the actual patching and what drivers where used.
(No expert here- I have an UR MKII and won't go any further, struggled enough with pipewire to keep the latencies low, especially in combination with WINE/Yabridge and WinVSTs..)

1

u/mrbishopjackson 7h ago

I actually used A.I. to help me fix this problem. Pushing DuckDuckGo's A.I. search hard as hell for weeks to help me figure this out. I'm computer literate, but am no where skilled enough to know where to dig to figure this stuff out; and trying to dig through Debian and Arch Wiki's to try to find what I need was stressful as I feel like you'd have to read through everything to find exactly what you need. I don't have THAT kind of patience. But every search and every result has helped me understand what I'm doing more.

I haven't yet recorded or monitored any audio with this working yet. I've just been testing it a couple of times a day to make sure that the process and order I've found out turning on and connecting devices is consistent and doesn't decide to break one day when I'm in a hurry to get something recorded. I'll be sitting this weekend to see what kind of issues I have with latency and clock syncing, as I have no way to physically synch the clocks since I'm missing the S/PDIF breakout cables on the two secondhand interfaces. So there will be more research to be done on how Pipewire handles this; I seen the word resampling pop up a few times in regard to Pipewire keeping things in sync.

If this works how I want it to, I will be back to eBay to buy more of these interfaces as they are dirt cheap and no one wants them because they are "old". I would love to have four or fix of these with a 32 (or more) mixer running all of the output to the board and mixing down to 1/4" tape (not Linux related, but the next device I need to get fixed).

1

u/63626978 11h ago

Lots of those search results are probably outdated. Before PipeWire you'd jump through hoops to get multiple interfaces working under JACK (a2j etc.). Under PipeWire, this works out of the box.

Of course as other comments mentioned PW by default just does samplerate conversion so if you want actually synced clocks between the interfaces look into the user guide whether that is actually possible and even then PW has to know they're synced.

1

u/mrbishopjackson 8h ago edited 8h ago

It does not work "out of the box" with Pipewire. Its not a Pipewire or JACK problem, but a Linux "issue" that Wire Plumber and Pipewire helps to solve, but needs to be configured.

You can use two devices with no problem (out of the box). But two identical devices are recognized by Linux as the same device with only the USB port differentiating them and a extra character/digit being added to the node.name, but Pipewire still reads each of them by the same device name; in my case it sees Fast Track Ultra 8R twice and will either read the first device connected to the computer and ignore the other or get confused and try reading both of them and starts crossing sinks and sources from both.

Edit: I've run the system with a Fast Track Ultra 8R and a Fast Track Pro. This works with no issues, no configuring.

The fix, for me, was to tell Wire Plumber to rename the devices with a config file so that Pipewire sees two different device names. But there's still a potential issue with this if you don't take precautions. If your devices are not connected in the same order every time yoi computer boots, Linux could assign the devices in a different order confusing Wire Plumber and having your devices swapped when Pipewire looks for them; instead of inputs 1-8 on device one being 1-8 in Pipewire, they are now 9-16 in Pipewire. So far I've been able to prevent this by powering kn both devices at 20 seconds before turning on the computer letting them full initialize and letting Linux load them based on the USB ports they are connected to, which for the past three days has been consistent.

0

u/casualops 21h ago

Interesting! And thanks for the non-slop post.

Can I ask how you are synchronizing the interfaces? Or are you using resampling in Pipewire?

1

u/mrbishopjackson 20h ago

I haven't configured anything for syncing yet. That is next on my list. Unfortunately, two of the three interfaces that I have were bought secondhand on eBay earlier this year and didn't come with the breakout cables for S/PDIF, and those are impossible to find for nearly 20 year old interfaces, so I'll be looking into syncing through Pipewire.

2

u/casualops 20h ago

As far as I know Pipewire won't be able to actually synchronize your interfaces together in the sense of synchronizing their clocks (each interface has its own clock). What Pipewire can do (and is probably already doing automatically) is resampling one of the interfaces (the follower) such that it is being "synchronized" into the clock domain of the other (the leader). I believe this adds some latency to the audio ins and outs on the follower unit.

1

u/mrbishopjackson 20h ago

I appreciate that. I'll have to do some research and see what is being done and what can be done, or if I even need to do anything. I've been going back a forth with this since I bought the two "new" interfaces on mid July and making little music. Hoping to have a stable setup, regarding the two interface setup, by the end of the month so that I can jump into a new project at the beginning of the year and not having to worry about troubleshooting the computer in the middle of a session.