|
|
(今天终于有时间按照大侠们的指点解决了问题。重新按照文档配置内核,编译系统,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
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 -> 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 |
|