Subject: Re: select() does not work on /dev/audio
To: None <tech-kern@netbsd.org>
From: Alan Post <apost@recalcitrant.org>
List: tech-kern
Date: 11/29/2005 18:03:46
In article <20051129161323.GX1943@NetBSD.org>, Emmanuel Dreyfus wrote:
> 
> The test pgoram above will show that select is not able to detect that
> data is available for reading on /dev/audio. cat shows lots of data, so 
> it's not a problem of data being unavailable.
> 
> How can this be fixed? I tried adding selnotify(&sc->sc_rsel, 0); at the
> end of src/sys/dev/audio.c:audiostartr(), and selnotify(&sc->sc_wsel, 0); 
> in audiostartp() but that does not seems to do the job. Any idea?

With an old auich onboard device, I needed to do a read to get things
started before select would actually work properly.

HTH.

  Alan