From owner-freebsd-multimedia Thu Jul 15 12:46: 6 1999 Delivered-To: freebsd-multimedia@freebsd.org Received: from alicia.nttmcl.com (alicia.nttmcl.com [216.69.69.10]) by hub.freebsd.org (Postfix) with ESMTP id BD09B14DEB for ; Thu, 15 Jul 1999 12:46:04 -0700 (PDT) (envelope-from cdoherty@nttmcl.com) Received: from bob by alicia.nttmcl.com (8.8.5/3.5W(96/10/22)) id MAA06756; Thu, 15 Jul 1999 12:42:07 -0700 (PDT) Message-Id: <3.0.6.32.19990715124131.008135a0@alicia.nttmcl.com> X-Sender: cdoherty@alicia.nttmcl.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Thu, 15 Jul 1999 12:41:31 -0700 To: martin.kraft@fal.de, freebsd-multimedia@freebsd.org From: Chris Doherty Subject: RE: SB Vibra16: more joy and rapture In-Reply-To: <199907151904.VAA05492@hpcs14.dv.fal.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [using ioctl() AFMT_QUERY returns format == 0] >> is this a characteristic of SB cards? can I safely assume if >> ioctl() returns ok from SNDCTL_DSP_SETFMT, that the >> format has been set? thanks! the code appears in the same file at line 1027 in 3.1-RELEASE; the code is different in 3.2-RELEASE (line 1059), but on inspection it doesn't look like this particular bug has been fixed--the changes fix a bug causing ioctl() to fail on some sound cards, rather than this problem of returning successfully with the wrong value. Chris >I had the same situation, and this was, what I found today in an >earlier posting by runge on january 3 in >mailing.freebsd.bugs (found it via www.deja.com): > >> in /usr/src/sys/i386/isa/snd/sound.c change this: >> >> if (ask_init(d)) >> *(int *)arg = d->play_fmt ; >> >> in line 992 (source of 3.0 RELEASE) >> >> to: >> if (ask_init(d)) >> { >> if (d->play_fmt) >> *(int *)arg = d->play_fmt ; >> if (d->rec_fmt) >> *(int *)arg = d->rec_fmt ; >> } > > --------------- I don't speak for NTT MCL. I'm an intern. Chris Doherty cdoherty@nttmcl.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message