我在我的电脑上安装了一个新的基于PCI的声卡。它有8个S/PDIF的I/O对,每一行1到8作为输入和输出。我尝试使用3-8行作为输入(mics),3-8行用于输出(播放),其中:
因此,我创建了以下.asoundrc:
pcm.!default {
type plug
slave {
pcm "hw:1,0"
}
}
ctl.!default {
type hw
card 1
}
pcm.play_out_44 {
type dmix
ipc_key 1201
ipc_key_add_uid true
slave {
pcm "hw:1,0"
channels 2
rate 44100
format S32_LE
buffer_size 4096
period_size 1024
}
}
pcm.rec_in_44 {
type dsnoop
ipc_key 1210
slave {
pcm "hw:1,0"
channels 2
rate 44100
buffer_size 4096
period_size 1024
}
}
pcm.outch1 {
type plug
slave {
pcm "play_out_44"
bindings {
2 2
3 3
}
hint.description "PCI Card Stereo output/playback channel 1 (from output ports 3 & 4)"
}
}
pcm.inch1 {
type plug
slave {
pcm "rec_in_44"
bindings {
2 2
3 3
}
hint.description "PCI Card Stereo input/capture channel 1 (from input ports 3 & 4)"
}
}
pcm.outch2 {
type plug
slave {
pcm "play_out_44"
bindings {
4 4
5 5
}
hint.description "PCI Card Stereo output/playback channel 2 (from output ports 5 & 6)"
}
}
pcm.inch2 {
type plug
slave {
pcm "rec_in_44"
bindings {
4 4
5 5
}
hint.description "PCI Card Stereo input/capture channel 2 (from input ports 5 & 6)"
}
}
pcm.outch3 {
type plug
slave {
pcm "play_out_44"
bindings {
6 6
7 7
}
hint.description "PCI Card Stereo output/playback channel 3 (from output ports 7 & 8)"
}
}
pcm.inch3 {
type plug
slave {
pcm "rec_in_44"
bindings {
6 6
7 7
}
hint.description "PCI Card Stereo input/capture channel 3 (from input ports 7 & 8)"
}
}正如前面提到的这里,我创建了一个新的dmix类型以适应我的配置。但是,当我试图打开Audacity来尝试播放和捕捉时,录音设备或播放设备列表中没有inch1、inch2、inch3、outch1、outch2、outch3!
如何在设备上修改或创建立体声播放和立体声捕捉的.asoundrc?
发布于 2019-04-14 12:45:22
我用传统的立体声卡复制了outch插头的问题。我认为inch插件也有类似的问题。
问题是:这些plugs不接受字段bindings和hint。我想你并不真的需要hint和bindings进入dmix或dsnooper (参见这里)
我想要更快地调试您的设置,而不必每次都开始大胆,下面是我要做的事情(以及我如何诊断您的问题):
aplay -L | grep xx。那么你至少应该看看你的pcms。我看到你剥去衣服的.asoundrc。
xxplay_out_44
xxoutch1locate *.wav | head。
> aplay -D xxoutch1 /usr/share/sounds/sound-icons/xylofon.wav
ALSA lib pcm.c:7448:(snd_pcm_slave_conf) Unknown field bindings现在您有了一条不错的错误消息。如果删除bindings,您将看到它抱怨hint字段。
https://unix.stackexchange.com/questions/511175
复制相似问题