我在我的电脑上安装了一个新的基于 PCI 的声卡。它有 8 个基于 S/PDIF 的 I/O 对,每对编号为 1 到 8,用于输入和输出。我尝试将输入线 3、5、7 用于输入(麦克风),将输出线 3、5、7 用于单声道输出(播放):
- 第 3 行 = 通道 1(输入和输出),
- 第 5 行 = 通道 2(输入和输出),
- 第 7 行 = 通道 3(输入和输出)。
所以,我创建了以下内容.asoundrc
:
pcm.!default {
type plug
slave {
pcm "hw:1,0"
}
}
ctl.!default {
type hw
card 1
}
pcm_slave.pci-sc {
pcm "hw:1,0"
channels 8
rate 44100
buffer_size 4096
period_size 1024
}
pcm.outch1 {
type plug
slave.pcm {
type dshare
ipc_key 1111
slave pci-sc
bindings [ 2 ]
hint.description "PCI Card output/playback channel 1 (from output port 3)"
}
}
pcm.inch1 {
type plug
slave.pcm {
type dsnoop
ipc_key 1111
slave pci-sc
bindings [ 2 ]
hint.description "PCI Card input/capture channel 1 (from input port 3)"
}
}
pcm.outch2 {
type plug
slave.pcm {
type dshare
ipc_key 1111
slave pci-sc
bindings [ 4 ]
hint.description "PCI Card output/playback channel 2 (from output port 5)"
}
}
pcm.inch2 {
type plug
slave.pcm {
type dsnoop
ipc_key 1111
slave pci-sc
bindings [ 4 ]
hint.description "PCI Card input/capture channel 2 (from input port 5)"
}
}
pcm.outch3 {
type plug
slave.pcm {
type dshare
ipc_key 1111
slave pci-sc
bindings [ 6 ]
hint.description "PCI Card output/playback channel 3 (from output port 7)"
}
}
pcm.inch3 {
type plug
slave.pcm {
type dsnoop
ipc_key 1111
slave pci-sc
bindings [ 6 ]
hint.description "PCI Card input/capture channel 3 (from input port 7)"
}
}
但是通过上述配置,当我尝试打开Audacity
尝试播放和捕获时,在录制设备或播放设备列表中只有inch1
, inch2
,inch3
可用,而outch1
, outch2
,outch3
不可用!
另外,我尝试.asoundrc
按照提到的方式创建这里也如下:
pcm.!default {
type plug
slave {
pcm "hw:1,0"
}
}
ctl.!default {
type hw
card 1
}
pcm_slave.pci-sc {
pcm "hw:1,0"
channels 8
rate 44100
buffer_size 4096
period_size 1024
}
pcm.outch1 {
type plug
slave.pcm {
type dshare
ipc_key 1111
slave pci-sc
bindings [ 0 ]
hint.description "PCI Sound Card output/playback channel 1 (from output port 1)"
}
}
pcm.inch1 {
type plug
slave.pcm {
type dsnoop
ipc_key 1111
slave pci-sc
bindings [ 0 ]
hint.description "PCI Sound Card input/capture channel 1 (from input port 1)"
}
}
pcm.outch2 {
type plug
slave.pcm {
type dshare
ipc_key 1111
slave pci-sc
bindings [ 1 ]
hint.description "PCI Sound Card output/playback channel 2 (from output port 2)"
}
}
pcm.inch2 {
type plug
slave.pcm {
type dsnoop
ipc_key 1111
slave pci-sc
bindings [ 1 ]
hint.description "PCI Sound Card input/capture channel 2 (from input port 2)"
}
}
pcm.outch3 {
type plug
slave.pcm {
type dshare
ipc_key 1111
slave pci-sc
bindings [ 2 ]
hint.description "PCI Sound Card output/playback channel 3 (from output port 3)"
}
}
pcm.inch3 {
type plug
slave.pcm {
type dsnoop
ipc_key 1111
slave pci-sc
bindings [ 2 ]
hint.description "PCI Sound Card input/capture channel 3 (from input port 3)"
}
}
pcm.outch4 {
type plug
slave.pcm {
type dshare
ipc_key 1111
slave pci-sc
bindings [ 3 ]
hint.description "PCI Sound Card output/playback channel 4 (from output port 4)"
}
}
pcm.inch4 {
type plug
slave.pcm {
type dsnoop
ipc_key 1111
slave pci-sc
bindings [ 3 ]
hint.description "PCI Sound Card input/capture channel 4 (from input port 4)"
}
}
pcm.outch5 {
type plug
slave.pcm {
type dshare
ipc_key 1111
slave pci-sc
bindings [ 4 ]
hint.description "PCI Sound Card output/playback channel 5 (from output port 5)"
}
}
pcm.inch5 {
type plug
slave.pcm {
type dsnoop
ipc_key 1111
slave pci-sc
bindings [ 4 ]
hint.description "PCI Sound Card input/capture channel 5 (from input port 5)"
}
}
pcm.outch6 {
type plug
slave.pcm {
type dshare
ipc_key 1111
slave pci-sc
bindings [ 5 ]
hint.description "PCI Sound Card output/playback channel 6 (from output port 6)"
}
}
pcm.inch6 {
type plug
slave.pcm {
type dsnoop
ipc_key 1111
slave pci-sc
bindings [ 5 ]
hint.description "PCI Sound Card input/capture channel 6 (from input port 6)"
}
}
pcm.outch7 {
type plug
slave.pcm {
type dshare
ipc_key 1111
slave pci-sc
bindings [ 6 ]
hint.description "PCI Sound Card output/playback channel 7 (from output port 7)"
}
}
pcm.inch7 {
type plug
slave.pcm {
type dsnoop
ipc_key 1111
slave pci-sc
bindings [ 6 ]
hint.description "PCI Sound Card input/capture channel 7 (from input port 7)"
}
}
pcm.outch8 {
type plug
slave.pcm {
type dshare
ipc_key 1111
slave pci-sc
bindings [ 7 ]
hint.description "PCI Sound Card output/playback channel 8 (from output port 8)"
}
}
pcm.inch8 {
type plug
slave.pcm {
type dsnoop
ipc_key 1111
slave pci-sc
bindings [ 7 ]
hint.description "PCI Sound Card input/capture channel 8 (from input port 8)"
}
}
这次又出现了同样的问题 - 录音设备或播放设备列表中只有,inch1
可用,但inch2
,不可用!以上对于 USB 声卡来说效果很好。我已经尝试和测试过。这不应该也适用于基于 PCI 的声卡吗?我应该注意哪些硬件依赖性?inch3
outch1
outch2
outch3
这里可能出了什么问题?如何解决这个问题?