I’ve been trying to get my firewire MOTU 828mk3 Hybrid working with Linux. Unfortunately FFADO doesn’t support the ‘hybrid’ version. Looking at the source code, it’s probably an easy fix (they support a different ‘hybrid’ interface), but I really don’t have the time.
Turns out that the ALSA firewire support is better. Haven’t got very far yet, but it looks promising. Anyway, I’ve been completely stumped with how to get ALSA to tell me how many channels a device has.
So far, the best I’ve got is using sounddevice:
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import sounddevice
In [2]: sounddevice.query_devices()
Out[2]:
0 HDA Intel PCH: ALC1150 Analog (hw:0,0), ALSA (2 in, 6 out)
1 HDA Intel PCH: ALC1150 Digital (hw:0,1), ALSA (0 in, 2 out)
2 HDA Intel PCH: ALC1150 Alt Analog (hw:0,2), ALSA (2 in, 0 out)
3 HDA ATI HDMI: 0 (hw:1,3), ALSA (0 in, 8 out)
4 HDA ATI HDMI: 1 (hw:1,7), ALSA (0 in, 8 out)
5 HDA ATI HDMI: 2 (hw:1,8), ALSA (0 in, 8 out)
6 HDA ATI HDMI: 3 (hw:1,9), ALSA (0 in, 8 out)
7 HDA ATI HDMI: 4 (hw:1,10), ALSA (0 in, 8 out)
8 828mk2: - (hw:3,0), ALSA (14 in, 14 out)
9 sysdefault, ALSA (128 in, 128 out)
10 front, ALSA (0 in, 6 out)
11 surround21, ALSA (0 in, 128 out)
12 surround40, ALSA (0 in, 6 out)
13 surround41, ALSA (0 in, 128 out)
14 surround50, ALSA (0 in, 128 out)
15 surround51, ALSA (0 in, 6 out)
16 surround71, ALSA (0 in, 6 out)
17 iec958, ALSA (0 in, 2 out)
18 spdif, ALSA (0 in, 2 out)
19 pulse, ALSA (32 in, 32 out)
20 dmix, ALSA (0 in, 2 out)
* 21 default, ALSA (32 in, 32 out)
22 system, JACK Audio Connection Kit (2 in, 2 out)
23 PulseAudio JACK Sink, JACK Audio Connection Kit (2 in, 0 out)
24 PulseAudio JACK Source, JACK Audio Connection Kit (0 in, 2 out)
Anyone know the best way to get ALSA to print out some info about my sound card?