我正在尝试在gentoo上建立一个Jack-ALSA桥接器,但我无法加载snd_aloop模块。
内核:
$ uname -a
Linux MalfattiTux 4.6.7-rt-rt11 #1 SMP Thu Sep 22 14:54:42 BRT 2016 x86_64 Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz GenuineIntel GNU/Linux
snd_aloop编译为模块:
$ cat /usr/src/linux-4.6.7-rt11/.config | grep ALOOP
CONFIG_SND_ALOOP=m
snd_aloop info:
$ sudo modinfo snd_aloop
filename: /lib/modules/4.6.7-rt-rt11/kernel/sound/drivers/snd-aloop.ko
license: GPL
description: A loopback soundcard
author: Jaroslav Kysela <perex@perex.cz>
depends: snd-pcm
intree: Y
vermagic: 4.6.7-rt-rt11 SMP mod_unload modversions
parm: index:Index value for loopback soundcard. (array of int)
parm: id:ID string for loopback soundcard. (array of charp)
parm: enable:Enable this loopback soundcard. (array of bool)
parm: pcm_substreams:PCM substreams # (1-8) for loopback driver. (array of int)
parm: pcm_notify:Break capture when PCM format/rate/channels changes. (array of int)
snd_aloop模块的设置:
$ cat /etc/modprobe.d/alsa.conf | grep aloop
options snd-aloop id=Loopback index=0 pcm_substreams=2 enable=1
alias snd-card-0 snd-aloop
音频设备:
$ sudo lspci | grep -i audio
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
$ sudo lspci -k -s 00:03.0
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
Subsystem: Lenovo Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
$ sudo lspci -k -s 00:1b.0
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
Subsystem: Lenovo 8 Series/C220 Series Chipset High Definition Audio Controller
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
一切看起来都不错。但那时:
$ sudo modprobe snd_aloop
modprobe: ERROR: could not insert 'snd_aloop': No such device
我也尝试将其编译为模块,但包含在内核中。然后,我有环回设备,但我无法控制它们(例如,像子流的数量)。
此模块是否需要特定设置才能处理gentoo?
谢谢:)
答案 0 :(得分:1)
声音驱动程序的index
选项指定应使用的卡号。
但是,如果已在同一索引处加载了另一个驱动程序,则此方法无效。
因此,您必须在所有使用的驱动程序上设置匹配的index
选项(并且可能在将来使用,例如USB音频)。
更好的想法是删除所有index
选项,并使用slots
模块的snd
选项指定只有特定的驱动程序才能使用特定索引:
options snd slots=snd-aloop,snd-hda-intel,snd-hda-intel
或者如果环回驱动程序不应该是第一个(默认)驱动程序:
options snd slots=snd-hda-intel,snd-hda-intel,snd-aloop