From owner-freebsd-multimedia Thu Oct 29 07:45:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA08262 for freebsd-multimedia-outgoing; Thu, 29 Oct 1998 07:45:44 -0800 (PST) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from k6n1.znh.org (dialup6.gaffaneys.com [208.155.161.56]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA08257 for ; Thu, 29 Oct 1998 07:45:41 -0800 (PST) (envelope-from zach@gaffaneys.com) Received: (from zach@localhost) by k6n1.znh.org (8.9.1/8.9.1) id PAA20718; Thu, 29 Oct 1998 15:40:43 GMT (envelope-from zach) Message-ID: <19981029094043.A20322@znh.org> Date: Thu, 29 Oct 1998 09:40:43 -0600 From: Zach Heilig To: Joao Carlos Mendes Luis , multimedia@FreeBSD.ORG Subject: Re: timidity, pcm, sb16, dma, etc. References: <199810282019.SAA00609@roma.coe.ufrj.br> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=OXfL5xGRrasGEqWY Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.93.2i In-Reply-To: <199810282019.SAA00609@roma.coe.ufrj.br>; from Joao Carlos Mendes Luis on Wed, Oct 28, 1998 at 06:19:54PM -0200 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --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 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