Re: [Alsa-devel] snd_pcm_mmap_begin returns 0 but sets areas to NULL

2003-07-22 Thread Carlo Wood
On Tue, Jul 22, 2003 at 03:51:58PM +0200, Carlo Wood wrote: int err = snd_pcm_mmap_begin(handle, areas, offset, frames); returns err == 0, but results in areas == NULL ? I looked deeper into it, and it happens because snd_pcm_mmap_begin returns snd_pcm_mmap_areas() which returns pcm

[Alsa-devel] ALSA (CVS) doesn't compile on recent linux (alsa-conf)

2003-07-18 Thread Carlo Wood
[...] This is using gcc version 3.2.3 -- Carlo Wood [EMAIL PROTECTED] --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual

Re: [Alsa-devel] ALSA (CVS) doesn't compile on recent linux (alsa-driver)

2003-07-18 Thread Carlo Wood
-debug/build - /usr/src/linux-2.5.74-debug -- Carlo Wood [EMAIL PROTECTED] --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell

Re: [Alsa-devel] ALSA (CVS) doesn't compile on recent linux (alsa-driver)

2003-07-18 Thread Carlo Wood
-utils seperately. 4) The rest can't be built ('make' doesn't work). 5) Again: alsa-drivers is not needed at all for me. Thanks for the clarification. -- Carlo Wood [EMAIL PROTECTED] --- This SF.net email is sponsored by: VM Ware With VMware

[Alsa-devel] OSS layer still doesn't ignore xruns.

2003-07-16 Thread Carlo Wood
. Additionally read 1024 bytes. Additionally read 1024 bytes. Stream is not restarted after xrun. -- Carlo Wood [EMAIL PROTECTED] #include stdio.h #include sys/types.h #include sys/stat.h #include fcntl.h #include sys/ioctl.h #include unistd.h #include sys/soundcard.h #include time.h int main(void

[Alsa-devel] OSS layer doesn't ignore xruns.

2003-07-15 Thread Carlo Wood
post: On Sun, Jul 13, 2003 at 05:59:19PM +0200, Carlo Wood wrote: On Sun, Jul 13, 2003 at 04:38:47AM +0200, Carlo Wood wrote: I wrote a patch for sound/core/oss/pcm_oss.c, that fixes the ViaVoice problem. Later I wrote a test case that still doesn't get fixed: a.out Size of a fragment

Re: [Alsa-devel] OSS layer doesn't ignore xruns.

2003-07-15 Thread Carlo Wood
tree. The patch is attached to this e-mail. Thanks for the patch. I couldn't have wished a better reply ;). -- Carlo Wood [EMAIL PROTECTED] --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems

[Alsa-devel] Re: [PATCH] OSS Layer: restart stream after xrun once stream is drained.

2003-07-13 Thread Carlo Wood
On Sun, Jul 13, 2003 at 04:38:47AM +0200, Carlo Wood wrote: I wrote a patch for sound/core/oss/pcm_oss.c, that fixes the ViaVoice problem. Later I wrote a test case that still doesn't get fixed: a.out Size of a fragment in bytes: 1024 Allocated fragments for buffering: 2

[Alsa-devel] Re: [xvoice] Hacking ViaVoice, part 4

2003-07-12 Thread Carlo Wood
On Sat, Jul 12, 2003 at 02:08:34PM +0200, Carlo Wood wrote: Hence, the problem is now reduced to the question: Why is snd_pcm_update_hw_ptr_interrupt not called anymore after we did run into an xrun? I added a few more printk's and already I can guess what is the reason that the 'blackbox

Re: [Alsa-devel] Re: [xvoice] Hacking ViaVoice, part 4

2003-07-12 Thread Carlo Wood
On Sat, Jul 12, 2003 at 08:56:16PM +0200, Jaroslav Kysela wrote: On Sat, 12 Jul 2003, Carlo Wood wrote: On Sat, Jul 12, 2003 at 02:08:34PM +0200, Carlo Wood wrote: Hence, the problem is now reduced to the question: Why is snd_pcm_update_hw_ptr_interrupt not called anymore after we

Re: [Alsa-devel] Re: [xvoice] Hacking ViaVoice, part 4

2003-07-12 Thread Carlo Wood
On Sun, Jul 13, 2003 at 01:05:39AM +0200, Carlo Wood wrote: If not, then it is a bug in ViaVoice - how *should* ViaVoice have worked to this deadlock? ^__ avoid --- This SF.Net email sponsored by: Parasoft Error proof Web apps

[Alsa-devel] [PATCH] OSS Layer: restart stream after xrun once stream is drained.

2003-07-12 Thread Carlo Wood
, fragstotal = 2, fragsize = 1024 space: bytes = 2048, periods = 2, fragstotal = 2, fragsize = 1024 [...etc...] The real rate being 8000, we have 16 kb/s of input from the soundcard, but only read (on average) 11 kb/s, from which we can conclude that the stream is stopped 31% of the time. -- Carlo

[Alsa-devel] Where is the real developers list?

2003-07-10 Thread Carlo Wood
I only see questions on this list, and nobody who answers them. Where are the developers? Is ALSA still maintained? -- Carlo Wood [EMAIL PROTECTED] --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more

Re: [Alsa-devel] Bug in OSS simulation (ALSA 0.9.4)

2003-07-10 Thread Carlo Wood
to the test code - i.e. only sleep for naptime when info.fragments is zero. That leads to no xruns, then it works. It is of no use however because I can't get the closed source application to read faster ;). -- Carlo Wood [EMAIL PROTECTED