我的主板是939NF4G-SATA2內置聲卡,Nforce4 410 controller, Realtek ALC850 AC97 codec.我沒有裝Nvidia提供的OSS 聲卡驅動(NFORCE-Linux-x86_64-1.0-0310-pkg1.run),而是安裝alsa-XXX-1.0.10.Linux Aplay不能播放並出現錯誤。
開始時/proc/asound/cards始終 --no soundcards--.後來我在alsa-driver-1.0.10/sound/pci/intel8x0.c中加上 "{0x10de,0x026b,PCI_ANY_ID,0,0,DEVICE_NFORCE},"後,重新編譯。現在終於可以檢測到聲卡了。用systen-config-soundcard可以發出聲音。
但用Linux Aplay播放時出現如下錯誤:
[root@localhost ~]# aplay /usr/lib/openoffice.org2.0/share/gallery/sounds/space3.wav ALSA lib conf.c:2841:(snd_config_hook_load) cannot access file /etc/alsa/cards/aliases.conf ALSA lib pcm.c:1969:(snd_pcm_open_conf) Invalid type for PCM default definition (id: default, value: cards.pcm.default) aplay: main:544: audio open error: Invalid argument 用xmms播放也提示有問題,不能播放。
感覺Linux Aplay還有哪兒配置沒有作出相應修改。(/etc/alsa/???)
我用alsaconf配置過。也沒有作用。
以下是Linux Aplay問題解決代碼
[root@localhost ~]# cat /proc/asound/cards 0 [ICH ]: NFORCE - Intel ICH Intel ICH with ALC850 at 0xfebdc000, irq 209 lspci -v ouput: 00:10.2 Multimedia audio controller: nVidia Corporation MCP51 AC97 Audio Control ler (rev a2) Subsystem: ASRock Incorporation: Unknown device 0850 Flags: bus master, 66Mhz, fast devsel, latency 0, IRQ 209 I/O ports at d800 [size=256] I/O ports at d400 [size=256] Memory at febdc000 (32-bit, non-prefetchable) [size=4K] Capabilities: [44] Power Management version 2