Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752882AbcD0OOd (ORCPT ); Wed, 27 Apr 2016 10:14:33 -0400 Received: from www381.your-server.de ([78.46.137.84]:50383 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752331AbcD0OOc (ORCPT ); Wed, 27 Apr 2016 10:14:32 -0400 Subject: Re: [PATCH 1/2] ASoC: dmaengine_pcm: Add support for packed transfers To: Matthias Reichl , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <1461763613-28714-1-git-send-email-hias@horus.com> Cc: kernel@martin.sperl.org From: Lars-Peter Clausen Message-ID: <5720C940.5010809@metafoo.de> Date: Wed, 27 Apr 2016 16:14:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.0 MIME-Version: 1.0 In-Reply-To: <1461763613-28714-1-git-send-email-hias@horus.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Authenticated-Sender: lars@metafoo.de Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1144 Lines: 27 On 04/27/2016 03:26 PM, Matthias Reichl wrote: > dmaengine_pcm currently only supports setups where FIFO reads/writes > correspond to exactly one sample, eg 16-bit sample data is transferred > via 16-bit FIFO accesses, 32-bit data via 32-bit accesses. > > This patch adds support for setups with fixed width FIFOs where > multiple samples are packed into a larger word. > > For example setups with a 32-bit wide FIFO register that expect > 16-bit sample transfers to be done with the left+right sample data > packed into a 32-bit word. > > Support for packed transfers is controlled via the > SND_DMAENGINE_PCM_DAI_FLAG_PACK flag in snd_dmaengine_dai_dma_data.flags > > If this flag is set dmaengine_pcm doesn't put any restriction on the > supported formats and sets the DMA transfer width to undefined. > > This means control over the constraints is now transferred to the DAI > driver and it's responsible to provide proper configuration and > check for possible corner cases that aren't handled by the ALSA core. > > Signed-off-by: Matthias Reichl Looks good, thanks. Acked-by: Lars-Peter Clausen