7。04识别了声卡 喇叭显示正常 没声音的进来(仅针对intel声卡)
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 4
- 注册时间: 2007-08-26 2:54
-
- 帖子: 48
- 注册时间: 2007-09-08 19:01
这个贴好长。
根本不用自己下alsa的driver, lib和utils的。没有这么麻烦。
首先,用cat /proc/asound/version,可以看到你的内核所用的alsa的driver的版本。
我在Debian下,安装了官方提供的2.6.22-2-686的内核,输出是Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 2007 UTC),这就是说这个内核用了alsa1.0.14的最终版,比前面说的1.0.14rc4要新的。
所以,先安装新的内核。
然后,用alsamixer,看到第二行的chip,我的hda intel 的chip是Analog Devices AD1986A,然后看
zless /usr/share/doc/alsa-base/driver/ALSA-Configuration.txt.gz
然后找对应的chip的名字,如:
AD1986A
6stack 6-jack, separate surrounds (default)
3stack 3-stack, shared surrounds
laptop 2-channel only (FSC V2060, Samsung M50)
laptop-eapd 2-channel with EAPD (Samsung R65, ASUS A6J)
ultra 2-channel with EAPD (Samsung Ultra tablet PC)
然后,就是修改配置文件了。我在debian下是/etc/modprobe.d/sound,修改后是这样的:
# ALSA portion
# alias char-major-116 snd
alias snd-card-0 snd-hda-intel
# module options should go here
options snd-hda-intel index=0
options snd-hda-intel model=3stack
options snd-hda-intel position_fix=1
# options snd-hda-intel single_cmd=1
# options snd-hda-intel probe_mask=1
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
# 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
软件上的配置,要到alsa的官网上找,这是最根本的,参考:
http://bugtrack.alsa-project.org/main/i ... -hda-intel
注意那个.asoundrc
然后重启。
不同的chip,有不同的选择的。
根本不用自己下alsa的driver, lib和utils的。没有这么麻烦。
首先,用cat /proc/asound/version,可以看到你的内核所用的alsa的driver的版本。
我在Debian下,安装了官方提供的2.6.22-2-686的内核,输出是Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 2007 UTC),这就是说这个内核用了alsa1.0.14的最终版,比前面说的1.0.14rc4要新的。
所以,先安装新的内核。
然后,用alsamixer,看到第二行的chip,我的hda intel 的chip是Analog Devices AD1986A,然后看
zless /usr/share/doc/alsa-base/driver/ALSA-Configuration.txt.gz
然后找对应的chip的名字,如:
AD1986A
6stack 6-jack, separate surrounds (default)
3stack 3-stack, shared surrounds
laptop 2-channel only (FSC V2060, Samsung M50)
laptop-eapd 2-channel with EAPD (Samsung R65, ASUS A6J)
ultra 2-channel with EAPD (Samsung Ultra tablet PC)
然后,就是修改配置文件了。我在debian下是/etc/modprobe.d/sound,修改后是这样的:
# ALSA portion
# alias char-major-116 snd
alias snd-card-0 snd-hda-intel
# module options should go here
options snd-hda-intel index=0
options snd-hda-intel model=3stack
options snd-hda-intel position_fix=1
# options snd-hda-intel single_cmd=1
# options snd-hda-intel probe_mask=1
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
# 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
软件上的配置,要到alsa的官网上找,这是最根本的,参考:
http://bugtrack.alsa-project.org/main/i ... -hda-intel
注意那个.asoundrc
然后重启。
不同的chip,有不同的选择的。
-
- 帖子: 2
- 注册时间: 2007-09-14 13:14
- SecretZero
- 帖子: 1670
- 注册时间: 2007-08-30 5:39
-
- 帖子: 1
- 注册时间: 2007-09-23 19:20
谢谢楼主!!!!!!!!!!!
强烈谢谢楼主~顶~在你代码帮助下~我这个菜鸟总算让我的hp发音成功了~哈哈,再次谢谢楼主了啊!!!!!!!!!
-
- 帖子: 60
- 注册时间: 2007-09-24 22:28
终于有声音了,虽然音质是差了点。
昂达A69G。
方法如下:
1.
上www.alsa-project.org下载最新的driver
ftp://ftp.alsa-project.org/pub/drive....14rc4.tar.bz2
解压
sudo tar jxf alsa-driver-1.0.14rc4.tar.bz2
2.修改atiixp.c
cd ../alsa-driver-1.0.14rc4
sudo gedit alsa-kernel/pci/atiixp.c
在290行左右有一个结构,或者查找SB400
static struct pci_device_id snd_atiixp_ids[] = {
{ 0x1002, 0x4341, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB200 */
{ 0x1002, 0x4361, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB300 */
{ 0x1002, 0x4370, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB400 */
{ 0, }
};
加一行,成如下
static struct pci_device_id snd_atiixp_ids[] = {
{ 0x1002, 0x4341, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB200 */
{ 0x1002, 0x4361, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB300 */
{ 0x1002, 0x4370, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB400 */
{ 0x1002, 0x4382, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB600 */
{ 0, }
};
保存退出
3.
编译,安装
sudo ./configure && make && make install
4.
sudo modprobe snd-atiixp
完成安装,打开音量控制设置。
我只编译alsa-driver-1.0.14rc4,utilities我是make不了。但这样也能有声音。
昂达A69G。
方法如下:
1.
上www.alsa-project.org下载最新的driver
ftp://ftp.alsa-project.org/pub/drive....14rc4.tar.bz2
解压
sudo tar jxf alsa-driver-1.0.14rc4.tar.bz2
2.修改atiixp.c
cd ../alsa-driver-1.0.14rc4
sudo gedit alsa-kernel/pci/atiixp.c
在290行左右有一个结构,或者查找SB400
static struct pci_device_id snd_atiixp_ids[] = {
{ 0x1002, 0x4341, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB200 */
{ 0x1002, 0x4361, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB300 */
{ 0x1002, 0x4370, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB400 */
{ 0, }
};
加一行,成如下
static struct pci_device_id snd_atiixp_ids[] = {
{ 0x1002, 0x4341, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB200 */
{ 0x1002, 0x4361, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB300 */
{ 0x1002, 0x4370, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB400 */
{ 0x1002, 0x4382, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* SB600 */
{ 0, }
};
保存退出
3.
编译,安装
sudo ./configure && make && make install
4.
sudo modprobe snd-atiixp
完成安装,打开音量控制设置。
我只编译alsa-driver-1.0.14rc4,utilities我是make不了。但这样也能有声音。
-
- 帖子: 4
- 注册时间: 2007-10-03 16:44
-
- 帖子: 25
- 注册时间: 2007-08-04 21:33