From owner-freebsd-questions@FreeBSD.ORG Mon Jun 30 18:09:15 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF7DE106564A for ; Mon, 30 Jun 2008 18:09:15 +0000 (UTC) (envelope-from dhorn2000@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mx1.freebsd.org (Postfix) with ESMTP id 6808D8FC1E for ; Mon, 30 Jun 2008 18:09:15 +0000 (UTC) (envelope-from dhorn2000@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so13266yxb.13 for ; Mon, 30 Jun 2008 11:09:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=krOl9Kqi1mS0qr/PbQ9qP3JJoFu1WbKy8hsFemo4WzQ=; b=hj8i2pBnMHli/NKonLxXa0FIIFMncuDwdKog6i5aQoSABTkw5EQXK6Y+D/CG+qJS8v HI2D5nX4lde9QcchRQ1jxcqQELaMEd/FWUVU2OH/OrCkCohiLyUMto8UMZiZKyZvRa2i 4096P7Dv7DthbluKyqaaA09Hco3GCTkWwEvR0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=ki5AnGL79DFc9eI7oKncXulBhGOeSnx6y6bWU4kHkFdldKJ8PfMGYdoWMYq9BLdbS7 pvMdp0Ir9ik0OFDN2dNOszW5EJgJyCAeT5yRgoOPLH8dngstPtBD2n1NE/bxfuX81WR0 Z9HV9eIKccPEuETlO+I7u6qXZY8ppZyOKklmY= Received: by 10.150.12.3 with SMTP id 3mr8858102ybl.18.1214847791539; Mon, 30 Jun 2008 10:43:11 -0700 (PDT) Received: by 10.150.181.10 with HTTP; Mon, 30 Jun 2008 10:43:11 -0700 (PDT) Message-ID: <25ff90d60806301043x1fde10d4gf4fc798e49f12460@mail.gmail.com> Date: Mon, 30 Jun 2008 13:43:11 -0400 From: "David Horn" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 7.0 No Sound: emu10k1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2008 18:09:15 -0000 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: port 0xdf00-0xdf3f irq 10 at device 9.0 on pci2 pcm0: 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: 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