Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 1999 12:41:31 -0700
From:      Chris Doherty <cdoherty@nttmcl.com>
To:        martin.kraft@fal.de, freebsd-multimedia@freebsd.org
Subject:   RE: SB Vibra16: more joy and rapture
Message-ID:  <3.0.6.32.19990715124131.008135a0@alicia.nttmcl.com>
In-Reply-To: <199907151904.VAA05492@hpcs14.dv.fal.de>

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

[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 <runge@rostock.zgdv.de> 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




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