From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932767Ab2GBI6s (ORCPT ); Mon, 2 Jul 2012 04:58:48 -0400 Received: from hqemgate03.nvidia.com ([216.228.121.140]:17997 "EHLO hqemgate03.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932655Ab2GBI6n (ORCPT ); Mon, 2 Jul 2012 04:58:43 -0400 X-PGP-Universal: processed; by hqnvupgp05.nvidia.com on Mon, 02 Jul 2012 01:58:24 -0700 From: Laxman Dewangan To: , , , , , , CC: , , Laxman Dewangan Subject: [PATCH V2 0/2] ASoC: Move pcm writecombine dma buffer allocation to core Date: Mon, 2 Jul 2012 14:24:31 +0530 Message-ID: <1341219273-7439-1-git-send-email-ldewangan@nvidia.com> X-Mailer: git-send-email 1.7.1.1 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some of the ARM based soc allocate the writecombine dma buffer for pcm substreams. They have the same codes for managing this buffer. Moving this to the core/pcm memory librray so that they can use that directly. Remove the code from Tegra PCM and use these new feature from library function. This is enabled only for ARM specific and can be extended to other architecture if they support the writecombine dma buffer. This patch is based on detail discussion on patch: [PATCH] ASoC: snd_dmaengine: add common api for pcm_mmap And suggestion from Lars and Takashi. Changes from V1: Takashi had send the sample code to integrate the writecombine with dma coherant and this is based on that code. Also change the tegra-pcm driver accordingly. Laxman Dewangan (2): ALSA: Support writecombine DMA buffer memory page alloc/free ASoC: tegra: use sound pcm library for substream dma buffer include/sound/memalloc.h | 1 + sound/core/memalloc.c | 70 ++++++++++++++++++++++++--- sound/core/pcm_native.c | 10 ++++ sound/soc/tegra/tegra_pcm.c | 112 ++++++++++-------------------------------- 4 files changed, 100 insertions(+), 93 deletions(-)