Skip site navigation (1)Skip section navigation (2)
Date:      05 Nov 2000 12:26:43 +0100
From:      Eric Masson <e-masson@kisoft-services.com>
To:        j mckitrick <jcm@FreeBSD-uk.eu.org>
Cc:        stable@FreeBSD.ORG, multimedia@FreeBSD.ORG
Subject:   Re: continuing sound problems with 4.2-beta
Message-ID:  <86em0qzmks.fsf@notbsdems.nantes.kisoft-services.com>
In-Reply-To: <20001104234358.A48459@dogma.freebsd-uk.eu.org>
References:  <20001104234358.A48459@dogma.freebsd-uk.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "JMK" == j mckitrick <jcm@FreeBSD-uk.eu.org> writes:

    JMK> I continue to get 'invalid argument' when using 'play' to play a
    JMK> .wav file.  Maybe I am doing something wrong, but I can't figure
    JMK> out what it is.

    JMK> local:~> cat /dev/sndstat FreeBSD Audio Driver (newpcm) Nov 1 2000
    JMK> 18:37:22 Installed devices: pcm0: <OPL3-SAx (YMF719)> at io 0x530
    JMK> irq 5 drq 1 (1p/1r channels) local:~>

    JMK> dmesg: pcm0: <OPL3-SAx (YMF719)> at port 0x530-0x537,0x538-0x539
    JMK> irq 5 drq 1 flags 0xc100 on isa0

    JMK> local:~> uname -a FreeBSD myname.my.domain 4.2-BETA FreeBSD
    JMK> 4.2-BETA #14: Sat Nov 4 15:59:36 EST 2000
    JMK> jcm@myname.my.domain:/usr/src/sys/compile/MERCURY i386 local:~>

One more problem with newpcm (Sorry Cameron).

uname -a
FreeBSD notbsdems.nantes.kisoft-services.com 4.2-BETA FreeBSD 4.2-BETA #0:
Sun Nov  5 01:34:13 CET 2000
emss@notbsdems.nantes.kisoft-services.com:/usr/obj/usr/src/sys/THINKPAD  i386

dmesg
pcm0: <CS4231> at port 0x530-0x537,0x538-0x539 irq 5 drq 0 flags 0xa111 on isa0

cat /dev/sndstat
FreeBSD Audio Driver (newpcm) Nov  5 2000 01:32:49
Installed devices:
pcm0: <CS4231> at io 0x530 irq 5 drq 0:1 (1p/1r channels duplex)

Symptoms:

Running X11 or not

When I try to cat to /dev/dsp a small *.au of the following list, I get no
sound, the smallest file that gets played is yeep.au :

ll /usr/local/lib/xemacs/xemacs-packages/etc/sounds/
total 148
-rw-r--r--  1 root  wheel    462 Oct  7  1998 README.au
-rw-r--r--  1 root  wheel   2407 Oct  7  1998 bark.au
-rw-r--r--  1 root  wheel   2804 Oct  7  1998 bass-snap.au
-rw-r--r--  1 root  wheel   2511 Oct  7  1998 boing.au
-rw-r--r--  1 root  wheel  12494 Oct  7  1998 bong.au
-rw-r--r--  1 root  wheel   1263 Oct  7  1998 click.au
-rw-r--r--  1 root  wheel   8439 Oct  7  1998 clink.au
-rw-r--r--  1 root  wheel   6400 Oct  7  1998 cuckoo.au
-rw-r--r--  1 root  wheel   2566 Oct  7  1998 ding.au
-rw-r--r--  1 root  wheel    759 Oct  7  1998 drip.au
-rw-r--r--  1 root  wheel    528 Oct  7  1998 drum-beep.au
-rw-r--r--  1 root  wheel   4358 Oct  7  1998 hammer.au
-rw-r--r--  1 root  wheel  13200 Oct  7  1998 hype.au
-rw-r--r--  1 root  wheel  29381 Oct  7  1998 im_so_happy.au
-rw-r--r--  1 root  wheel   5120 Oct  7  1998 long-beep.au
-rw-r--r--  1 root  wheel   5003 Oct  7  1998 low-smash.au
-rw-r--r--  1 root  wheel   7848 Oct  7  1998 mellowbweep.au
-rw-r--r--  1 root  wheel   1644 Oct  7  1998 monkey.au
-rw-r--r--  1 root  wheel   3474 Oct  7  1998 piano-beep.au
-rw-r--r--  1 root  wheel    578 Oct  7  1998 quiet-beep.au
-rw-r--r--  1 root  wheel   6558 Oct  7  1998 return.au
-rw-r--r--  1 root  wheel   4032 Oct  7  1998 say-beep.au
-rw-r--r--  1 root  wheel   3018 Oct  7  1998 slap.au
-rw-r--r--  1 root  wheel   5227 Oct  7  1998 the-ping.au
-rw-r--r--  1 root  wheel   7111 Oct  7  1998 whip.au
-rw-r--r--  1 root  wheel   2286 Oct  7  1998 yeep.au

So I try to play a bunch of these files by issueing the following
cat *.au > /dev/dsp
When X isn't started, all files get played (crappy sound, lots of statics),
if the command is issued under X, I get sound then the following :

Nov  5 12:06:58 notbsdems /kernel: 
Nov  5 12:06:58 notbsdems /kernel: 
Nov  5 12:06:58 notbsdems /kernel: Fatal trap 12: page fault while in kernel mode
Nov  5 12:06:58 notbsdems /kernel: fault virtual address	= 0xc0ee0000
Nov  5 12:06:58 notbsdems /kernel: fault code		= supervisor write, page not present
Nov  5 12:06:58 notbsdems /kernel: instruction pointer	= 0x8:0xc01e6c18
Nov  5 12:06:58 notbsdems /kernel: stack pointer	        = 0x10:0xc785ece4
Nov  5 12:06:58 notbsdems /kernel: frame pointer	        = 0x10:0xc785ecec
Nov  5 12:06:59 notbsdems /kernel: code segment		= base 0x0, limit 0xfffff, type 0x1b
Nov  5 12:06:59 notbsdems /kernel: = DPL 0, pres 1, def32 1, gran 1
Nov  5 12:06:59 notbsdems /kernel: processor eflags	= interrupt enabled, resume, IOPL = 0
Nov  5 12:06:59 notbsdems /kernel: current process		= 523 (cat)
Nov  5 12:06:59 notbsdems /kernel: interrupt mask		= tty 
Nov  5 12:06:59 notbsdems /kernel: trap number		= 12
Nov  5 12:06:59 notbsdems /kernel: panic: page fault
Nov  5 12:06:59 notbsdems /kernel: 

TIA

Eric Masson
-- 
Progress (n) : What led from smart users in front of dumb terminals to
dumb users in front of smart terminals.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86em0qzmks.fsf>