免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 6090 | 回复: 15
打印 上一主题 下一主题

:em14: free bsd 5.3的问题.声卡驱动总是掉,求救高人 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-01-05 09:20 |只看该作者 |倒序浏览
free bsd 5.3的问题.声卡驱动总是掉,startx的时候,进如kde,欢迎音乐会响,但响2秒就没了,然后进去,听不到播mp3 的声音

以前装的5.1里没有问题,



Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004
    root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel Celeron (901.59-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>;
real memory  = 536805376 (511 MB)
avail memory = 515616768 (491 MB)
npx0: [FAST]
npx0: <math processor>; on motherboard
npx0: INT 16 interface
acpi0: <AMIINT >; on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz>; port 0x5008-0x500b on acpi0
cpu0: <ACPI CPU>; on acpi0
pcib0: <ACPI Host-PCI bridge>; port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus>; on pcib0
agp0: <VIA 82C691 (Apollo Pro) host to PCI bridge>; mem 0xe8000000-0xebffffff at device 0.0 on pci0
pcib1: <CI-PCI bridge>; at device 1.0 on pci0
pci1: <CI bus>; on pcib1
pci1: <display, VGA>; at device 0.0 (no driver attached)
isab0: <CI-ISA bridge>; at device 7.0 on pci0
isa0: <ISA bus>; on isab0
atapci0: <VIA 82C686B UDMA100 controller>; port 0xffa0-0xffaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
uhci0: <VIA 83C572 USB controller>; port 0xdc00-0xdc1f irq 10 at device 7.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: <VIA 83C572 USB controller>; on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ugen0: Z-Star Corp. PC Camera, rev 1.10/1.00, addr 2
pci0: <serial bus, SMBus>; at device 7.4 (no driver attached)
pcm0: <Creative CT5880-D>; port 0xd800-0xd83f irq 9 at device 12.0 on pci0
pcm0: <SigmaTel STAC9708/11 AC97 Codec>;
pcm0: [GIANT-LOCKED]

rl0: <RealTek 8139 10/100BaseTX>; port 0xd400-0xd4ff mem 0xdfffff00-0xdfffffff irq 5 at device 15.0 on pci0
miibus0: <MII bus>; on rl0
rlphy0: <RealTek internal media interface>; on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:0a:eb:22:20:31
rl1: <RealTek 8139 10/100BaseTX>; port 0xd000-0xd0ff mem 0xdffffe00-0xdffffeff irq 10 at device 17.0 on pci0
miibus1: <MII bus>; on rl1
rlphy1: <RealTek internal media interface>; on miibus1
rlphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl1: Ethernet address: 00:e0:4c:11:21:6c
acpi_button0: <Sleep Button>; on acpi0
atkbdc0: <Keyboard controller (i8042)>; port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard>; irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <S/2 Mouse>; irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
fdc0: <floppy drive controller>; port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0
fdc0: [FAST]
sio0: <16550A-compatible COM port>; port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio1: <16550A-compatible COM port>; port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0: <ECP parallel printer port>; port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <arallel port bus>; on ppc0
plip0: <LIP network interface>; on ppbus0
lpt0: <rinter>; on ppbus0
lpt0: Interrupt-driven port
ppi0: <arallel I/O>; on ppbus0
orm0: <ISA Option ROM>; at iomem 0xc0000-0xcbfff on isa0
pmtimer0 on isa0
sc0: <System console>; at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>;
vga0: <Generic ISA VGA>; at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 901591186 Hz quality 800
Timecounters tick every 10.000 msec
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
ad0: 114473MB <WDC WD1200BB-00GUA0/08.02D08>; [232581/16/63] at ata0-master UDMA100
acd0: CDRW <ATAPI CD-RW 48X24/DCED>; at ata1-master UDMA33
Mounting root from ufs:/dev/ad0s2a
link_elf: symbol makedev undefined
link_elf: symbol makedev undefined
link_elf: symbol makedev undefined
link_elf: symbol makedev undefined             

论坛徽章:
0
2 [报告]
发表于 2005-01-05 09:35 |只看该作者

:em14: free bsd 5.3的问题.声卡驱动总是掉,求救高人

device sound
device "snd_es137x"

曾经编译过内核

论坛徽章:
0
3 [报告]
发表于 2005-01-05 09:40 |只看该作者

:em14: free bsd 5.3的问题.声卡驱动总是掉,求救高人

pcm0: <Creative CT5880-D>; port 0xd800-0xd83f irq 9 at device 12.0 on pci0
pcm0: <SigmaTel STAC9708/11 AC97 Codec>;

你有两块声卡啊?Creative与AC'97的?两块卡有冲突。在bios中禁止掉一块试试。

论坛徽章:
0
4 [报告]
发表于 2005-01-05 09:43 |只看该作者

:em14: free bsd 5.3的问题.声卡驱动总是掉,求救高人

fs下在哪里调试中断冲突??我没安装独立的声卡,我是主板有的~~以前装5.1的时候没有出现过这样的问题

在win xp下的信息,请高手指点迷津
音频设备   Creative AudioPCI (ES1371,Es1373) (WDM)


详细信息    pci\ven_1274&eev_5880&subsys_390901462&rev_03\3&6AAA01&0&60

论坛徽章:
0
5 [报告]
发表于 2005-01-05 14:37 |只看该作者

:em14: free bsd 5.3的问题.声卡驱动总是掉,求救高人

statx后,可以听到不正常的1秒钟的音乐,但马上几断掉 ,reboot 后,startx就没一点声音
www# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <Creative CT5880-D>; at io 0xd800 irq 9 kld snd_es137x (1p/1r/0v channels duplex default)
www#
www# dmesg |grep pcm
pcm0: <Creative CT5880-D>; port 0xd800-0xd83f irq 9 at device 12.0 on pci0
pcm0: <SigmaTel STAC9708/11 AC97 Codec>;
pcm0: [GIANT-LOCKED]
www#

注:在5.1里正常没问题
问:
1、我应该加载那个 声卡驱动??现加载的 是snd_es137x.ko这个驱动

2、pcm是什么意思~!~要详细资料或者衔接


万分感谢回复的 高手们
声卡是板载Creative PCI 128,默认用snd_es137x的驱动没有声音,听说要打系统补丁

请告诉详细步骤说明

论坛徽章:
0
6 [报告]
发表于 2005-01-06 07:50 |只看该作者

:em14: free bsd 5.3的问题.声卡驱动总是掉,求救高人

你将板载声卡在BIOS中禁掉! 再看看dmesg!

论坛徽章:
0
7 [报告]
发表于 2005-01-06 10:56 |只看该作者

:em14: free bsd 5.3的问题.声卡驱动总是掉,求救高人

同志们呀~~我压根就没有独立声卡,就是板子上就一个集成的

微星的ms6309-nl100

论坛徽章:
0
8 [报告]
发表于 2005-01-06 11:45 |只看该作者

:em14: free bsd 5.3的问题.声卡驱动总是掉,求救高人

Setting Up the Sound Card
Contributed by Moses Moore. Enhanced for FreeBSD 5.X by Marc Fonvieille.
7.2.1 Configuring the System
Before you begin, you should know the model of the card you have, the chip it uses, and whether it is a PCI or ISA card. FreeBSD supports a wide variety of both PCI and ISA cards. Check the supported audio devices list of the Hardware Notes to see if your card is supported. This document will also mention which driver supports your card.

To use your sound device, you will need to load the proper device driver. This may be accomplished in one of two ways. The easiest way is to simply load a kernel module for your sound card with kldload( which can either be done from the command line:

# kldload snd_emu10k1
or by adding the appropriate line to the file /boot/loader.conf like this:

snd_emu10k1_load="YES"
These examples are for a Creative SoundBlaster&amp; Live! sound card. Other available loadable sound modules are listed in /boot/defaults/loader.conf. If you are not sure which driver to use, you may try to load the snd_driver module:

# kldload snd_driver
This is a metadriver loading the most common device drivers at once. This speeds up the search for the correct driver. It is also possible to load all sound drivers via the /boot/loader.conf facility.

Note: Under FreeBSD 4.X, to load all sound drivers, you have to load the snd module instead of snd_driver.

A second method is to statically compile in support for your sound card in your kernel. The section below provides the information you need to add support for your hardware in this manner. For more information about recompiling your kernel, please see Chapter 8.

7.2.1.1 Configuring a Custom Kernel with Sound Support
The first thing to do is adding the generic audio driver sound(4) to the kernel, for that you will need to add the following line to the kernel configuration file:

device sound
Under FreeBSD 4.X, you would use the following line:

device pcm
Then we have to add the support for our sound card. Therefore, we need to know which driver supports the card. Check the supported audio devices list of the Hardware Notes, to determine the correct driver for your sound card. For example, a Creative SoundBlaster Live! sound card is supported by the snd_emu10k1(4) driver. To add the support for this card, use the following:

device "snd_emu10k1"
Be sure to read the manual page of the driver for the syntax to use. Information regarding the syntax of sound drivers in the kernel configuration can also be found in the /usr/src/sys/conf/NOTES file (/usr/src/sys/i386/conf/LINT for FreeBSD 4.X).

Non-PnP ISA cards may require you to provide the kernel with information on the sound card settings (IRQ, I/O port, etc). This is done via the /boot/device.hints file. At system boot, the loader( will read this file and pass the settings to the kernel. For example, an old Creative SoundBlaster 16 ISA non-PnP card will use the snd_sbc(4) driver, with the following line added to the kernel configuration file:

device snd_sbc
as well as the following in /boot/device.hints:

hint.sbc.0.at="isa"
hint.sbc.0.port="0x220"
hint.sbc.0.irq="5"
hint.sbc.0.drq="1"
hint.sbc.0.flags="0x15"
In this case, the card uses the 0x220 I/O port and the IRQ 5.

The syntax used in the /boot/device.hints file is covered in the sound driver manual page. On FreeBSD 4.X, these settings are directly written in the kernel configuration file. In the case of our ISA card, we would only use this line:

device sbc0 at isa? port 0x220 irq 5 drq 1 flags 0x15
The settings shown above are the defaults. In some cases, you may need to change the IRQ or the other settings to match your card. See the snd_sbc(4) manual page for more information.

Note: Under FreeBSD 4.X, some systems with built-in motherboard sound devices may require the following option in the kernel configuration:

options PNPBIOS
7.2.2 Testing the Sound Card
After rebooting with the modified kernel, or after loading the required module, the sound card should appear in your system message buffer (dmesg() as something like:

pcm0: <Intel ICH3 (82801CA)>; port 0xdc80-0xdcbf,0xd800-0xd8ff irq 5 at device 31.5 on pci0
pcm0: [GIANT-LOCKED]
pcm0: <Cirrus Logic CS4205 AC97 Codec>;
The status of the sound card may be checked via the /dev/sndstat file:

# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <Intel ICH3 (82801CA)>; at io 0xd800, 0xdc80 irq 5 bufsz 16384
kld snd_ich (1p/2r/0v channels duplex default)
The output from your system may vary. If no pcm devices show up, go back and review what was done earlier. Go through your kernel configuration file again and make sure the correct device is chosen. Common problems are listed in Section 7.2.2.1.

If all goes well, you should now have a functioning sound card. If your CD-ROM or DVD-ROM drive is properly coupled to your sound card, you can put a CD in the drive and play it with cdcontrol(1):

% cdcontrol -f /dev/acd0 play 1
Various applications, such as audio/workman can provide a friendlier interface. You may want to install an application such as audio/mpg123 to listen to MP3 audio files. A quick way to test the card is sending data to the /dev/dsp, like this:

% cat filename >; /dev/dsp
where filename can be any file. This command line should produce some noise, confirming the sound card is actually working.

Note: FreeBSD 4.X users need to create the sound card device nodes before being able to use it. If the card showed up in message buffer as pcm0, you will have to run the following as root:

# cd /dev
# sh MAKEDEV snd0
If the card detection returned pcm1, follow the same steps as shown above, replacing snd0 with snd1.

MAKEDEV will create a group of device nodes that will be used by the different sound related applications.

Sound card mixer levels can be changed via the mixer( command. More details can be found in the mixer( manual page.

7.2.2.1 Common Problems
Error Solution
``unsupported subdevice XX'' One or more of the device nodes was not created correctly. Repeat the steps above.

``sb_dspwr(XX) timed out'' The I/O port is not set correctly.

``bad irq XX'' The IRQ is set incorrectly. Make sure that the set IRQ and the sound IRQ are the same.

``xxx: gus pcm not attached, out of memory'' There is not enough available memory to use the device.

``xxx: can't open /dev/dsp!'' Check with fstat | grep dsp if another application is holding the device open. Noteworthy troublemakers are esound and KDE's sound support.


7.2.3 Utilizing Multiple Sound Sources
Contributed by Munish Chopra.
It is often desirable to have multiple sources of sound that are able to play simultaneously, such as when esound or artsd do not support sharing of the sound device with a certain application.

FreeBSD lets you do this through Virtual Sound Channels, which can be set with the sysctl( facility. Virtual channels allow you to multiplex your sound card's playback channels by mixing sound in the kernel.

To set the number of virtual channels, there are two sysctl knobs which, if you are the root user, can be set like this:

# sysctl hw.snd.pcm0.vchans=4
# sysctl hw.snd.maxautovchans=4
The above example allocates four virtual channels, which is a practical number for everyday use. hw.snd.pcm0.vchans is the number of virtual channels pcm0 has, and is configurable once a device has been attached. hw.snd.maxautovchans is the number of virtual channels a new audio device is given when it is attached using kldload(. Since the pcm module can be loaded independently of the hardware drivers, hw.snd.maxautovchans can store how many virtual channels any devices which are attached later will be given.

If you are not using devfs(5), you will have to point your applications at /dev/dsp0.x, where x is 0 to 3 if hw.snd.pcm.0.vchans is set to 4 as in the above example. On a system using devfs(5), the above will automatically be allocated transparently to the user.

7.2.4 Setting Default Values for Mixer Channels
Contributed by Josef El-Rayes.
The default values for the different mixer channels are hardcoded in the sourcecode of the pcm(4) driver. There are a lot of different applications and daemons that allow you to set values for the mixer they remember and set each time they are started, but this is not a clean solution, we want to have default values at the driver level. This is accomplished by defining the appropriate values in /boot/device.hints. E.g.:

hint.pcm.0.vol="100"
This will set the volume channel to a default value of 100, as soon as the pcm(4) module gets loaded.

Note: Only FreeBSD 5.3 and above support this.

上面是handbook上说的, 你对着试过没!

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/sound-setup.html

论坛徽章:
0
9 [报告]
发表于 2005-01-06 11:48 |只看该作者

:em14: free bsd 5.3的问题.声卡驱动总是掉,求救高人

Audio Devices
Advance ( sbc(4) driver)

Asound 100 and 110

Logic ALS120 and ALS4000




CMedia sound chips

CMI8338/CMI8738




Crystal Semiconductor ( csa(4) driver)

CS461x/462x Audio Accelerator

CS428x Audio Controller




ENSONIQ ( pcm(4) driver)

AudioPCI ES1370/1371




The snd_ess(4) driver supports the following soundcards:

Ensoniq ESS ISA PnP/non-PnP

ESS

ES1868, ES1869, ES1879 and ES1888 ( sbc(4) driver)

Maestro-1, Maestro-2, and Maestro-2E

Maestro-3/Allegro

Note: The Maestro-3/Allegro cannot be compiled into the FreeBSD kernel due to licensing restrictions. To use this driver, add the following line to /boot/loader.conf:

snd_maestro3_load="YES"



ForteMedia fm801

Gravis ( gusc(4) driver)

UltraSound MAX

UltraSound PnP




Intel 443MX, 810, 815, and 815E integrated sound devices ( pcm(4) driver)

MSS/WSS Compatible DSPs ( pcm(4) driver)

NeoMagic 256AV/ZX ( pcm(4) driver)

OPTi 931/82C931 ( pcm(4) driver)

S3 Sonicvibes

Creative Technologies SoundBlaster series ( sbc(4) driver)

SoundBlaster

SoundBlaster Pro

SoundBlaster AWE-32

SoundBlaster AWE-64

SoundBlaster AWE-64 GOLD

SoundBlaster ViBRA-16




Creative Technologies Sound Blaster Live! series (emu10k1 driver)

Trident 4DWave DX/NX ( pcm(4) driver)

VIA Technologies VT82C686A

Yamaha

DS1

DS1e

论坛徽章:
0
10 [报告]
发表于 2005-01-07 20:43 |只看该作者

:em14: free bsd 5.3的问题.声卡驱动总是掉,求救高人

echo "snd_ens137x_load=YES">;>;/boot/loader.conf and reboot
if it did not work, try snd_ich drivers................
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP