From: Takashi Iwai Subject: Re: hw_params function and OSS emulation Date: Wed, 22 Aug 2007 17:57:13 +0200 Message-ID: References: <46CB2BB4.9060808@freescale.com> <46CC480F.7090604@freescale.com> <46CC4FF3.6090607@freescale.com> <46CC5ADC.4020605@freescale.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 mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 4829A1038C9 for ; Wed, 22 Aug 2007 17:57:14 +0200 (CEST) In-Reply-To: <46CC5ADC.4020605@freescale.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: Timur Tabi Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Wed, 22 Aug 2007 10:48:44 -0500, Timur Tabi wrote: > > Takashi Iwai wrote: > > > The driver should deny a too large size if it's unrealistic. > > But 1MB is realistic for many systems. So, the number depends on the > > system. > > Are there any popular applications that really want a DMA buffer > larger than 64KB? It's something like an urban legend: the bigger, the better. A big buffer seems preferred for applications that require the robust operation. Such a requirement makes a little bit sense although multi-threading and adjusting the RT-priority would give you far better result. > On a side note, I notice that ALSA has some scatter-gather support. If an > application uses S/G, I presume the concept of a DMA buffer size doesn't even > apply? The SG-buffer isn't for applications but for drivers. From the application viewpoint, the buffer looks linear. Takashi