From: Takashi Iwai Subject: Re: performance between access mothods! Date: Tue, 07 Jul 2009 13:26:33 +0200 Message-ID: References: <1246761001-21982-1-git-send-email-troy.kisky@boundarydevices.com> <20090705114122.GA5334@sirena.org.uk> <4A50968B.6030201@gmail.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 (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 1E7B62413F for ; Tue, 7 Jul 2009 13:26:34 +0200 (CEST) In-Reply-To: <4A50968B.6030201@gmail.com> 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: Guilherme Longo Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Sun, 05 Jul 2009 09:03:23 -0300, Guilherme Longo wrote: > > Hi all! > > I came across a doubt regarding the the access mode between application > and PCM device. > It is a hardware parameter related property and there are 5 different > types available: > > SND_PCM_ACCESS_MMAP_INTERLEAVED > SND_PCM_ACCESS_MMAP_NONINTERLEAVED > SND_PCM_ACCESS_MMAP_COMPLEX > SND_PCM_ACCESS_RW_INTERLEAVED > SND_PCM_ACCESS_RW_NONINTERLEAVED > > taking in account that these first 3 parameters has direct communication > with the memory, that means a higher speed operation? Yes. The others are using copy_from/to_user(), so there are slight overheads by explicit copying. > And the fact of > the interleaved has all the samples mixed together , makes any > difference in performance in comparison to the noninterleaved that has > samples stored on different buffers? No. It's just a difference of what format the hardware supports. Takashi