From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: How to debug ? Date: Wed, 02 Apr 2003 18:05:39 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Giuliano Pochini Cc: alsa-devel List-Id: alsa-devel@alsa-project.org 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 > >> > callback is defined, though.) > >> > >> I use snd_pcm_lib_malloc_pages(), dma is supported and no copy > >> callback is defined. > > > > did you call snd_pcm_lib_preallocate_xxx functions after snd_pcm_new() > > ? > > 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? Takashi ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/