LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: rr19xx

声卡驱动ALSA安装指南-第三版=》03年06月08日更新

[复制链接]
发表于 2004-5-13 13:58:08 | 显示全部楼层
alsa1.0.4 。调大音量后很好。

每次启动后音量都变为 静音,怎么回事?
rcconf 中alsasound已选中;
试过删除/etc/asound.state,重启后运行alsamixer,  alsactl store 。
原来还装有aumix,删除了,是不是不能有两个音量控制?

怎么才能重启加载上次设定的音量?
:help
发表于 2004-5-16 16:43:41 | 显示全部楼层

kernel2.6.6我的声卡死活装不上,已经3天了,help!TKS

我的声卡死活装不上,已经3天了,救救我呀!

用modconf出的错

Installing module snd-ad1816a. If the device isn't there, or isn't configured correctly, this could cause your system to pause for up to a minute.

FATAL: Error inserting snd_ad1816a (/lib/modules/2.6.6-mywin4lin/kernel/sound/isa/ad1816a/snd-ad1816a.ko): No such device

Installation failed.



但是 snd_ad1816a_lib 却成功了,当然不能用,为什么呢?kernel 2.4我没有见到这个模块呀?
我传递的参数和win下一样的 0220-022f,05

我编译进去了,而且这三天都在干这事情

最开始找不到AD1816的声卡,后来发现isapnp没有选中,选中后发现模块向我的驱动传递的参数为0:000. 我担心分配DMA等错,所以又编译成模块。Alsa不能用,我又编译进去OSS,一样问题。
为什么呀?
我现在的boot时候启动的仍然是说无法为它分配资源。
下面是启动的信息。

Linux version 2.6.6-mywin4lin (root@zc-deb.edu.cn) (gcc version 3.3.3 (Debian 20040401)) #3 Sun May 16 00:00:23 HKT 2004
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000007ff0000 (usable)
BIOS-e820: 0000000007ff0000 - 0000000007ff3000 (ACPI NVS)
BIOS-e820: 0000000007ff3000 - 0000000008000000 (ACPI data)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
127MB LOWMEM available.
On node 0 totalpages: 32752
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 28656 pages, LIFO batch:6
HighMem zone: 0 pages, LIFO batch:1
DMI 2.3 present.
ACPI disabled because your bios is from 2000 and too old
You can enable it with acpi=force
Built 1 zonelists
Kernel command line: BOOT_IMAGE=win4lin root=308
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
PID hash table entries: 512 (order 9: 4096 bytes)
Detected 1031.179 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Memory: 125896k/131008k available (2125k kernel code, 4556k reserved, 984k data, 184k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 2039.80 BogoMIPS
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 0383fbff 00000000 00000000 00000000
CPU: After vendor identify, caps: 0383fbff 00000000 00000000 00000000
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 128K
CPU: After all inits, caps: 0383fbff 00000000 00000000 00000040
CPU: Intel Celeron (Coppermine) stepping 06
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 1030.0766 MHz.
..... host bus clock speed is 103.0076 MHz.
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfb390, last bus=1
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20040326
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: the driver 'system' has been registered
PnPBIOS: Scanning system for PnP BIOS support...
PnPBIOS: Found PnP BIOS installation structure at 0xc00fbfb0
PnPBIOS: PnP BIOS version 1.0, entry 0xf0000:0xbfd8, dseg 0xf0000
pnp: match found with the PnP device '00:07' and the driver 'system'
pnp: match found with the PnP device '00:08' and the driver 'system'
pnp: match found with the PnP device '00:0b' and the driver 'system'
pnp: 00:0b: ioport range 0x208-0x20f has been reserved
PnPBIOS: 16 nodes reported by PnP BIOS; 16 recorded by driver
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router PIIX/ICH [8086/7110] at 0000:00:07.0
vga16fb: initializing
vga16fb: mapped to 0xc8800000
fb0: VGA16 VGA frame buffer device
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Limiting direct PCI/PCI transfers.
isapnp: Scanning for PnP cards... <<<<<<<<<<<<<<<<<
isapnp: checksum for device 1 is not valid (0x41)<<<<<<<<<<<<<
isapnp: Card 'AC-5618 Sound Modem Combo'<<<<<<<<<<<<<<<<
isapnp: 1 Plug & Play card detected total <<<<<<<<<<<<<<<<<
Real Time Clock Driver v1.12
Using anticipatory io scheduler
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Compaq SMART2 Driver (v 2.6.0)
Compaq CISS Driver (v 2.6.2)
ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
http://www.scyld.com/network/ne2k-pci.html
PCI: Found IRQ 11 for device 0000:00:0d.0
eth0: RealTek RTL-8029 found at 0xe400, IRQ 11, 00:90:FE:10:72:62.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 0000:00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hdaMA, hdbio
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdcMA, hddMA
hda: WDC WD400BB-00BSA0, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: 50X CD-ROM, ATAPI CD/DVD-ROM drive
hdd: CD-RW IDE4816, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 78165360 sectors (40020 MB) w/2048KiB Cache, CHS=65535/16/63
hda: hda1 hda2 < hda5 hda6 hda7 hda8 > hda3 hda4
hdc: ATAPI 50X CD-ROM drive, 128kB Cache
Uniform CD-ROM driver Revision: 3.20
hdd: ATAPI 8X CD-ROM CD-R/RW drive, 2048kB Cache
ide-floppy driver 0.99.newide
mice: PS/2 mouse device common for all mice
serio: i8042 AUX port at 0x60,0x64 irq 12
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
NET: Registered protocol family 1
NET: Registered protocol family 17
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 184k freed
Adding 329324k swap on /dev/hda4. Priority:-1 extents:1
EXT3 FS on hda8, internal journal
ad1816: AD1816 sounddriver Copyright (C) 1998-2003 by Thorsten Knabe and others <<<<<<<<<<<
pnp: Unable to assign resources to device 01:01.00. <<<<<<<<<<<<<<<<<<<
ad1816: Failed to activate PnP device</font>
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.


我的/etc/modules.conf
### This file is automatically generated by update-modules"
#
# Please do not edit this file directly. If you want to change or add
# anything please take a look at the files in /etc/modutils and read
# the manpage for update-modules.
#
### update-modules: start processing /etc/modutils/0keep
# DO NOT MODIFY THIS FILE!
# This file is not marked as conffile to make sure if you upgrade modutils
# it will be restored in case some modifications have been made.
#
# The keep command is necessary to prevent insmod and friends from ignoring
# the builtin defaults of a path-statement is encountered. Until all other
# packages use the new `add path'-statement this keep-statement is essential
# to keep your system working
keep

### update-modules: end processing /etc/modutils/0keep

### update-modules: start processing /etc/modutils/actions
# Special actions that are needed for some modules

# The BTTV module does not load the tuner module automatically,
# so do that in here
post-install bttv insmod tuner
post-remove bttv rmmod tuner


### update-modules: end processing /etc/modutils/actions

### update-modules: start processing /etc/modutils/ad1816
#options ad1816 0388-038b,07

### update-modules: end processing /etc/modutils/ad1816

### update-modules: start processing /etc/modutils/aliases
# Aliases to tell insmod/modprobe which modules to use

# Uncomment the network protocols you don't want loaded:
# alias net-pf-1 off # Unix
# alias net-pf-2 off # IPv4
# alias net-pf-3 off # Amateur Radio AX.25
# alias net-pf-4 off # IPX
# alias net-pf-5 off # DDP / appletalk
# alias net-pf-6 off # Amateur Radio NET/ROM
# alias net-pf-9 off # X.25
# alias net-pf-10 off # IPv6
# alias net-pf-11 off # ROSE / Amateur Radio X.25 PLP
# alias net-pf-19 off # Acorn Econet

alias char-major-10-175 agpgart
alias char-major-10-200 tun
alias char-major-81 bttv
alias char-major-108 ppp_generic
alias /dev/ppp ppp_generic
alias tty-ldisc-3 ppp_async
alias tty-ldisc-14 ppp_synctty
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate

# Crypto modules (see http://www.kerneli.org/)
alias loop-xfer-gen-0 loop_gen
alias loop-xfer-3 loop_fish2
alias loop-xfer-gen-10 loop_gen
alias cipher-2 des
alias cipher-3 fish2
alias cipher-4 blowfish
alias cipher-6 idea
alias cipher-7 serp6f
alias cipher-8 mars6
alias cipher-11 rc62
alias cipher-15 dfc2
alias cipher-16 rijndael
alias cipher-17 rc5


### update-modules: end processing /etc/modutils/aliases

### update-modules: start processing /etc/modutils/alsa
### DEBCONF MAGIC
# This file was automatically generated by alsa-base's debconf stuff

alias char-major-116 snd
alias char-major-14 soundcore

options snd major=116 cards_limit=4

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/dsp* snd-pcm-oss

alias snd-card-0 snd-ad1816a

alias snd-slot-0 snd-card-0
alias sound-slot-0 snd-slot-0

### update-modules: end processing /etc/modutils/alsa

### update-modules: start processing /etc/modutils/apm
alias char-major-10-134 apm
alias /dev/apm_bios /dev/misc/apm_bios
alias /dev/misc/apm_bios apm

### update-modules: end processing /etc/modutils/apm

### update-modules: start processing /etc/modutils/evms
alias block-major-117 dm-mod

### update-modules: end processing /etc/modutils/evms

### update-modules: start processing /etc/modutils/paths
# This file contains a list of paths that modprobe should scan,
# beside the ones that are compiled into the modutils tools
# themselves.


### update-modules: end processing /etc/modutils/paths

### update-modules: start processing /etc/modutils/ppp
alias /dev/ppp ppp_generic
alias char-major-108 ppp_generic
alias tty-ldisc-3 ppp_async
alias tty-ldisc-14 ppp_synctty
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate

### update-modules: end processing /etc/modutils/ppp

### update-modules: start processing /etc/modutils/setserial
#
# This is what I wanted to do, but logger is in /usr/bin, which isn't loaded
# when the module is first loaded into the kernel at boot time!
#
#post-install serial /etc/init.d/setserial start | logger -p daemon.info -t "setserial-module reload"
#pre-remove serial /etc/init.d/setserial stop | logger -p daemon.info -t "setserial-module uload"
#
alias /dev/tts serial
alias /dev/tts/0 serial
alias /dev/tts/1 serial
alias /dev/tts/2 serial
alias /dev/tts/3 serial
post-install serial /etc/init.d/setserial modload > /dev/null 2> /dev/null
pre-remove serial /etc/init.d/setserial modsave > /dev/null 2> /dev/null

### update-modules: end processing /etc/modutils/setserial

### update-modules: start processing /etc/modutils/snd-ad1816a
options snd-ad1816a 0220-022f,05

### update-modules: end processing /etc/modutils/snd-ad1816a

### update-modules: start processing /etc/modutils/snd-ad1816a-lib
options snd-ad1816a-lib 0220-022f,05

### update-modules: end processing /etc/modutils/snd-ad1816a-lib

### update-modules: start processing /etc/modutils/arch/i386
alias parport_lowlevel parport_pc
alias char-major-10-144 nvram
alias binfmt-0064 binfmt_aout
alias char-major-10-135 rtc

### update-modules: end processing /etc/modutils/arch/i386
发表于 2004-5-17 17:21:14 | 显示全部楼层
我是硬盘安装redhat9,系统上没有没有找到源码包,在下载回来的iso文件中也没有找到一个100多M的类似linux-2.x.x.x的文件,而网上找到内核包linux-2.4.20.tar.bz2只有20多M。到底是哪个?
 楼主| 发表于 2004-5-19 13:50:44 | 显示全部楼层

回复 basangzi

源码包的rpm包在redhat9第二张光盘上。类似linux-2.x.x.x-source的rpm文件。详情可回顾本帖之前的回帖记录。
发表于 2004-5-19 14:02:02 | 显示全部楼层
alsa1.0.4 。调大音量后很好。

每次启动后音量都变为 静音,怎么回事?
rcconf 中alsasound已选中;
试过删除/etc/asound.state,重启后运行alsamixer, alsactl store 。
原来还装有aumix,删除了,是不是不能有两个音量控制?

怎么才能重启加载上次设定的音量?


可以帮俺看看么?
 楼主| 发表于 2004-5-19 14:21:53 | 显示全部楼层
alsactl store是保存当前alsa驱动音量配置。
执行:alsactl restore则可加载保存的音量配置。
我对debian不熟,你可以把该命令添加至/etc/rc.local或其它开机时系统会读取的脚本文件中。

可以有两个音量控制,只是如果使用alsa驱动,建议应用alsa混音器以获得最详细的设置。
发表于 2004-5-25 03:12:22 | 显示全部楼层

我的声卡是Realtek AC97 Audio,用这方法不行

装完后倒是监测到声卡了,监测到的型号为82801EB AC'97 Audio,可是测试时还是没有声音。还有,每次打开终端总有
cp: stat‘/root/.xmms/config’失败: 没有那个文件或目录
bash: /root/.xmms/config.tmp: 没有那个文件或目录
mv: can't stat source /root/.xmms/config.tmp
bash: /root/.xmms/config.tmp: 没有那个文件或目录
mv: can't stat source /root/.xmms/config.tmp
bash: /root/.xmms/config: 没有那个文件或目录
[root@localhost root]#

请问如何解决?谢谢!!
发表于 2004-5-27 08:44:24 | 显示全部楼层

回复: 我的声卡是Realtek AC97 Audio,用这方法不行

最初由 pengchao95 发表
装完后倒是监测到声卡了,监测到的型号为82801EB AC'97 Audio,可是测试时还是没有声音。还有,每次打开终端总有
cp: stat‘/root/.xmms/config’失败: 没有那个文件或目录
bash: /root/.xmms/config.tmp: 没有那个文件或目录
mv: can't stat source /root/.xmms/config.tmp
bash: /root/.xmms/config.tmp: 没有那个文件或目录
mv: can't stat source /root/.xmms/config.tmp
bash: /root/.xmms/config: 没有那个文件或目录
[root@localhost root]#

请问如何解决?谢谢!!


得安装一下xmms的mp3的插件才行。
感觉用的是fedora core 2呢。。。

要不就自己下载一个xmms源码包来编译一下,试试看。
发表于 2004-5-27 10:57:58 | 显示全部楼层

如何更新声卡驱动?

我原来装的是 0.9.4 现在想是一下0.9.8 原来的那个如何去掉?还是直接装?realtek ac'97  audio应该用那一个?我看最新的是1.0.5  可用吗?请南北兄指教?我用得是 radhat 9.0 主板是intel 865pe
发表于 2004-5-29 12:22:32 | 显示全部楼层

大侠们请帮帮忙

俺用的是RedHat 9.0,主板Intel 865PE,AC97声卡
从网上下了0.9.4,然后按楼主所讲,从安装盘#2上找到了一个名为kernel-2.4.20-8.src.rpm的软件包,安装后\usr\redhat\source出现了一大堆的源码文件,其中有一个文件是linux-2.4.20.tar.bz2,解压后正好是名为linux-2.4.20的一个文件夹,139M,俺将它拷贝到/usr/src/下。
然后俺把0.9.4的安装文件解压后按其说明运行了./configure,可是它出现了如下提示:
[root@wxp alsa-driver-0.9.4]# ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /root/drivers/alsa-driver-0.9.4
checking cross compile...
checking for directory with kernel source... /lib/modules/2.4.20-8/build
checking for kernel version... The file /lib/modules/2.4.20-8/build/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).

英文俺还是懂一些的,俺看出来是有个文件没找到了,可是不知道为什么会找不到,还请哪位大侠指点一下,是不是哪个步骤出了问题,还是有别的原因?

如果上面的资料您觉得不够,可以说一声,比如把某个文件的内容发上来什么的,小弟在此先谢了~!!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表