Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Oct 1998 09:40:43 -0600
From:      Zach Heilig <zach@gaffaneys.com>
To:        Joao Carlos Mendes Luis <jonny@jonny.eng.br>, multimedia@FreeBSD.ORG
Subject:   Re: timidity, pcm, sb16, dma, etc.
Message-ID:  <19981029094043.A20322@znh.org>
In-Reply-To: <199810282019.SAA00609@roma.coe.ufrj.br>; from Joao Carlos Mendes Luis on Wed, Oct 28, 1998 at 06:19:54PM -0200
References:  <199810282019.SAA00609@roma.coe.ufrj.br>

next in thread | previous in thread | raw e-mail | index | archive | help

--OXfL5xGRrasGEqWY
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

On Wed, Oct 28, 1998 at 06:19:54PM -0200, Joao Carlos Mendes Luis wrote:
>   I've just installed a SB16 into a FreeBSD server, and trying to play
> some music.  .au with cat > /dev/audio and .mp3 with kmpg are just
> fine.  timidity plays ok, but generates lots of kernel logs:

> Oct 28 18:14:10 roma /kernel: sorry, read DMA channel unavailable
> Oct 28 18:14:10 roma last message repeated 3 times
> Oct 28 18:14:10 roma /kernel: WARNING: rdintr but read DMA inactive!
> Oct 28 18:14:21 roma last message repeated 80 times

The "fix" (not really, but nobody seems to have time to fix it right) for that
is attached (file is /usr/src/sys/i386/isa/snd/sb_dsp.c).

>   BTW: Is this below really necessary ?  It annoys so much being
> broadcast to every terminal.  And please don't tell me to change my
> syslog.conf.

This tells me that you run as root all the time... That is a bad idea.  I had
the exact same problem as you, but didn't notice it until I happened to look
at vty0 a few minutes after running the offending app.  I also leave vty0
completely alone:
(/etc/ttys)
ttyv0	"/usr/libexec/getty Pc"		cons25	off secure
so messages don't get lost (or become annoying).

-- 
Zach Heilig <zach@gaffaneys.com>
If it looks like a duck, and quacks like a duck, we have to at least consider
the possibility that we have a small aquatic bird of the family Anatidę on
our hands (Douglas Adams -- Dirk Gently's Holistic Detective Agency)

--OXfL5xGRrasGEqWY
Content-Type: text/plain; charset=us-ascii
Content-Description: Patch for sb_dsp.c
Content-Disposition: attachment; filename=diff

Index: sb_dsp.c
===================================================================
RCS file: /home/ncvs/src/sys/i386/isa/snd/sb_dsp.c,v
retrieving revision 1.12
diff -u -r1.12 sb_dsp.c
--- sb_dsp.c	1998/10/08 20:55:54	1.12
+++ sb_dsp.c	1998/10/29 15:34:12
@@ -332,10 +332,12 @@
     if ( reason & 2 ) {
 	if ( d->dbuf_in.dl )
 	    dsp_rdintr(d);
+#if 0 /* a 'mostly harmless' message? */
 	else {
 	    if (PLAIN_SB16(d->bd_flags))
 	       printf("WARNING: rdintr but read DMA inactive!\n");
 	}
+#endif
     }
     if ( c & 2 )
 	inb(DSP_DATA_AVL16); /* 16-bit int ack */
@@ -418,6 +420,7 @@
 		    swap = 0;
 		if ( d->play_fmt != AFMT_S16_LE && d->dbuf_out.chan < 4 )
 		    swap = 0;
+#if 0 /* another 'mostly harmless' message. */
 		if ( d->rec_fmt ) {
 		    /* check for possible config errors.
 		     * This cannot happen at open time since even in
@@ -428,6 +431,7 @@
 			DDB(printf("sorry, read DMA channel unavailable\n"));
 		    }
 		}
+#endif
 	    }
 	    DEB(printf("sb16: play_fmt %d, rec_fmt %x, swap %d\n",
 		d->play_fmt, d->rec_fmt, swap);)

--OXfL5xGRrasGEqWY--

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



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