我通过链接使用命令显示的两张卡找到了一个解决方案(在我的情况下它有效):
~ $ cat / proc / asound / cards
0 [DWHDMI]: dw-hdmi-ahb-aud - DW-HDMI
DW-HDMI rev 0x0a, irq 22
1 [sgtl5000audio]: sgtl5000-audio - sgtl5000-audio
sgtl5000-audio
2 [tda1997xaudio]: tda1997x-audio - tda1997x-audio
tda1997x-audio
按照本指南:
https ://www.alsa-project.org/wiki/Asoundrc#Virtual_multi_channel_devices
我编辑了文件/etc/asound.conf
。我没有引用整个文件(它很长),而只引用了我修改的最后一部分:
...
pcm.!default{
type plug
route_policy "average"
slave.pcm "asymed"
}
ctl.!default{
type hw
card 0
}
ctl.mixer0{
type hw
card 0
}
变成了
...
pcm.!default{
type plug
route_policy "average"
slave.pcm "asymed"
}
ctl.mixer0{
type hw
card 0
}
pcm.primary{
type hw
card 0
device 0
}
ctl.primary {
type hw
card 0
}
pcm.secondary{
type hw
card 1
device 0
}
ctl.secondary {
type hw
card 1
}
pcm.multi {
type multi
slaves.a.pcm "primary"
slaves.a.channels 2
slaves.b.pcm "secondary"
slaves.b.channels 2
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
}