1.当“停止当前到alsa服务”:
2.当进入../alsa-driver-1.0.21 进行安装:yuezhao@phy-sdu-2007:~$ sudo /etc/init.d/alsa-utils stop
sudo: /etc/init.d/alsa-utils: command not found
yuezhao@phy-sdu-2007:~$ sudo /etc/init.d/alsasound stop
sudo: /etc/init.d/alsasound: command not found
$sudo make 后(config阶段似乎没有出现什么问题)
$sudo make install 后…………
make[1]: Entering directory `/usr/src/linux-headers-2.6.35-22-generic'
CC [M] /home/yuezhao/Downloads/alsa-driver-1.0.21/acore/hwdep.o
CC [M] /home/yuezhao/Downloads/alsa-driver-1.0.21/acore/memory_wrapper.o
CC [M] /home/yuezhao/Downloads/alsa-driver-1.0.21/acore/memalloc.o
CC [M] /home/yuezhao/Downloads/alsa-driver-1.0.21/acore/sgbuf.o
CC [M] /home/yuezhao/Downloads/alsa-driver-1.0.21/acore/pcm.o
CC [M] /home/yuezhao/Downloads/alsa-driver-1.0.21/acore/pcm_native.o
/home/yuezhao/Downloads/alsa-driver-1.0.21/acore/pcm_native.c: In function ‘snd_pcm_hw_params’:
/home/yuezhao/Downloads/alsa-driver-1.0.21/acore/pcm_native.c:455: error: implicit declaration of function ‘pm_qos_remove_requirement’
/home/yuezhao/Downloads/alsa-driver-1.0.21/acore/pcm_native.c:458: error: implicit declaration of function ‘pm_qos_add_requirement’
make[3]: *** [/home/yuezhao/Downloads/alsa-driver-1.0.21/acore/pcm_native.o] Error 1
make[2]: *** [/home/yuezhao/Downloads/alsa-driver-1.0.21/acore] Error 2
make[1]: *** [_module_/home/yuezhao/Downloads/alsa-driver-1.0.21] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic'
make: *** [compile] Error 2
另外lib 和 ultis 的安装似乎没有出现什么问题。yuezhao@phy-sdu-2007:~/Downloads/alsa-driver-1.0.21$ sudo make install
if [ -L /usr/include/sound ]; then \
rm -f /usr/include/sound; \
ln -sf /home/yuezhao/Downloads/alsa-driver-1.0.21/include/sound /usr/include/sound; \
else \
rm -rf /usr/include/sound; \
install -d -m 755 -g root -o root /usr/include/sound; \
for f in include/sound/*.h; do \
install -m 644 -g root -o root $f /usr/include/sound; \
done \
fi
find /lib/modules/2.6.35-22-generic/kernel/sound -name 'snd*.*o' | xargs rm -f
find /lib/modules/2.6.35-22-generic/kernel/sound -name 'snd*.*o.gz' | xargs rm -f
find /lib/modules/2.6.35-22-generic/kernel/sound -name 'ac97_bus.*o' | xargs rm -f
find /lib/modules/2.6.35-22-generic/kernel/sound -name 'ac97_bus.*o.gz' | xargs rm -f
make[1]: Entering directory `/home/yuezhao/Downloads/alsa-driver-1.0.21/acore'
mkdir -p /lib/modules/2.6.35-22-generic/kernel/sound/acore
cp snd-hwdep.ko snd-page-alloc.ko snd-pcm.ko snd-timer.ko snd.ko /lib/modules/2.6.35-22-generic/kernel/sound/acore
cp: cannot stat `snd-hwdep.ko': No such file or directory
cp: cannot stat `snd-page-alloc.ko': No such file or directory
cp: cannot stat `snd-pcm.ko': No such file or directory
cp: cannot stat `snd-timer.ko': No such file or directory
cp: cannot stat `snd.ko': No such file or directory
make[1]: *** [modules_install] Error 1
make[1]: Leaving directory `/home/yuezhao/Downloads/alsa-driver-1.0.21/acore'
make: *** [install-modules] Error 1
3.安装完成后,当在终端中运行pulsaaudio是出现一下错误
4.运行alsaconf时仍然不能找到声卡,并在终端中显示如下信息:yuezhao@phy-sdu-2007:~$ pulseaudio & pavucontrol
[1] 3084
E: socket-server.c: bind(): Address already in use
E: module.c: Failed to load module "module-esound-protocol-unix" (argument: ""): initialization failed.
E: main.c: Module load failed.
E: main.c: Failed to initialize daemon.
5.命令alsamixer失效,但次命令在刚装上系统时是有效的。yuezhao@phy-sdu-2007:~$ sudo alsaconf
[sudo] password for yuezhao:
ERROR: modinfo: could not open /lib/modules/2.6.35-22-generic/kernel/sound/core/snd.ko: No such file or directory
ERROR: modinfo: could not open /lib/modules/2.6.35-22-generic/kernel/sound/core/snd.ko: No such file or directory
ERROR: modinfo: could not open /lib/modules/2.6.35-22-generic/kernel/sound/core/snd.ko: No such file or directory
ERROR: modinfo: could not open /lib/modules/2.6.35-22-generic/kernel/sound/isa/snd-opl3sa2.ko: No such file or directory
ERROR: modinfo: could not open /lib/modules/2.6.35-22-generic/kernel/sound/isa/cs423x/snd-cs4236.ko: No such file or directory
ERROR: modinfo: could not find module snd-cs4232
ERROR: modinfo: could not open /lib/modules/2.6.35-22-generic/kernel/sound/isa/cs423x/snd-cs4231.ko: No such file or directory
ERROR: modinfo: could not open /lib/modules/2.6.35-22-generic/kernel/sound/isa/snd-es18xx.ko: No such file or directory
ERROR: modinfo: could not open /lib/modules/2.6.35-22-generic/kernel/sound/isa/es1688/snd-es1688.ko: No such file or directory
ERROR: modinfo: could not open /lib/modules/2.6.35-22-generic/kernel/sound/isa/sb/snd-sb16.ko: No such file or directory
ERROR: modinfo: could not open /lib/modules/2.6.35-22-generic/kernel/sound/isa/sb/snd-sb8.ko: No such file or directory
6.另外一些可能有用的信息在这里yuezhao@phy-sdu-2007:~$ alsamixer
cannot open mixer: No such file or directory
When $uname -a
When $aplay -lyuezhao@phy-sdu-2007:~$ uname -a
Linux phy-sdu-2007 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:36:48 UTC 2010 i686 GNU/Linux
When $cat/proc/asound/versionyuezhao@phy-sdu-2007:~$ aplay -l
aplay: device_list:223: no soundcards found...
When $head -n 1 /proc/asound/card*/codec#*yuezhao@phy-sdu-2007:~$ cat /proc/asound/version
cat: /proc/asound/version: No such file or directory
When $fuser -v /dev/dsp*/dev/snd/* /dev/seq*yuezhao@phy-sdu-2007:~$ head -n 1 /proc/asound/card*/codec#*
head: cannot open `/proc/asound/card*/codec#*' for reading: No such file or directory
When run speaker-testyuezhao@phy-sdu-2007:~$ sudo fuser -v /dev/dsp* /dev/snd/* /dev/seq*
[sudo] password for yuezhao:
Specified filename /dev/dsp* does not exist.
Specified filename /dev/snd/* does not exist.
Specified filename /dev/seq* does not exist.
When $dpkg -l | grep "alsa"yuezhao@phy-sdu-2007:~$ speaker-test -Dplughw:X,0 -c2
speaker-test 1.0.23
Playback device is plughw:X,0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
Playback open error: -19,No such device
7.下面是ALSA Information Scriptyuezhao@phy-sdu-2007:~$ dpkg -l | grep "alsa"
ii alsa-base 1.0.23+dfsg-1ubuntu4 ALSA driver configuration files
ii alsa-utils 1.0.23-2ubuntu3.4 Utilities for configuring and using ALSA
ii bluez-alsa 4.69-0ubuntu2 Bluetooth audio support
ii gnome-alsamixer 0.9.7~cvs.20060916.ds.1-2 ALSA sound mixer for GNOME
ii gstreamer0.10-alsa 0.10.30-2 GStreamer plugin for ALSA
另外,我在alsa-base.conf中尝试了好几个options...modules..都不管用(e.g. laptop, ideapad, lenevo -3000, laptop-eadp, auto, etc.)!!################################
!!ALSA Information Script v 0.4.59
!!################################
!!Script ran on: Fri Nov 5 15:24:08 UTC 2010
!!Linux Distribution
!!------------------
Ubuntu 10.10 \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 10.10"
!!DMI Information
!!---------------
Manufacturer: LENOVO
Product Name: 20005
!!Kernel Information
!!------------------
Kernel release: 2.6.35-22-generic
Operating System: GNU/Linux
Architecture: i686
Processor: unknown
SMP Enabled: Yes
!!ALSA Version
!!------------
Driver version:
Library version: 1.0.21a
Utilities version: 1.0.23
!!Loaded ALSA modules
!!-------------------
!!Sound Servers on this system
!!----------------------------
Pulseaudio:
Installed - Yes (/usr/bin/pulseaudio)
Running - Yes
ESound Daemon:
Installed - Yes (/usr/bin/esd)
Running - No
!!Soundcards recognised by ALSA
!!-----------------------------
!!PCI Soundcards installed in the system
!!--------------------------------------
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
!!Advanced information - PCI Vendor/Device/Susbsystem ID's
!!--------------------------------------------------------
00:1b.0 0403: 8086:293e (rev 03)
Subsystem: 17aa:3a0d
--
Prefetchable memory behind bridge: 0000000040200000-00000000403fffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort <SERR- <PERR-
!!Modprobe options (Sound related)
!!--------------------------------
snd-atiixp-modem: index=-2
snd-intel8x0m: index=-2
snd-via82xx-modem: index=-2
snd-usb-audio: index=-2
snd-usb-caiaq: index=-2
snd-usb-ua101: index=-2
snd-usb-us122l: index=-2
snd-usb-usx2y: index=-2
snd-cmipci: mpu_port=0x330 fm_port=0x388
snd-pcsp: index=-2
snd-hda-intel: index=0
snd-hda-intel: model=laptop-eapd
!!Loaded sound module options
!!--------------------------
!!ALSA Device nodes
!!-----------------
!!Aplay/Arecord output
!!------------
APLAY
aplay: device_list:235: no soundcards found...
ARECORD
arecord: device_list:235: no soundcards found...
!!Amixer output
!!-------------
!!Alsactl output
!!-------------
--startcollapse--
--endcollapse--
!!All Loaded Modules
!!------------------
Module
binfmt_misc
parport_pc
ppdev
nvidia
arc4
joydev
b43
uvcvideo
mac80211
videodev
v4l1_compat
psmouse
serio_raw
lp
parport
cfg80211
soundcore
uvesafb
usbhid
hid
video
firewire_ohci
sdhci_pci
intel_agp
output
ahci
libahci
firewire_core
crc_itu_t
sdhci
led_class
tg3
agpgart
ssb
!!ALSA/HDA dmesg
!!------------------
声卡的问题已经困扰我很长时间了,开始耳机和喇叭一起响的时候还可以看个电影什么到,(不能听音乐,宿舍到同学都厌恶我喜欢到那种音乐),只能抽段时间浏览一下网页了。不知哪位高人能热心帮助,不胜感激!