Hi. I sent this a few days ago and haven't received any response. Is
there anything I can do to get closer to this problem, or provide more
useful information to someone who might know what the problem is?
More info: if I do:
$ mixer pcm 100:100
$ echo "foo" > /dev/dsp
then I hear a loud pop. If I do:
$ mixer pcm 5:5
$ echo "foo" > /dev/dsp
then the pop is very soft.
Also, XMMS isn't hanging anymore. All I've changed is I've rebooted a
few times. When I try to play an mp3, it's progress thumb blinks. If I
drag the progress thumb to the middle of a song, it pops. But it won't
play.
Is there a way I can write a test program to see what is happening? What
man pages should I look at? The pcm and sbc man pages don't really say
anything, once you've got your device recognized.
Thanks,
Tim
----- Forwarded message from Thimble Smith <[EMAIL PROTECTED]> -----
Date: Thu, 10 Feb 2000 09:01:22 -0500
From: Thimble Smith <[EMAIL PROTECTED]>
Subject: sbc and ViBRA16X - dsp device not working
To: [EMAIL PROTECTED]
[ Long post, almost a narrative. Sorry. ]
Hi. A month ago I installed -current on a new computer, and the dsp
device didn't work. It reminded me of why I'd rather not be running
-current, so I dropped back to -stable and everything worked fine.
Now I saw that a release was coming up, so I wanted to see if the
problem was solved.
Last night I cvsup'd to current. My sound card is recognized fine:
$ dmesg | g '(sbc|pcm)'
sbc1: <Creative ViBRA16X> at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,3 on
isa0
sbc1: setting card to irq 5, drq 1, 3
pcm0: <SB DSP 4.16 (ViBRA16X)> on sbc1
$ tim@threads:~$ cat /dev/sndstat
FreeBSD Audio Driver (newpcm) Feb 10 2000 05:59:59
Installed devices:
pcm0: <SB DSP 4.16 (ViBRA16X)> at io 0x220 irq 5 drq 1:3 (1p/1r channels duplex)
I can listen to a CD through the sound card using cdcontrol, and use
mixer to adjust the volume. This is my first computer w/ a sound card,
so I don't know how to do much more than that.
The problem comes when trying to use the /dev/dsp device (which is the
only other thing I've tried). Xmms, for example, won't play - it opens
fine, and I can manipulate the play list, etc. But when I try to play
an mp3 file, it stops responding. Here's a before and after ps -axlww:
Before trying to play the mp3 file:
1001 3124 1 1 2 0 9068 5632 poll S p0 0:01.99 xmms
After:
1001 3124 1 0 2 0 10856 7356 poll S p0 0:02.68 xmms
I couldn't see anything weird with ps or top. But xmms will not respond
to any mouse events. A normal kill ends the program, though.
Another program I have that uses /dev/dsp is xgalaga (from the 3.4
release package). When it starts up, it says:
xgal.sndsrv: fragment set to 512
and ps -xw shows:
33248 p2 S+ 0:00.14 xgalaga
33249 p2 S+ 0:00.01 /usr/X11R6/lib/X11/xgalaga/xgal.sndsrv.freebsd
/usr/X11R6/lib/X11/xgalaga/sounds/ /dev/dsp
No sound is heard when I play the game, but otherwise game play is
normal. After I quit the game, the sndsrv program is still running:
33249 p2 S 0:00.08 /usr/X11R6/lib/X11/xgalaga/xgal.sndsrv.freebsd
/usr/X11R6/lib/X11/xgalaga/sounds/ /dev/dsp
After a normal kill, it quits after a few seconds.
These programs worked under -stable, using the pcm sound driver (didn't
need the sbc bridge there).
Last month when I tried it under -current, something very odd happened that
isn't happening now. After running something like
$ cat > /dev/dsp
a ps would show two instances of cat running; likewise if I ran xmms, it
would show two instances of xmms! And I'd have to send a -KILL signal to
get them to die.
I don't know how else to debug this. Right now if I do:
$ cat > /dev/dsp
foo
^D
I can hear a pop through my headphones. So something's there; but my
applications can't use it. I built the most recent port of xmms just
this morning, in case something was buggy there.
If this is not a bug, I'm very sorry to have wasted your time. If you
need me to try anything out, just let me know.
Thanks,
Tim
----- End forwarded message -----
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message