Re: [oss-devel] mmap documentation and PulseAudio

2008-09-07 Thread Hannu Savolainen
Hannu Savolainen kirjoitti: > Yair K. kirjoitti: > >> On Tuesday 19 August 2008 15:57:47 Hannu Savolainen wrote: >> >> >>> Ok. >>> >>> I split oss_audio_chpoll() to separate input and output handlers. Now >>> poll/select will report available data if dmap->interrupt_counter > 0. >>> Th

Re: [oss-devel] mmap documentation and PulseAudio

2008-09-07 Thread Hannu Savolainen
Yair K. kirjoitti: > On Tuesday 19 August 2008 15:57:47 Hannu Savolainen wrote: > >> Ok. >> >> I split oss_audio_chpoll() to separate input and output handlers. Now >> poll/select will report available data if dmap->interrupt_counter > 0. >> This counter gets incremented at each fragment bound

Re: [oss-devel] mmap documentation and PulseAudio

2008-09-07 Thread Yair K.
On Tuesday 19 August 2008 15:57:47 Hannu Savolainen wrote: > Ok. > > I split oss_audio_chpoll() to separate input and output handlers. Now > poll/select will report available data if dmap->interrupt_counter > 0. > This counter gets incremented at each fragment boundary. Calling > GETIPTR/GETOPT

Re: [oss-devel] mmap documentation and PulseAudio

2008-08-20 Thread Hannu Savolainen
Yair K. kirjoitti: > On Wednesday 20 August 2008 12:23:39 Hannu Savolainen wrote: > >> I took a quick look at pulseaudio (module-oss.c). There are few obvious >> errors: >> >> - If the trigger() function gets called with quick==true then it will >> fail for sure. It will not start recording. >

Re: [oss-devel] mmap documentation and PulseAudio

2008-08-20 Thread Yair K.
On Wednesday 20 August 2008 12:23:39 Hannu Savolainen wrote: > > I took a quick look at pulseaudio (module-oss.c). There are few obvious > errors: > > - If the trigger() function gets called with quick==true then it will > fail for sure. It will not start recording. A modified pulseaudio still

Re: [oss-devel] mmap documentation and PulseAudio

2008-08-20 Thread Hannu Savolainen
Hannu Savolainen wrote: > Yair K. wrote: > >> On Tuesday 19 August 2008 15:57:47 Hannu Savolainen wrote: >> >> >>> Ok. >>> >>> I split oss_audio_chpoll() to separate input and output handlers. Now >>> >>> poll/select will report available data if dmap->interrupt_counter > 0. >

Re: [oss-devel] mmap documentation and PulseAudio

2008-08-20 Thread Hannu Savolainen
Yair K. kirjoitti: > > On Tuesday 19 August 2008 15:57:47 Hannu Savolainen wrote: > > > Ok. > > > > > > I split oss_audio_chpoll() to separate input and output handlers. Now > > > poll/select will report available data if dmap->interrupt_counter > 0. > > > This counter gets incremented at each frag

Re: [oss-devel] mmap documentation and PulseAudio

2008-08-19 Thread Yair K.
On Tuesday 19 August 2008 15:57:47 Hannu Savolainen wrote: > Ok. > > I split oss_audio_chpoll() to separate input and output handlers. Now > poll/select will report available data if dmap->interrupt_counter > 0. > This counter gets incremented at each fragment boundary. Calling > GETIPTR/GETOPT

Re: [oss-devel] mmap documentation and PulseAudio

2008-08-19 Thread Hannu Savolainen
Hi, Forgot to mention that this change is now in the hg version. Best regards, Hannu ___ oss-devel mailing list oss-devel@mailman.opensound.com http://mailman.opensound.com/mailman/listinfo/oss-devel

Re: [oss-devel] mmap documentation and PulseAudio

2008-08-19 Thread Hannu Savolainen
Yair K. wrote: > On Tuesday 19 August 2008 14:28:24 Hannu Savolainen wrote: > >> Yair K. wrote: >> >>> Hi, >>> >>> I noticed pulseaudio has problems starting when OSSv4 is loaded, and >>> traced it down to using select() and GET{I,O}SPACE with an mmap()'d device >>> > To be more

Re: [oss-devel] mmap documentation and PulseAudio

2008-08-19 Thread Yair K.
On Tuesday 19 August 2008 14:28:24 Hannu Savolainen wrote: > Yair K. wrote: > > Hi, > > > > I noticed pulseaudio has problems starting when OSSv4 is loaded, and > > traced it down to using select() and GET{I,O}SPACE with an mmap()'d device To be more accurate, PulseAudio uses poll() not select(

Re: [oss-devel] mmap documentation and PulseAudio

2008-08-19 Thread Hannu Savolainen
Yair K. wrote: Hi, I noticed pulseaudio has problems starting when OSSv4 is loaded, and traced it down to using select() and GET{I,O}SPACE with an mmap()'d device (PulseAudio tries using mmap unless explicitly told otherwise). OSS doesn't support that, and returns -EIO, which is an error co