FreeBSD,没有声音

FreeBSD,没有声音

我的扬声器似乎无法在 FreeBSD 10.2-RELEASE 下工作。所有驱动程序均使用加载kldload snd_driver。该怎么办?

pciconf-lv:

hostb0@pci0:0:0:0: class=0x060000 card=0x50001458 chip=0x27708086 rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82945G/GZ/P/PL Memory Controller Hub'
class = bridge
subclass = HOST-PCI
pcib1@pci0:0:1:0: class=0x060400 card=0x50001458 chip=0x27718086 rev=0x02 hdr=0x01
vendor = 'Intel Corporation'
device = '82945G/GZ/P/PL PCI Express Root Port'
class = bridge
subclass = PCI-PCI
hdac1@pci0:0:27:0: class=0x040300 card=0xa0021458 chip=0x27d88086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = 'NM10/ICH7 Family High Definition Audio Controller'
class = multimedia
subclass = HDA
uhci0@pci0:0:29:0: class=0x0c0300 card=0x50041458 chip=0x27c88086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = 'NM10/ICH7 Family USB UHCI Controller'
class = serial bus
subclass = USB
uhci1@pci0:0:29:1: class=0x0c0300 card=0x50041458 chip=0x27c98086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = 'NM10/ICH7 Family USB UHCI Controller'
class = serial bus
subclass = USB
uhci2@pci0:0:29:2: class=0x0c0300 card=0x50041458 chip=0x27ca8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = 'NM10/ICH7 Family USB UHCI Controller'
class = serial bus
subclass = USB
uhci3@pci0:0:29:3: class=0x0c0300 card=0x50041458 chip=0x27cb8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = 'NM10/ICH7 Family USB UHCI Controller'
class = serial bus
subclass = USB
ehci0@pci0:0:29:7: class=0x0c0320 card=0x50061458 chip=0x27cc8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = 'NM10/ICH7 Family USB2 EHCI Controller'
class = serial bus
subclass = USB
pcib2@pci0:0:30:0: class=0x060401 card=0x50001458 chip=0x244e8086 rev=0xe1 hdr=0x01
vendor = 'Intel Corporation'
device = '82801 PCI Bridge'
class = bridge
subclass = PCI-PCI
isab0@pci0:0:31:0: class=0x060100 card=0x50011458 chip=0x27b88086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801GB/GR (ICH7 Family) LPC Interface Bridge'
class = bridge
subclass = PCI-ISA
atapci0@pci0:0:31:2: class=0x010180 card=0xb0021458 chip=0x27c08086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = 'NM10/ICH7 Family SATA Controller [IDE mode]'
class = mass storage
subclass = ATA
none0@pci0:0:31:3: class=0x0c0500 card=0x50011458 chip=0x27da8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = 'NM10/ICH7 Family SMBus Controller'
class = serial bus
subclass = SMBus
vgapci0@pci0:1:0:0: class=0x030000 card=0x35251458 chip=0x0a6510de rev=0xa2 hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'GT218 [GeForce 210]'
class = display
subclass = VGA
hdac0@pci0:1:0:1: class=0x040300 card=0x35251458 chip=0x0be310de rev=0xa1 hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'High Definition Audio Controller'
class = multimedia
subclass = HDA
re0@pci0:2:5:0: class=0x020000 card=0xe0001458 chip=0x816710ec rev=0x10 hdr=0x00
vendor = 'Realtek Semiconductor Co., Ltd.'
device = 'RTL-8110SC/8169SC Gigabit Ethernet'
class = network
subclass = ethernet

dmesg | grep PCM:

pcm0: <NVIDIA GT21x (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm1: <NVIDIA GT21x (HDMI/DP 8ch)> at nid 5 on hdaa1
pcm2: <NVIDIA GT21x (HDMI/DP 8ch)> at nid 5 on hdaa2
pcm3: <NVIDIA GT21x (HDMI/DP 8ch)> at nid 5 on hdaa3
pcm4: <Realtek ALC888 (Rear Analog 7.1/2.0)> at nid 20,22,21,23 and 24,26 on hdaa4
pcm5: <Realtek ALC888 (Front Analog)> at nid 27 and 25 on hdaa4
pcm6: <Realtek ALC888 (Rear Digital)> at nid 30 and 31 on hdaa4
pcm7: <USB audio> on uaudio0

请帮忙! :)

答案1

系统可能默认使用您的 nVidia 卡的声音。

通过查看您显示的列表来更改默认设备。假设您想要输出到前面板上的插孔;你需要pcm5那个。

将此行添加到/etc/sysctl.conf

hw.snd.default_unit=5  

(5 是pcm5数字部分)。然后做:

service sysctl restart

相关内容