From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Subject: Re: [PATCH 6/8] ASoC: tegra: Use common DAI DMA data struct Date: Wed, 03 Apr 2013 11:08:34 -0600 Message-ID: <515C6212.6070401@wwwdotorg.org> References: <1364979607-15286-1-git-send-email-lars@metafoo.de> <1364979965-15776-1-git-send-email-lars@metafoo.de> <1364979965-15776-2-git-send-email-lars@metafoo.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from avon.wwwdotorg.org (avon.wwwdotorg.org [70.85.31.133]) by alsa0.perex.cz (Postfix) with ESMTP id 42995265DE9 for ; Wed, 3 Apr 2013 19:08:38 +0200 (CEST) In-Reply-To: <1364979965-15776-2-git-send-email-lars@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 Cc: Ola Lilja , alsa-devel@alsa-project.org, Mark Brown , Nicolas Ferre , Liam Girdwood , Peter Ujfalusi , Laxman Dewangan , Sascha Hauer , Shawn Guo , Jarkko Nikula List-Id: alsa-devel@alsa-project.org On 04/03/2013 03:06 AM, Lars-Peter Clausen wrote: > Use the common DAI DMA data struct for tegra, this allows us to use the common > helper function to configure the DMA slave config based on the DAI DMA data. Nice. Patches 2, 5, 6, Reviewed-by: Stephen Warren Tested-by: Stephen Warren But one minor question below: > diff --git a/sound/soc/tegra/tegra_pcm.c b/sound/soc/tegra/tegra_pcm.c > @@ -92,16 +89,9 @@ static int tegra_pcm_hw_params(struct snd_pcm_substream *substream, > + snd_dmaengine_pcm_set_config_from_dai_data(substream, > + snd_soc_dai_get_dma_data(rtd->cpu_dai, substream), > + &slave_config); Would it make sense to have snd_dmaengine_pcm_set_config_from_dai_data() call snd_soc_dai_get_dma_data() internally, to avoid all call-sites from having to do it?