Date: Mon, 30 Jun 2008 15:45:14 -0300 From: Gonzalo Nemmi <gnemmi@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: 7.0 No Sound: emu10k1 Message-ID: <200806301545.14143.gnemmi@gmail.com> In-Reply-To: <25ff90d60806301043x1fde10d4gf4fc798e49f12460@mail.gmail.com> References: <25ff90d60806301043x1fde10d4gf4fc798e49f12460@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Besides having loaded the "snd_emu10k1", have you made sure you have the "sound" driver loaded? In order to get any sound you need both of them loaded into the kernel .. the "sound" module loads the sound system .. and the "snd_xxx" just loads the right module for your sound card... so, basically, check you have both modules loaded ... This is how my sound config looks like on my kernel configuration: # Sound device sound device snd_emu10k1 # SoundBlaster Live! If you do have the "sound" module loaded, try unloading the "snd_emu10k1" and load the "snd_emu10kx" which seem to be the right module for Audigy cards. More info: man snd_emu10kx Hope this helped :) -- Blessings Gonzalo Nemmi On Monday 30 June 2008 14:43:11 David Horn wrote: > I'm hoping that someone can help me get my soundcard working properly > with FreeBSD 7.0. I have tried all of the suggestions in the > handbook, and am at a loss on next steps to diagnose. I am starting > to think that I am missing something very simple. > > Hardware: SoundBlaster Audigy 2 ZS (PCI bus) installed in Dell > Dimension 4100 (P3 1Ghz circa 2001, no internal sound card) > Software: FreeBSD 7.0p2 (GENERIC kernel updated using freebsd-update) > Driver: snd_emu10k1 (via loader.conf) > > I am not getting any error messages that indicate a problem. The > driver is loading and /dev/sndstat shows proper output. > > The issue is that I get absolutely no sound out of my soundcard. I > have tried using mpg123, and cat file >/dev/dsp without any output. > The mixer levels look good (to me), and I am getting no failure > messages. > > I have tested the speakers with another audio source (no issues), and > am about the try swapping the soundcard into a new machine (running a > different OS) to ensure that the card itself is not fried. > > Apologies for the long email, see detailed output below... > > Thanks in advance! > --Dave > > ====================================================================== > uname -a > > FreeBSD xxxxx-bsd.private.nullcore.com 7.0-RELEASE-p2 FreeBSD > 7.0-RELEASE-p2 #0: Wed Jun 18 07:33:20 UTC 2008 > root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 > ======================= > cat loader.conf > > snd_emu10k1_load="YES" > ======================= > sysctl -a |grep hw.snd > > hw.snd.latency_profile: 1 > hw.snd.latency: 5 > hw.snd.report_soft_formats: 1 > hw.snd.compat_linux_mmap: 0 > hw.snd.feeder_buffersize: 16384 > hw.snd.feeder_rate_round: 25 > hw.snd.feeder_rate_max: 2016000 > hw.snd.feeder_rate_min: 1 > hw.snd.verbose: 4 > hw.snd.maxautovchans: 16 > hw.snd.default_unit: 0 > hw.snd.version: 2007061600/i386 > hw.snd.default_auto: 0 > > sysctl -a |grep pcm > > dev.pcm.0.%desc: Creative Audigy (EMU10K2) > dev.pcm.0.%driver: pcm > dev.pcm.0.%location: slot=9 function=0 > dev.pcm.0.%pnpinfo: vendor=0x1102 device=0x0004 subvendor=0x1102 > subdevice=0x2005 class=0x040100 > dev.pcm.0.%parent: pci2 > dev.pcm.0.eapd: 1 > dev.pcm.0.play.vchans: 1 > dev.pcm.0.play.vchanrate: 48000 > dev.pcm.0.play.vchanformat: s16le > dev.pcm.0.rec.vchans: 1 > dev.pcm.0.rec.vchanrate: 48000 > dev.pcm.0.rec.vchanformat: s16le > dev.pcm.0.buffersize: 4096 > ========================= > dmesg |grep pcm > > pcm0: <Creative Audigy (EMU10K2)> port 0xdf00-0xdf3f irq 10 at device > 9.0 on pci2 > pcm0: <SigmaTel STAC9750/51 AC97 Codec> > pcm0: [ITHREAD] > > with hw.snd.verbose=4, dmesg shows the following after trying to play > an mp3 file for several seconds: > > sndbuf_remalloc(): b=0xc2883b00 0 -> 4096 [4096] > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2] > bs[4096/64/64] limit=4096 > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2] > bs[4096/64/64] limit=4096 > sndbuf_remalloc(): b=0xc2883b00 4096 [4096] NOCHANGE > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2] > bs[2048/64/32] limit=0 > sndbuf_remalloc(): b=0xc2883b00 4096 [2048] NOCHANGE > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=512 b[4096/128/2] > bs[4096/128/32] limit=4096 > pcm0: chn_trigger() pcm0:play:dsp0.p1: calling go=0xffffffff , > prev=0x00000000 chn_resizebuf: PCMDIR_PLAY (hardware) timeout=512 > b[4096/128/2] > bs[4096/128/32] limit=0 > sndbuf_remalloc(): b=0xc2883b00 4096 [4096] NOCHANGE > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2] > bs[4096/64/64] limit=4096 > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2] > bs[4096/64/64] limit=4096 > sndbuf_remalloc(): b=0xc2883b00 4096 [4096] NOCHANGE > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2] > bs[2048/64/32] limit=0 > sndbuf_remalloc(): b=0xc2883b00 4096 [2048] NOCHANGE > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=512 b[4096/128/2] > bs[4096/128/32] limit=4096 > sndbuf_remalloc(): b=0xc2883b00 4096 -> 8192 [8192] > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=256 b[4096/256/2] > bs[8192/256/32] limit=4096 > sndbuf_remalloc(): b=0xc2883b00 8192 -> 16384 [16384] > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=128 b[4096/512/2] > bs[16384/512/32] limit=4096 > sndbuf_remalloc(): b=0xc2883b00 16384 -> 65536 [65536] > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=23 b[4096/2048/2] > bs[65536/2048/32] limit=4096 > pcm0: chn_trigger() pcm0:play:dsp0.p1: calling go=0xffffffff , > prev=0x00000000 chn_resizebuf: PCMDIR_PLAY (hardware) timeout=23 > b[4096/2048/2] > bs[65536/2048/32] limit=0 > sndbuf_remalloc(): b=0xc2883b00 65536 [65536] NOCHANGE > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2] > bs[4096/64/64] limit=4096 > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2] > bs[4096/64/64] limit=4096 > sndbuf_remalloc(): b=0xc2883b00 65536 [4096] NOCHANGE > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2] > bs[2048/64/32] limit=0 > sndbuf_remalloc(): b=0xc2883b00 65536 [2048] NOCHANGE > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=512 b[4096/128/2] > bs[4096/128/32] limit=4096 > sndbuf_remalloc(): b=0xc2883b00 65536 [4096] NOCHANGE > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=256 b[4096/256/2] > bs[8192/256/32] limit=4096 > sndbuf_remalloc(): b=0xc2883b00 65536 [8192] NOCHANGE > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=128 b[4096/512/2] > bs[16384/512/32] limit=4096 > sndbuf_remalloc(): b=0xc2883b00 65536 [16384] NOCHANGE > chn_resizebuf: PCMDIR_PLAY (hardware) timeout=23 b[4096/2048/2] > bs[65536/2048/32] limit=4096 > chn_start: PCMDIR_PLAY (hardware) threshold i=16384 j=4 > chn_start: HW starting! (running) (ready=4096 force=0 i=16384 j=4 > intrtimeout=23 latency=23ms) > pcm0: chn_trigger() pcm0:play:dsp0.p1: calling go=0x00000001 , > prev=0x00000000 pcm0: chn_trigger() pcm0:play:dsp0.p1: calling > go=0xffffffff , prev=0x00000001 chn_resizebuf: PCMDIR_PLAY (hardware) > timeout=23 b[4096/2048/2] > bs[65536/2048/32] limit=0 > =============================== > cat /dev/sndstat (with hw.snd.verbose=4) > > FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) > Installed devices: > pcm0: <Creative Audigy (EMU10K2)> at io 0xdf00 irq 10 kld snd_emu10k1 > [MPSAFE] (8p:1v/2r:1v channels duplex default) > [pcm0:play:dsp0.p0]: spd 48000, fmt 0x10000010, flags > 0x00101000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 > [b:4096/2048/2|bs:4096/2048/2] > {userland} -> feeder_vchan(0x10000010) -> {hardware} > [pcm0:play:dsp0.p1]: spd 8000, fmt 0x00000008, flags > 0x00000000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 > [b:4096/128/2|bs:4096/128/32] {userland} -> feeder_root(0x00000008) -> > {hardware} > [pcm0:play:dsp0.p2]: spd 0, fmt 0x00000000/0x00000008, flags > 0x00000000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 [b:4096/2048/2|bs:0/0/0] > {userland} -> feeder_root(0x00000000) -> {hardware} > [pcm0:play:dsp0.p3]: spd 0, fmt 0x00000000/0x00000008, flags > 0x00000000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 [b:4096/2048/2|bs:0/0/0] > {userland} -> feeder_root(0x00000000) -> {hardware} > [pcm0:play:dsp0.p4]: spd 0, fmt 0x00000000/0x00000008, flags > 0x00000000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 [b:4096/2048/2|bs:0/0/0] > {userland} -> feeder_root(0x00000000) -> {hardware} > [pcm0:play:dsp0.p5]: spd 0, fmt 0x00000000/0x00000008, flags > 0x00000000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 [b:4096/2048/2|bs:0/0/0] > {userland} -> feeder_root(0x00000000) -> {hardware} > [pcm0:play:dsp0.p6]: spd 0, fmt 0x00000000/0x00000008, flags > 0x00000000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 [b:4096/2048/2|bs:0/0/0] > {userland} -> feeder_root(0x00000000) -> {hardware} > [pcm0:play:dsp0.p7]: spd 0, fmt 0x00000000/0x00000008, flags > 0x00000000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 [b:4096/2048/2|bs:0/0/0] > {userland} -> feeder_root(0x00000000) -> {hardware} > pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp0]: spd 0, fmt > 0x00000000/0x00000008, flags 0x10000000, 0x00000000 > interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0] > {userland} -> feeder_root(0x00000000) -> {hardware} > [pcm0:record:dsp0.r0]: spd 48000, fmt 0x10000010, flags > 0x00101000, 0x00000000 > interrupts 0, overruns 0, feed 0, hfree 4096, sfree 4096 > [b:4096/2048/2|bs:4096/2048/2] > {hardware} -> feeder_root(0x10000010) -> > feeder_vchan(0x10000010) -> {userland} > [pcm0:record:dsp0.r1]: spd 0, fmt 0x00000000/0x00000008, flags > 0x00000000, 0x00000000 > interrupts 0, overruns 0, feed 0, hfree 4096, sfree 0 > [b:4096/2048/2|bs:0/0/0] > {hardware} -> feeder_root(0x00000000) -> {userland} > pcm0:record:dsp0.r0[pcm0:virtual:dsp0.vr0]: spd 0, fmt > 0x00000000/0x00000008, flags 0x10000000, 0x00000000 > interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 > [b:0/0/0|bs:0/0/0] {hardware} -> feeder_root(0x00000000) -> {userland} > > File Versions: > $FreeBSD: src/sys/dev/sound/pci/emu10k1.c,v 1.69 2007/06/17 06:10:42 ariff > Exp $ $FreeBSD: src/sys/dev/sound/isa/sndbuf_dma.c,v 1.3 2005/01/06 > 01:43:17 imp Exp $ $FreeBSD: src/sys/dev/sound/pcm/vchan.c,v 1.36 > 2007/06/16 03:37:28 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/sound.c,v > 1.119 2007/06/17 19:02:05 ariff Exp $ $FreeBSD: > src/sys/dev/sound/pcm/sndstat.c,v 1.28 2007/06/16 03:37:28 ariff Exp $ > $FreeBSD: src/sys/dev/sound/pcm/mixer.c,v 1.61 2007/06/16 03:37:28 ariff > Exp $ $FreeBSD: src/sys/dev/sound/pcm/feeder_volume.c,v 1.6 2007/06/16 > 20:36:39 ariff Exp $ > $FreeBSD: src/sys/dev/sound/pcm/feeder_rate.c,v 1.23 2007/06/16 > 03:37:28 ariff Exp $ > $FreeBSD: src/sys/dev/sound/pcm/feeder_fmt.c,v 1.23 2007/06/02 > 13:07:44 joel Exp $ > $FreeBSD: src/sys/dev/sound/pcm/feeder.c,v 1.44 2007/06/17 15:53:11 ariff > Exp $ $FreeBSD: src/sys/dev/sound/pcm/fake.c,v 1.18 2007/03/15 18:19:01 > ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/dsp.c,v 1.107 2007/07/04 > 12:33:11 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/channel.c,v 1.121.2.1 > 2007/12/06 > 05:21:39 ariff Exp $ > $FreeBSD: src/sys/dev/sound/pcm/buffer.c,v 1.37 2007/06/16 03:37:27 ariff > Exp $ $FreeBSD: src/sys/dev/sound/pcm/ac97_patch.c,v 1.10.2.1 2007/10/29 > 18:47:27 ariff Exp $ > $FreeBSD: src/sys/dev/sound/pcm/ac97.c,v 1.73.2.1 2007/10/29 18:47:47 > ariff Exp $ > ====================== > pciconf output: > > pcm0@pci0:2:9:0: class=0x040100 card=0x20051102 chip=0x00041102 > rev=0x05 hdr=0x00 > vendor = 'Creative Technology LTD.' > device = 'Creative SB Audigy 2 ZS (WDM) Audigy Audio Processor' > class = multimedia > subclass = audio > > ======================== > mixer output: > > Mixer vol is currently set to 100:100 > Mixer pcm is currently set to 100:100 > Mixer speaker is currently set to 75:75 > Mixer line is currently set to 75:75 > Mixer mic is currently set to 50:50 > Mixer cd is currently set to 100:100 > Mixer rec is currently set to 50:50 > Mixer igain is currently set to 50:50 > Mixer ogain is currently set to 50:50 > Mixer line1 is currently set to 75:75 > Mixer phin is currently set to 50:50 > Mixer phout is currently set to 100:100 > Mixer video is currently set to 75:75 > Recording source: mic > ========================= > > Using cat /etc/resolv.conf >/dev/dsp produces nothing > Using mpg123 to play an mp3 produces nothing > Using speaker plug on sound card (green plug), also tried other plugs, > and -o switches with mpg123 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806301545.14143.gnemmi>