Re: [Alsa-devel] problems using select() on alsa pcm.

2004-03-25 Thread Glenn Maynard
On Thu, Mar 25, 2004 at 03:00:58PM +0100, Takashi Iwai wrote: > > Why is select deprecated? > > because select is just a wrapper of poll in fact (on linux)? So? There are a few other operating systems out there, and select() is very portable. (select isn't deprecated; it's simply not Linus's AP

Re: [Alsa-devel] problems using select() on alsa pcm.

2004-03-25 Thread Jaroslav Kysela
On Thu, 25 Mar 2004, James Courtier-Dutton wrote: > Jaroslav Kysela wrote: > > On Wed, 24 Mar 2004, Paul Davis wrote: > > > > > >>>open pcm, and get a handle. > >>> > >>>snd_pcm_poll_descriptors(handle, &pfd, err); > >>> > >>>Get a poll file scriptor in pfd. > >>> > >>>select(nfds, rfds, wfds, e

Re: [Alsa-devel] problems using select() on alsa pcm.

2004-03-25 Thread James Courtier-Dutton
Jaroslav Kysela wrote: On Wed, 24 Mar 2004, Paul Davis wrote: open pcm, and get a handle. snd_pcm_poll_descriptors(handle, &pfd, err); Get a poll file scriptor in pfd. select(nfds, rfds, wfds, efds, tvp); Is it possible to use this call with alsa ? select is generally deprecated in linux (lin

Re: [Alsa-devel] problems using select() on alsa pcm.

2004-03-25 Thread Jaroslav Kysela
On Thu, 25 Mar 2004, Paul Davis wrote: > >> select is generally deprecated in linux (linus says so!). but you can > >> use the same pfds in select as in poll (select is implemented in the > >> kernel using the poll code). the problem is interpreting the results > >> you get back (as noted recently

Re: [Alsa-devel] problems using select() on alsa pcm.

2004-03-25 Thread Paul Davis
>> select is generally deprecated in linux (linus says so!). but you can >> use the same pfds in select as in poll (select is implemented in the >> kernel using the poll code). the problem is interpreting the results >> you get back (as noted recently for the dmix plugin). > >Nope, the application

Re: [Alsa-devel] problems using select() on alsa pcm.

2004-03-25 Thread Martijn Sipkema
> > > >open pcm, and get a handle. > > > > > > > >snd_pcm_poll_descriptors(handle, &pfd, err); > > > > > > > >Get a poll file scriptor in pfd. > > > > > > > >select(nfds, rfds, wfds, efds, tvp); > > > > > > > >Is it possible to use this call with alsa ? > > > > > > select is generally deprecated i

Re: [Alsa-devel] problems using select() on alsa pcm.

2004-03-25 Thread Takashi Iwai
At Thu, 25 Mar 2004 11:25:56 +0100, Martijn Sipkema wrote: > > > >open pcm, and get a handle. > > > > > >snd_pcm_poll_descriptors(handle, &pfd, err); > > > > > >Get a poll file scriptor in pfd. > > > > > >select(nfds, rfds, wfds, efds, tvp); > > > > > >Is it possible to use this call with alsa ? >

Re: [Alsa-devel] problems using select() on alsa pcm.

2004-03-25 Thread Paul Davis
>> >open pcm, and get a handle. >> > >> >snd_pcm_poll_descriptors(handle, &pfd, err); >> > >> >Get a poll file scriptor in pfd. >> > >> >select(nfds, rfds, wfds, efds, tvp); >> > >> >Is it possible to use this call with alsa ? >> >> select is generally deprecated in linux (linus says so!). but you

Re: [Alsa-devel] problems using select() on alsa pcm.

2004-03-25 Thread Martijn Sipkema
> >open pcm, and get a handle. > > > >snd_pcm_poll_descriptors(handle, &pfd, err); > > > >Get a poll file scriptor in pfd. > > > >select(nfds, rfds, wfds, efds, tvp); > > > >Is it possible to use this call with alsa ? > > select is generally deprecated in linux (linus says so!). but you can > use

Re: [Alsa-devel] problems using select() on alsa pcm.

2004-03-25 Thread Jaroslav Kysela
On Wed, 24 Mar 2004, Paul Davis wrote: > >open pcm, and get a handle. > > > >snd_pcm_poll_descriptors(handle, &pfd, err); > > > >Get a poll file scriptor in pfd. > > > >select(nfds, rfds, wfds, efds, tvp); > > > >Is it possible to use this call with alsa ? > > select is generally deprecated in li

Re: [Alsa-devel] problems using select() on alsa pcm.

2004-03-25 Thread Jaroslav Kysela
On Thu, 25 Mar 2004, James Courtier-Dutton wrote: > open pcm, and get a handle. > > snd_pcm_poll_descriptors(handle, &pfd, err); > > Get a poll file scriptor in pfd. > > select(nfds, rfds, wfds, efds, tvp); > > Is it possible to use this call with alsa ? Yes, snd_pcm_poll_descriptors() gives

Re: [Alsa-devel] problems using select() on alsa pcm.

2004-03-24 Thread Paul Davis
>open pcm, and get a handle. > >snd_pcm_poll_descriptors(handle, &pfd, err); > >Get a poll file scriptor in pfd. > >select(nfds, rfds, wfds, efds, tvp); > >Is it possible to use this call with alsa ? select is generally deprecated in linux (linus says so!). but you can use the same pfds in select

[Alsa-devel] problems using select() on alsa pcm.

2004-03-24 Thread James Courtier-Dutton
open pcm, and get a handle. snd_pcm_poll_descriptors(handle, &pfd, err); Get a poll file scriptor in pfd. select(nfds, rfds, wfds, efds, tvp); Is it possible to use this call with alsa ? It seems that the select functions as expected with the descriptor so that we can do a snd_pcm_writei(). I