Re: [Alsa-devel] How to debug ?

2003-04-03 Thread Giuliano Pochini
On 02-Apr-2003 Takashi Iwai wrote: Yes, otherwise snd_pcm_lib_malloc_pages() fails and hw_params callback exits with an error. ok, then something overwrites the entry. how about to check runtime-dma_area at each callback? Bug found. Alsaplayer calls hw_params two times with different buffer

Re: [Alsa-devel] How to debug ?

2003-04-02 Thread Takashi Iwai
At 02 Apr 2003 00:17:49 +, Giuliano Pochini wrote: My driver do not work anymore with xmms (alsa-xmms plugin) and alsaplayer. [...] I tried to force the alsaplayer plugin to set S16_LE format (data is BE on powerpc) and it do not spit that errors anymore, but it do not play

Re: [Alsa-devel] How to debug ?

2003-04-02 Thread Takashi Iwai
At Wed, 02 Apr 2003 12:33:18 +0200 (CEST), Giuliano Pochini wrote: On 02-Apr-2003 Takashi Iwai wrote: I don't set .copy callback and -dma_area should be 0 because the card uses a sg-list. #:( no, dma_area should not be zero. you shouldn't change the value, if you use

Re: [Alsa-devel] How to debug ?

2003-04-02 Thread Takashi Iwai
At Wed, 02 Apr 2003 12:55:04 +0200 (CEST), Giuliano Pochini wrote: On 02-Apr-2003 Takashi Iwai wrote: sorry, which fields do you mean exactly? runtime-private_data and runtime-hw ? Yes. anyway, runtime-dma_area and runtime-dma_bytes MUST be filled manually IFF you don't use

Re: [Alsa-devel] How to debug ?

2003-04-02 Thread Giuliano Pochini
On 02-Apr-2003 Takashi Iwai wrote: anyway, runtime-dma_area and runtime-dma_bytes MUST be filled manually IFF you don't use snd_pcm_lib_malloc_pages(). (dma_area won't be needed if the mmap is not supported and copy callback is defined, though.) I use snd_pcm_lib_malloc_pages(), dma is

Re: [Alsa-devel] How to debug ?

2003-04-02 Thread Takashi Iwai
At Wed, 02 Apr 2003 17:18:13 +0200 (CEST), Giuliano Pochini wrote: On 02-Apr-2003 Takashi Iwai wrote: anyway, runtime-dma_area and runtime-dma_bytes MUST be filled manually IFF you don't use snd_pcm_lib_malloc_pages(). (dma_area won't be needed if the mmap is not supported and copy

[Alsa-devel] How to debug ?

2003-04-01 Thread Giuliano Pochini
My driver do not work anymore with xmms (alsa-xmms plugin) and alsaplayer. I have no idea when that happened because I always use alsa-utils to make tests and I made a lot of changes since the last time I tested xmms and ap. Alsaplayer writes this: [EMAIL PROTECTED] Giu]$ alsaplayer ALSA lib

Re: [Alsa-devel] How to debug ?

2003-04-01 Thread Giuliano Pochini
My driver do not work anymore with xmms (alsa-xmms plugin) and alsaplayer. [...] I tried to force the alsaplayer plugin to set S16_LE format (data is BE on powerpc) and it do not spit that errors anymore, but it do not play anything and in the logs alsa prints: ALSA