7.0 No Sound: emu10k1

2008-06-30 Thread David Horn
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 x-bsd.private.nullcore.com 7.0-RELEASE-p2 FreeBSD
7.0-RELEASE-p2 #0: Wed Jun 18 07:33:20 UTC 2008
[EMAIL PROTECTED]:/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=0x , prev=0x
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=0x , prev=0x
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]

Re: 7.0 No Sound: emu10k1

2008-06-30 Thread Gonzalo Nemmi
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 x-bsd.private.nullcore.com 7.0-RELEASE-p2 FreeBSD
 7.0-RELEASE-p2 #0: Wed Jun 18 07:33:20 UTC 2008
 [EMAIL PROTECTED]:/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=0x ,
 prev=0x 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) 

Re: 7.0 No Sound: emu10k1

2008-06-30 Thread David Horn
Thanks for the hint.   snd_emu10kx instead of snd_emu10k1 (doh!)

I knew it had to be something simple.  Everything is working great now.

--_Dave
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 7.0 No Sound: emu10k1

2008-06-30 Thread Gonzalo Nemmi
Glad to hear I helped you out and you solved your problem :)

-- 
Blessings
Gonzalo Nemmi

On Monday 30 June 2008 16:28:37 David Horn wrote:
 Thanks for the hint.   snd_emu10kx instead of snd_emu10k1 (doh!)

 I knew it had to be something simple.  Everything is working great now.

 --_Dave
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 7.0 No Sound: emu10k1

2008-06-30 Thread RW
On Mon, 30 Jun 2008 15:28:37 -0400
David Horn [EMAIL PROTECTED] wrote:

 Thanks for the hint.   snd_emu10kx instead of snd_emu10k1 (doh!)
 
 I knew it had to be something simple.  Everything is working great
 now.


For future reference there's an easy way to find the correct driver. 

You kldload snd_driver (which loads all sound drivers), start playing
some audio, and then kldunload snd_driver. kldstat will then show you
the driver that couldn't be unloaded because it's in use.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]