[ @sound @jack ]
https://jackaudio.org/faq/device_naming.html
List of PLAYBACK Hardware Devices
aplay -l
Вывод
card 0: PCH [HDA Intel PCH], device 0: ALC255 Analog [ALC255 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: M2 [M2], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: M2 [M2], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
List of CAPTURE Hardware Devices
arecord -l
Вывод
card 0: PCH [HDA Intel PCH], device 0: ALC255 Analog [ALC255 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: M2 [M2], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: M2 [M2], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
Проверить, какие карты подключены
cat /proc/asound/cards
Пример вывода
0 [PCH]: HDA-Intel - HDA Intel PCH
0 [PCH]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xa4520000 irq 130
1 [M2 ]: USB-Audio - M2
MOTU M2 at usb-0000:00:14.0-5, high speed
Ок, 0 - внутреннее железо (с названием „PCH”), 1 — аудиокарта MOTU M2 через USB (с названием „M2”)
Эти номера иногда меняются, когда меняется конфигурация железа, поэтому осторожнее с ними.
Далее определение устройств: „hw” означает „hardware”.
"hw:0", the first hardware card defined in /etc/modules.conf
Вот три имени одного и того же устройства.
hw:1
hw:M2
hw:M2,0
hw:1
hw:M2
hw:M2,0
УПРАВЛЕНИЕ
alsa_in, alsa_out - Jack clients that perform I/O with an alternate audio interface
DESCRIPTION
A JACK client that opens a specified audio interface (different to the one used by the JACK server, if any) and moves audio data between its JACK ports and the interface.
A JACK client that opens a specified audio interface (different to the one used by the JACK server, if any) and moves audio data between its JACK ports and the interface.
alsa_in will provide data from the interface (potentially for capture);
alsa_out will deliver data to it (for playback).
alsa_out will deliver data to it (for playback).
Эта команда укажет драйверу звука, что слушать надо сигнал с устройства hw:1
alsa_in -d hw:1
Эта команда укажет драйверу звука, что надо передать сигнал на устройство hw:0
alsa_out -d hw:0
Опции настраивают параметры звука — см.
man "alsa_in"
Также см. jackaudio.org