I have two RME MADI FX running on Ubuntu Studio 14.04. I installed a driver from here https://github.com/adiknoth/madifx it works, both cards have all their inputs and outputs working.
However, I need them to be one virtual device so applications can use the channels from both cards. This proves to be a tough road. I've tried everything suggested on this page: http://www.jackaudio.org/faq/multiple_devices.html
My setup:
Code: Select all
cat /proc/asound/cards
0 [MADIFXtest ]: MADIFX - RME MADI FX_0
RME MADI FX S/N 0x0 at 0xsomecode, irq17
1 [MADIFXtest_1 ]: MADIFX - RME MADI FX_0
RME MADI FX S/N 0x0 at 0xsomecode, irq18
So I have jack set up to use the first card as input and output base from the jackqtl gui. Then I start the jack server.
There are lots of forum posts, stating you can specify the hardware like this
Code: Select all
alsa_in -d hw:1
Code: Select all
alsa_in -d plughw:1
Additionaly, there is a warning in the terminal:
Code: Select all
WARNING: buffer size does not match: (requested 2048, got 8192)
Now when I try to connect the second cards output channels via
Code: Select all
alsa_out -d plughw:1
Code: Select all
Segmentation fault (core dumped)
2. Mentioning of Jack2 audio adapters
The wiki suggests a second solution to the problem utilizing Jack2 audio adapters. Next, they write "More information is needed on this option". I tried to find information but all I could dig up is that it is a kind of generalized version of alsa_in and alsa_out. But how to use it?
3. .asoundrc
The last solution on Linux is to use the .asoundrc. As I have a lot of inputs and outputs, I wrote a small bash script that creates a valid .asoundrc-file. The problem is that when running the jack server with this configuration via
Code: Select all
jackd -R -d alsa -C madifx_record_all -P madifx_playback_all
Code: Select all
creating alsa driver ...
madifx_playback_all|madifx_record_all|1024|2|48000|0|0|nomon|swmeter|-|32bit
jackd: pcm_multi.c:1060: snd_pcm_multi_open: Assertion `!slave_map[sidxs[i]][schannels[i]]' failed.
So I downloaded the source code of alsa-lib 1.0.28 (the version used on Ubuntu Studio 14.04), changed the fixed slave-array size in line 1016 to [1024] for both arrays, saved and compiled the project (./configure && sudo make install) and tested again after a restart. But that didn't fix the problem.
What could be the problem here?
I attached my alsa-info. I appreciate any help. Thanks!