|
楼主 |
发表于 2012-2-12 09:33:28
|
显示全部楼层
一步一步地完善我的本本在debian6 squeeze testing wheezy的整体功能,今天又轮到声卡了,其实是驱动都已经安装上了,并且都是最新版,就是
不知道为什么会没声音响。只可以一步一步到查找及解决了。
其实,在列出声卡的时候,看到有两个:
首先查看声卡型号:
leung@debian:~$ lspci -nn | grep Audio
00:1b.0 Audio device [0403]: Intel Corporation 82801I (ICH9 Family) HD Audio Controller [8086:293e] (rev 03)
01:00.1 Audio device [0403]: ATI Technologies Inc RV710/730 HDMI Audio [Radeon HD 4000 series] [1002:aa38]
leung@debian:~$ cat /proc/asound/cards
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xf2600000 irq 49
1 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xf2110000 irq 50
29 [ThinkPadEC ]: ThinkPad EC - ThinkPad Console Audio Control
ThinkPad Console Audio Control at EC reg 0x30, fw 6JHT69WW-1.290000
查看声卡模块:
leung@debian:~$ lsmod | grep snd
snd_hda_codec_hdmi 26548 1
snd_hda_codec_realtek 272344 1
snd_hda_intel 26182 4
snd_hda_codec 72920 3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 13186 1 snd_hda_codec
snd_pcm 63744 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_seq 45093 0
snd_timer 22917 2 snd_pcm,snd_seq
snd_seq_device 13176 1 snd_seq
snd 52798 17 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_seq,thinkpad_acpi,snd_timer,snd_seq_device
soundcore 13065 1 snd
snd_page_alloc 13003 2 snd_hda_intel,snd_pcm
leung@debian:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC269 Analog [ALC269 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
从上面的数据可以看出,其实我的系统已经安装了相应的驱动了,一切已就备。
初始化驱动到默认状态
leung@debian:~$ sudo alsactl init
Found hardware: "HDA-Intel" "Realtek ALC269" "HDA:10ec0269,17aa212a,00100004" "0x17aa" "0x20f2"
Hardware is initialized using a generic method
到了这一步,实际上已经可以播放声音了。
停止alsa
leung@debian:~$ sudo /etc/init.d/alsa-utils stop
Shutting down ALSA...done.
leung@debian:~$ sudo alsa force-reload
Terminating processes: 7453.
Unloading ALSA sound driver modules: snd-seq snd-seq-device snd-hda-intel snd-hda-codec-hdmi snd-hda-codec-realtek snd-hda-codec snd-hwdep snd-pcm snd-timer snd-page-alloc.
Loading ALSA sound driver modules: snd-seq snd-seq-device snd-hda-intel snd-hda-codec-hdmi snd-hda-codec-realtek snd-hda-codec snd-hwdep snd-pcm snd-timer snd-page-alloc.
启动alsa
leung@debian:~$ sudo /etc/init.d/alsa-utils start
Setting up ALSA...warning: 'alsactl restore' failed with error message 'Found hardware: "HDA-Intel" "Realtek ALC269" "HDA:10ec0269,17aa212a,00100004" "0x17aa" "0x20f2"
Hardware is initialized using a generic method
再查看alsa状态:
leung@debian:~$ sudo cat /dev/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.24 emulation code)
Kernel: Linux debian 3.1.0-1-amd64 #1 SMP Sun Dec 11 20:36:41 UTC 2011 x86_64
Config options: 0
Installed drivers:
Type 10: ALSA emulation
Card config:
HDA Intel at 0xf2600000 irq 49
HDA ATI HDMI at 0xf2110000 irq 50
ThinkPad Console Audio Control at EC reg 0x30, fw 6JHT69WW-1.290000
Audio devices: NOT ENABLED IN CONFIG
Synth devices: NOT ENABLED IN CONFIG
Midi devices: NOT ENABLED IN CONFIG
Timers:
31: system timer
Mixers: NOT ENABLED IN CONFIG
似乎没有加载几个东西:
leung@debian:~$ sudo modprobe snd-pcm-oss
leung@debian:~$ cat /dev/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.24 emulation code)
Kernel: Linux debian 3.1.0-1-amd64 #1 SMP Sun Dec 11 20:36:41 UTC 2011 x86_64
Config options: 0
Installed drivers:
Type 10: ALSA emulation
Card config:
HDA Intel at 0xf2600000 irq 49
HDA ATI HDMI at 0xf2110000 irq 50
ThinkPad Console Audio Control at EC reg 0x30, fw 6JHT69WW-1.290000
Audio devices:
0: ALC269 Analog (DUPLEX)
Synth devices: NOT ENABLED IN CONFIG
Midi devices: NOT ENABLED IN CONFIG
Timers:
31: system timer
Mixers:
0: Realtek ALC269
1: ATI R6xx HDMI
29: ThinkPad EC 6JHT69WW-1.290000
再查看:
leung@debian:~$ lsmod | grep snd
snd_pcm_oss 41081 0
snd_mixer_oss 17916 1 snd_pcm_oss
snd_hda_codec_hdmi 26548 1
snd_hda_codec_realtek 272344 1
snd_hda_intel 26182 4
snd_hda_codec 72920 3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 13186 1 snd_hda_codec
snd_pcm 63744 5 snd_pcm_oss,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_seq 45093 0
snd_timer 22917 2 snd_pcm,snd_seq
snd_seq_device 13176 1 snd_seq
snd 52798 19 snd_pcm_oss,snd_mixer_oss,snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,thinkpad_acpi,snd_pcm,snd_seq,snd_timer,snd_seq_device
snd_page_alloc 13003 2 snd_hda_intel,snd_pcm
soundcore 13065 1 snd |
|