From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clemens Ladisch Subject: Re: PulseAudio and SNDRV_PCM_INFO_BATCH Date: Mon, 22 Jun 2015 11:41:25 +0200 Message-ID: <5587D845.4040309@ladisch.de> References: <557E86DD.8020709@metafoo.de> <557EBEAA.70004@metafoo.de> <557EDE22.7080808@metafoo.de> <5587AE77.1020709@metafoo.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from dehamd003.servertools24.de (dehamd003.servertools24.de [31.47.254.18]) by alsa0.perex.cz (Postfix) with ESMTP id 6D31426170F for ; Mon, 22 Jun 2015 11:41:28 +0200 (CEST) In-Reply-To: <5587AE77.1020709@metafoo.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Lars-Peter Clausen , Raymond Yau Cc: Takashi Iwai , ALSA Development Mailing List , Tanu Kaskinen , Arun Raghavan , David Henningsson List-Id: alsa-devel@alsa-project.org Lars-Peter Clausen wrote: > On 06/22/2015 04:35 AM, Raymond Yau wrote: >> Are all soc audio driver use cyclic dma ? > > I'm not sure I understand the question. All audio drivers use some > kind of cyclic DMA. The ALSA API requires the driver to provide a cyclic sample buffer (or something that behaves like one). However, not all hardware works this way. USB and FireWire require the driver to continually queue new packets, whose size and timing are determined by the bus clock and are not directly related to the ALSA ring buffer. These drivers use double buffering; the actual DMA happens from those packets, not from the ring buffer. Regards, Clemens