Subject: Re: audio open()/close() inconsistency
To: Aymeric Vincent <vincent@labri.fr>
From: Michael Lorenz <macallan@netbsd.org>
List: tech-kern
Date: 09/16/2007 13:55:22
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Sep 16, 2007, at 09:03, Aymeric Vincent wrote:

> Basically, audio_open() allows a program to open an audio device in
> read-mode and another program to open it in write-mode (in whatever
> order).
>
> However, when any of the programs calls audio_close(), the device is
> close()d for everybody.

I noticed this behaviour when trying to debug full duplex mode on the  
dbri driver - I had one process play something, then had another read  
from /dev/ausio - as soon as the 2nd one terminated the playing  
process hung because the audio device was shut down. Tracked it down  
to audio.c but didn't get around to dig any deeper yet ( not that I'm  
familiar with the MI audio code )

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBRu1uCspnzkX8Yg2nAQKojwf+Oj6k7E4+5vZrpVVPYV9mip/m4r9aUm1W
2iOf3lmDK4F8q/ba42C1/rPtUHLMRwd6QyBZ4RLdhI/lnLyMY5DM+hmBFB2fuBf/
yIB94OtNDMor9nObDGBCdz8gC+4ThESe26+V66n4QOn6918sR62C96R6m6XOjS6i
yUG5QLuRhjcsBtas8GhsK/hebJfHvRXfVH9ouTJFsxteguXjaS+e16UyYH76irVt
MSNnLxNQqaB+bjehEHPBvvr8GzXnbg6tFZ+9NX1gNqSgSvzAxsrzovVQ2avGmIuX
4gTtVenA1LUPLdqrHnYRG2NEari05Vvr1Ii1GY4n8L+CS9OhMMx14w==
=W1sP
-----END PGP SIGNATURE-----