声卡安装请教
时间:2007-08-22
来源:互联网
(今天终于有时间按照大侠们的指点解决了问题。重新按照文档配置内核,编译系统,alsaconf就能识别声卡,但是不能发声。重新emerge一遍alsa-utils就一切OK了)
声卡安装后,alsaconf不能识别声卡。菜鸟可能只是在安装时出现一些没有意识到的错误,
请高手指正。
liudu@birch ~ $ uname -a
Linux birch 2.6.22-gentoo-r2 #1 SMP Sat Aug 18 18:28:56 CDT 2007 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux
liudu@birch ~ $ /usr/sbin/lspci | grep -i audio
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
liudu@birch ~ $ /usr/sbin/lspci -v
.....
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
Subsystem: Dell Unknown device 0151
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at ee00 [size=256]
I/O ports at edc0 [size=64]
Memory at feb7fa00 (32-bit, non-prefetchable) [size=512]
Memory at feb7f900 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>
.....
liudu@birch ~ $ grep -i CONFIG_SOUND /usr/src/linux/.config
CONFIG_SOUND=y
# CONFIG_SOUND_PRIME is not set
liudu@birch ~ $ grep -i CONFIG_SND /usr/src/linux/.config
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=m
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
# CONFIG_SND_DYNAMIC_MINORS is not set
CONFIG_SND_SUPPORT_OLD_API=y
......
cat /etc/modules.conf
...
# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
# Set this to the correct number of cards.
options snd cards_limit=1
...
cat /etc/modules.d/alsa
# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
...
cat /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="${CFLAGS}"
# This should not be changed unless you know exactly what you are doing. You
# should probably be using a different stage, instead.
CHOST="i686-pc-linux-gnu"
SYNV="rsync://rsync.gentoo.org/gentoo-portage"
USE="X gtk gnome qt3 qt4 kde dvd alsa cdr i810 truetype"
ACCEPT_KEYWORDS="~x86"
ls -al /dev/snd
total 0
drwxr-xr-x 2 root root 200 2007-08-20 04:15 .
drwxr-xr-x 16 root root 3940 2007-08-20 15:36 ..
crw-rw---- 1 root audio 116, 0 2007-08-20 04:15 controlC0
crw-rw---- 1 root audio 116, 24 2007-08-20 04:15 pcmC0D0c
crw-rw---- 1 root audio 116, 16 2007-08-20 04:15 pcmC0D0p
crw-rw---- 1 root audio 116, 25 2007-08-20 04:15 pcmC0D1c
crw-rw---- 1 root audio 116, 26 2007-08-20 04:15 pcmC0D2c
crw-rw---- 1 root audio 116, 27 2007-08-20 04:15 pcmC0D3c
crw-rw---- 1 root audio 116, 20 2007-08-20 04:15 pcmC0D4p
crw-rw---- 1 root audio 116, 33 2007-08-20 04:15 timer
ls -al /dev/sound
total 0
drwxr-xr-x 2 root root 120 2007-08-20 04:15 .
drwxr-xr-x 16 root root 3940 2007-08-20 15:36 ..
crw-rw---- 1 root audio 14, 12 2007-08-20 04:15 adsp
crw-rw---- 1 root audio 14, 4 2007-08-20 04:15 audio
crw-rw---- 1 root audio 14, 3 2007-08-20 04:15 dsp
crw-rw---- 1 root audio 14, 0 2007-08-20 04:15 mixer
dmesg
...
Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 2007 UTC).
ACPI: PCI Interrupt 0000:00:1f.5[b] -> GSI 17 (level, low) -> IRQ 18
PCI: Setting latency timer of device 0000:00:1f.5 to 64
...
ALSA device list:
#0: Intel ICH5 with AD1981B at irq 18
...
cat /proc/asound/cards
0 [ICH5 ]: ICH4 - Intel ICH5
Intel ICH5 with AD1981B at irq 18
声卡安装后,alsaconf不能识别声卡。菜鸟可能只是在安装时出现一些没有意识到的错误,
请高手指正。
liudu@birch ~ $ uname -a
Linux birch 2.6.22-gentoo-r2 #1 SMP Sat Aug 18 18:28:56 CDT 2007 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux
liudu@birch ~ $ /usr/sbin/lspci | grep -i audio
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
liudu@birch ~ $ /usr/sbin/lspci -v
.....
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
Subsystem: Dell Unknown device 0151
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at ee00 [size=256]
I/O ports at edc0 [size=64]
Memory at feb7fa00 (32-bit, non-prefetchable) [size=512]
Memory at feb7f900 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>
.....
liudu@birch ~ $ grep -i CONFIG_SOUND /usr/src/linux/.config
CONFIG_SOUND=y
# CONFIG_SOUND_PRIME is not set
liudu@birch ~ $ grep -i CONFIG_SND /usr/src/linux/.config
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=m
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
# CONFIG_SND_DYNAMIC_MINORS is not set
CONFIG_SND_SUPPORT_OLD_API=y
......
cat /etc/modules.conf
...
# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
# Set this to the correct number of cards.
options snd cards_limit=1
...
cat /etc/modules.d/alsa
# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
...
cat /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="${CFLAGS}"
# This should not be changed unless you know exactly what you are doing. You
# should probably be using a different stage, instead.
CHOST="i686-pc-linux-gnu"
SYNV="rsync://rsync.gentoo.org/gentoo-portage"
USE="X gtk gnome qt3 qt4 kde dvd alsa cdr i810 truetype"
ACCEPT_KEYWORDS="~x86"
ls -al /dev/snd
total 0
drwxr-xr-x 2 root root 200 2007-08-20 04:15 .
drwxr-xr-x 16 root root 3940 2007-08-20 15:36 ..
crw-rw---- 1 root audio 116, 0 2007-08-20 04:15 controlC0
crw-rw---- 1 root audio 116, 24 2007-08-20 04:15 pcmC0D0c
crw-rw---- 1 root audio 116, 16 2007-08-20 04:15 pcmC0D0p
crw-rw---- 1 root audio 116, 25 2007-08-20 04:15 pcmC0D1c
crw-rw---- 1 root audio 116, 26 2007-08-20 04:15 pcmC0D2c
crw-rw---- 1 root audio 116, 27 2007-08-20 04:15 pcmC0D3c
crw-rw---- 1 root audio 116, 20 2007-08-20 04:15 pcmC0D4p
crw-rw---- 1 root audio 116, 33 2007-08-20 04:15 timer
ls -al /dev/sound
total 0
drwxr-xr-x 2 root root 120 2007-08-20 04:15 .
drwxr-xr-x 16 root root 3940 2007-08-20 15:36 ..
crw-rw---- 1 root audio 14, 12 2007-08-20 04:15 adsp
crw-rw---- 1 root audio 14, 4 2007-08-20 04:15 audio
crw-rw---- 1 root audio 14, 3 2007-08-20 04:15 dsp
crw-rw---- 1 root audio 14, 0 2007-08-20 04:15 mixer
dmesg
...
Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 2007 UTC).
ACPI: PCI Interrupt 0000:00:1f.5[b] -> GSI 17 (level, low) -> IRQ 18
PCI: Setting latency timer of device 0000:00:1f.5 to 64
...
ALSA device list:
#0: Intel ICH5 with AD1981B at irq 18
...
cat /proc/asound/cards
0 [ICH5 ]: ICH4 - Intel ICH5
Intel ICH5 with AD1981B at irq 18
作者: sinnud 发布时间: 2007-08-22
编译的内核的时候严格按Gentoo Linux ALSA Guide设置选项:
我和声卡和你的一样,最开始我的内核选项也有错误,不过好在有声音,只是在音量控制里设备显示为:unknow oss mixer(大概是这样子),后来因为不能看网络电视所以才下决心搞定它,最后发现按Gentoo Linux ALSA Guide设置内核,一点都不费神。
good luck!
引用:
Device Drivers ---> Sound ---> (請啟動這個) <M> Sound card support (請確認 OSS 是關閉的) Open Sound System ---> < > Open Sound System (DEPRECATED) (回上一個選項,進入 ALSA 設定) Advanced Linux Sound Architecture ---> <M> Advanced Linux Sound Architecture (如果您想要 MIDI 合成器以及重新導向,請選取它) <M> Sequencer support (/dev/mixer* 以及 /dev/dsp* 的向下相容。建議啟用。) <M> OSS Mixer API <M> OSS PCM (digital audio) API (接下來是您想啟動支援的音效卡。基本上,您只會有一種裝置,而不是一堆。 如果您有兩張以上的音效卡,請在這裡統統選上。) (以下是測試以及開發用的選項,一般使用者不需要它。 除非您知道您在幹什麼,不然別選它們。) Generic devices ---> (ISA 音效卡選項) ISA devices ---> (若您有 Gravis 的卡,請選取這個選項。) <M> Gravis UltraSound Extreme (回到 PCI device 選單,大部分今日的音效卡都是 PCI 介面。) PCI devices ---> (現在為我們的卡選取 emu10k1 驅動程式) <M> Emu10k1 (SB Live!, Audigy, E-mu APS) (Intel 的卡會是...) <M> Intel/SiS/nVidia/AMD/ALi AC97 Controller (或是 VIA 的音效卡...) <M> VIA 82C686A/B, 8233/8235 AC97 Controller (若您使用 USB 音效卡,在這裡選取它們。) USB Devices ---> |
good luck!
作者: wangflove 发布时间: 2007-08-22
提醒兄弟一下,以后贴系统信息的时候用引用的,这样可以区分开来,好看一些,你这样一路贴下来,后面的人看的很费劲。:)
作者: wangflove 发布时间: 2007-08-22
http://www.kunxi.org/files/gentoo-cn/alsa-guide.html
先看看这个吧
尚未审校完毕,不过应该不会有太大问题
先看看这个吧
尚未审校完毕,不过应该不会有太大问题
作者: zhllg 发布时间: 2007-08-22
感谢wangflove和斑竹:-)的建议,菜鸟机器发声了。
作者: sinnud 发布时间: 2007-09-02
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28