From: Takashi Iwai Subject: Re: SALSA-Lib: snd_pcm_hw_params fails with MMAP Date: Tue, 03 Jul 2007 15:03:02 +0200 Message-ID: References: <20070630162338.5a83238a.alsauser@pragmasoft.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 2B79924400 for ; Tue, 3 Jul 2007 15:03:11 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: "J. Scott Merritt" Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Mon, 02 Jul 2007 15:25:05 +0200, I wrote: > > At Sat, 30 Jun 2007 16:23:38 -0400, > J. Scott Merritt wrote: > > > > Dear List, > > > > Using SALSA-Lib 0.0.5 ... > > > > After calling snd_pcm_hw_params_set_access with an access mode of > > SND_PCM_ACCESS_MMAP_INTERLEAVED, the subsequent call to snd_pcm_hw_params > > returns a snd_strerror error code of "Invalid argument". > > > > This same program operates properly in the target environment (ARM PXA270) > > when compiled and linked with the standard ALSA LIB 1.0.13. > > Don't use mmap mode. It seems not supported well. More words on MMAP: The snd_pcm_mmap_read/write*() are unsupported anyway, so it's no go if you used it. Except for that, the _normal_ mmap using mmap-begin, commit, avail_update should work. The mmap-hw_params bug should have been fixed in version 0.0.6 release. Takashi