LinuxSir.Org  
| 网站首页 | 注册账号 | 论坛帮助 |

欢迎来到LinuxSir.Org!
您还未登录,请登录后查看论坛,或者点击论坛上方的注册链接注册新账号。


发表新主题 回复
 
主题工具
旧 07-06-09, 16:31 第 1 帖
lophyxp 帅哥
 
lophyxp 的头像
 
 
注册会员  
  注册日期: Aug 2003
  我的住址: 在那桃花盛开的地方
  帖子: 335
  精华: 0
 

标题: 声卡驱动用snd-hda-intel模块的,不出声的给我进来。


首先,确定你的主板上的codecs芯片是什么。这没有什么好的办法。要么,你打开机箱自己看;要么,到windows下用everest软件,在“windows音频”里面可以看到。在linux下查看codecs芯片型号方法,我暂时没有找到。

然后,修改你的/etc/modprob.conf文件。
代码:
alias snd-card-0 snd-hda-intel
后面添加
代码:
options snd-hda-intel model=3stack-dig
其中红字部分,是codecs芯片的运行模式。codecs芯片支持的运行模式,到内核源代码中的/Documentation/sound/alsa/ALSA-Configuration.txt文件查找,一般每个codecs芯片会列出好几个支持的运行模式,一个一个试试就能找到适合自己主板的。

配置好以后,重启,就可以有声音了。
=============分隔线,路过- -===============
以下是$kernel/Documentation/sound/alsa/ALSA-Configuration.txt关于snd-hda-intel模块的有关说明。在此贴出来,大家不用费神自己找ALSA-Configuration.txt文件了。
代码:
Module snd-hda-intel -------------------- Module for Intel HD Audio (ICH6, ICH6M, ESB2, ICH7, ICH8), ATI SB450, SB600, RS600, VIA VT8251/VT8237A, SIS966, ULI M5461 model - force the model name position_fix - Fix DMA pointer (0 = auto, 1 = none, 2 = POSBUF, 3 = FIFO size) single_cmd - Use single immediate commands to communicate with codecs (for debugging only) enable_msi - Enable Message Signaled Interrupt (MSI) (default = off) This module supports one card and autoprobe. Each codec may have a model table for different configurations. If your machine isn't listed there, the default (usually minimal) configuration is set up. You can pass "model=" option to specify a certain model in such a case. There are different models depending on the codec chip. Model name Description ---------- ----------- ALC880 3stack 3-jack in back and a headphone out 3stack-digout 3-jack in back, a HP out and a SPDIF out 5stack 5-jack in back, 2-jack in front 5stack-digout 5-jack in back, 2-jack in front, a SPDIF out 6stack 6-jack in back, 2-jack in front 6stack-digout 6-jack with a SPDIF out w810 3-jack z71v 3-jack (HP shared SPDIF) asus 3-jack (ASUS Mobo) asus-w1v ASUS W1V asus-dig ASUS with SPDIF out asus-dig2 ASUS with SPDIF out (using GPIO2) uniwill 3-jack F1734 2-jack lg LG laptop (m1 express dual) lg-lw LG LW20/LW25 laptop tcl TCL S700 clevo Clevo laptops (m520G, m665n) test for testing/debugging purpose, almost all controls can be adjusted. Appearing only when compiled with $CONFIG_SND_DEBUG=y auto auto-config reading BIOS (default) ALC260 hp HP machines hp-3013 HP machines (3013-variant) fujitsu Fujitsu S7020 acer Acer TravelMate basic fixed pin assignment (old default model) auto auto-config reading BIOS (default) ALC262 fujitsu Fujitsu Laptop hp-bpc HP xw4400/6400/8400/9400 laptops benq Benq ED8 basic fixed pin assignment w/o SPDIF auto auto-config reading BIOS (default) ALC882/885 3stack-dig 3-jack with SPDIF I/O 6stck-dig 6-jack digital with SPDIF I/O arima Arima W820Di1 auto auto-config reading BIOS (default) ALC883/888 3stack-dig 3-jack with SPDIF I/O 6stack-dig 6-jack digital with SPDIF I/O 3stack-6ch 3-jack 6-channel 3stack-6ch-dig 3-jack 6-channel with SPDIF I/O 6stack-dig-demo 6-jack digital for Intel demo board acer Acer laptops (Travelmate 3012WTMi, Aspire 5600, etc) auto auto-config reading BIOS (default) ALC861/660 3stack 3-jack 3stack-dig 3-jack with SPDIF I/O 6stack-dig 6-jack with SPDIF I/O 3stack-660 3-jack (for ALC660) uniwill-m31 Uniwill M31 laptop auto auto-config reading BIOS (default) CMI9880 minimal 3-jack in back min_fp 3-jack in back, 2-jack in front full 6-jack in back, 2-jack in front full_dig 6-jack in back, 2-jack in front, SPDIF I/O allout 5-jack in back, 2-jack in front, SPDIF out auto auto-config reading BIOS (default) AD1981 basic 3-jack (default) hp HP nx6320 thinkpad Lenovo Thinkpad T60/X60/Z60 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) AD1988 6stack 6-jack 6stack-dig ditto with SPDIF 3stack 3-jack 3stack-dig ditto with SPDIF laptop 3-jack with hp-jack automute laptop-dig ditto with SPDIF auto auto-config reading BIOS (default) STAC9200/9205/9220/9221/9254 ref Reference board 3stack D945 3stack 5stack D945 5stack + SPDIF STAC9227/9228/9229/927x ref Reference board 3stack D965 3stack 5stack D965 5stack + SPDIF STAC9872 vaio Setup for VAIO FE550G/SZ110 vaio-ar Setup for VAIO AR If the default configuration doesn't work and one of the above matches with your device, report it together with the PCI subsystem ID (output of "lspci -nv") to ALSA BTS or alsa-devel ML (see the section "Links and Addresses"). Note 2: If you get click noises on output, try the module option position_fix=1 or 2. position_fix=1 will use the SD_LPIB register value without FIFO size correction as the current DMA pointer. position_fix=2 will make the driver to use the position buffer instead of reading SD_LPIB register. (Usually SD_LPLIB register is more accurate than the position buffer.) NB: If you get many "azx_get_response timeout" messages at loading, it's likely a problem of interrupts (e.g. ACPI irq routing). Try to boot with options like "pci=noacpi". Also, you can try "single_cmd=1" module option. This will switch the communication method between HDA controller and codecs to the single immediate commands instead of CORB/RIRB. Basically, the single command mode is provided only for BIOS, and you won't get unsolicited events, too. But, at least, this works independently from the irq. Remember this is a last resort, and should be avoided as much as possible... The power-management is supported.
附:关于如何阅读ALSA-Configuration.txt文件。
ALSA-Configuration.txt文件被分成了很多小节,每个小节看起来想这个样子。
代码:
ALC883/888 3stack-dig 3-jack with SPDIF I/O 6stack-dig 6-jack digital with SPDIF I/O 3stack-6ch 3-jack 6-channel 3stack-6ch-dig 3-jack 6-channel with SPDIF I/O 6stack-dig-demo 6-jack digital for Intel demo board acer Acer laptops (Travelmate 3012WTMi, Aspire 5600, etc) auto auto-config reading BIOS (default)
其中,第一行ALC883/888是codecs的名字;
下面每一行是一个该codecs支持的运行模式;
3stack-dig 3-jack with SPDIF I/O
其中红字部分是模式名字,是我们需要写道mode=后面的东西;绿色部分是对该模式的解释说明。

追加:关于“Realtek ALC883 在 F7 中自动有声了!”
我也发现,在安装F7的时候,对于使用snd-hda-intel驱动的声卡,在进行“首次运行配置(first boot)”的时候,侦测声卡可以出声,但是重启以后就没有声音了。不过,安装我的方法配置一遍,应该能就可以了。







__________________
KDE4 on gentoo,目前桌面特效enable,配合DRI2和GEM很棒。
编译内核,FAT文件系统的IOCHARSET, CODEPAGE一定要指定。
一般的IOCHARSET=cp936, CODEPAGE=936。

此帖于 07-06-25 13:22 被 lophyxp 编辑.
  lophyxp 当前离线   回复时引用此帖
旧 07-06-11, 10:55 第 2 帖
dfasdf34fsdf
 
 
 
注册会员  
  注册日期: Nov 2006
  帖子: 572
  精华: 0
 

Realtek ALC883 在 F7 中自动有声了!
  dfasdf34fsdf 当前离线   回复时引用此帖
旧 07-06-13, 13:50 第 3 帖
softer
 
 
 
注册会员  
  注册日期: Jul 2003
  帖子: 9
  精华: 0
 

太感谢了,终于出声了。
  softer 当前离线   回复时引用此帖
旧 07-06-14, 01:26 第 4 帖
jackyroo
 
jackyroo 的头像
 
 
注册会员  
  注册日期: May 2007
  帖子: 10
  精华: 0
 

太感谢啦,我都快哭了,费尽心思,终于把驱动装齐了
原来改过modprobe.conf后还要重启,汗........







__________________
系统 Fedora-7-RC2-X86_64
CPU 闪龙 2800+ AM2 64B
内存 宇瞻 512M DDR2 667
主板 昂达 A69T
显卡 ATI Radeon Xpress1200 Series (集成)
声卡 Realtek ALC861 HD Audio (集成)
网卡 RTL8168/8111 PCI-E Gigabit Ethernet NIC (集成)
硬盘 希捷 Barracuda 7200.10 160G
  jackyroo 当前离线   回复时引用此帖
旧 07-06-20, 16:11 第 5 帖
dfasdf34fsdf
 
 
 
注册会员  
  注册日期: Nov 2006
  帖子: 572
  精华: 0
 

我测试了一下,ALC 883 FC6 无效!
  dfasdf34fsdf 当前离线   回复时引用此帖
旧 07-07-15, 14:47 第 6 帖
mascot
 
mascot 的头像
 
 
注册会员  
  注册日期: Nov 2004
  我的住址: 懒人岛
  帖子: 308
  精华: 0
 

系统:Gentoo
声卡芯片: Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2)
从楼主贴出的文档来看,叫hda的声卡(High Definition Audio)分好几种:intel, ati, via, sis, nvidia,其中nvidia的比较特别,alsa直到版本1.0.13rc3才开始支持这种声卡,而linux内核直到2.6.19才开始支持这种声卡,在2.6.19的Changelog上面我找到了相关的说明,即增添了mcp61的pci id. 我在最新内核的源码中也看到了两行相关的代码。按理说,应该可以驱动的,但我没有成功,alsamixer页面显示我的声卡芯片的codec是Realtek alc880,但主板上芯片上写的是alc860,但在内核的alsa文档中目前还没有alc860的记录(我的内核版本是最新的2.6.22), alc880的选项我逐一试了,即modprobe snd_hda_intel 后面加上model参数,一个个试,不好使.

--------------------------------------------------

补充:
我在Debian中搞定了alsa驱动:
到alsa站点下载最新版 alsa-driver-1.0.14rc2.tar.bz2 (不用内核自带的), 直接编译 ./configure && make && make install , 安装中没有加任何model参数。

此帖于 07-07-22 16:49 被 mascot 编辑.
  mascot 当前离线   回复时引用此帖
旧 07-08-13, 20:52 第 7 帖
Second
 
Second 的头像
 
 
注册会员  
  注册日期: Apr 2003
  帖子: 232
  精华: 0
 

多谢楼主。
我用的系统是gentoo。







__________________
推荐使用Debian和Gentoo。
#*****************************#
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r8 i686)
=================================================================
System uname: 2.6.23-gentoo-r8 i686 AMD Athlon(tm) 64 Processor 3000+
  Second 当前离线   回复时引用此帖
旧 07-08-14, 18:42 第 8 帖
tablea
 
 
 
注册会员  
  注册日期: Jul 2007
  帖子: 45
  精华: 0
 

呵呵,我说怎么这么狂,原来真有本事。
  tablea 当前离线   回复时引用此帖
旧 07-08-15, 21:24 第 9 帖
amalcao 帅哥
 
amalcao 的头像
 
 
注册会员  
  注册日期: Nov 2006
  帖子: 12
  精华: 0
 

查不到codecs芯片怎么办?
  amalcao 当前离线   回复时引用此帖
发表新主题 回复


主题工具

发帖规则
您 [不可以] 发表新主题
您 [不可以] 回复主题
您 [不可以] 上传附件
您 [不可以] 编辑您的帖子

已 [启用] BB 代码
已 [启用] 表情符号
已 [禁用] IMG 代码
已 [禁用] HTML 代码
[论坛跳转…]


所有时间均为[北京时间]。现在的时间是 13:43


Powered by vBulletin 版本 3.6.8
版权所有 ©2000 - 2010, Jelsoft Enterprises Ltd.
官方中文技术支持: vBulletin 中文
版权所有 ©2002 - 2009, LinuxSir.Org