From patchwork Wed May 18 13:27:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Gardiner X-Patchwork-Id: 793652 Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4IDS6qc032152 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 18 May 2011 13:28:27 GMT Received: from dlep33.itg.ti.com ([157.170.170.112]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id p4IDS5Fk023639 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 18 May 2011 08:28:05 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id p4IDS4C7012152 for ; Wed, 18 May 2011 08:28:04 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 8E2538064C for ; Wed, 18 May 2011 08:28:03 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp52.itg.ti.com (dflp52.itg.ti.com [128.247.22.96]) by linux.omap.com (Postfix) with ESMTP id EF8DC80626 for ; Wed, 18 May 2011 08:27:55 -0500 (CDT) Received: from neches.ext.ti.com (localhost [127.0.0.1]) by dflp52.itg.ti.com (8.13.7/8.13.7) with ESMTP id p4IDRrs4000858 for ; Wed, 18 May 2011 08:27:53 -0500 (CDT) Received: from psmtp.com (na3sys009amx249.postini.com [74.125.149.133]) by neches.ext.ti.com (8.13.7/8.13.7) with SMTP id p4IDRqBd019508 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 18 May 2011 08:27:52 -0500 Received: from na3sys009aog115.obsmtp.com ([209.85.213.53]) (using TLSv1) by na3sys009amx249.postini.com ([74.125.148.10]) with SMTP; Wed, 18 May 2011 06:27:52 PDT Received: from mail-yw0-f53.google.com ([209.85.213.53]) (using TLSv1) by na3sys009aob115.postini.com ([74.125.148.12]) with SMTP ID DSNKTdPJWDmqcEZ/VxysAqy8AH4yaVcDJ0JU@postini.com; Wed, 18 May 2011 06:27:52 PDT Received: by mail-yw0-f53.google.com with SMTP id 2so612980ywl.12 for ; Wed, 18 May 2011 06:27:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nanometrics.ca; s=google; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=myWlAU9tVqAerBAR0m56wsN/5tb5AviBoqIdjsJS6OU=; b=o6I1EWQGAk87gAG4dr6vXT7kUosMvgMAgjPudiC0oXBXf8KKhB9LzWp6KVDhIpY0Tm LJ46AQTHYtWcrAxGDxsZn3pXG16mMrzy0rZZWvyJV+aldoph/nIlB3zAlXRPuOd4uPsL /MHwBYAdpwn+Jw+no73PGyhMtwNaBjQ+RrEnw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=nanometrics.ca; s=google; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=CLj+fMTbGq7jX2YKmbiA0sRZDT8e/dv+Vge7HiuZdbx6rzUxVrzH8Jlz9/2MFvJHSJ I5LnTroyzn++SEKAPY1D0U11RWu0pJillRR/qIqMh0D763+CkJI13d00uy9s3xYzXlle jFQvwvFMtK0eN5Dz2NCgdmMpL66NRP1X8xKsE= Received: by 10.236.199.205 with SMTP id x53mr1989935yhn.193.1305725271753; Wed, 18 May 2011 06:27:51 -0700 (PDT) Received: from localhost.localdomain ([206.191.47.130]) by mx.google.com with ESMTPS id o62sm657099yha.50.2011.05.18.06.27.50 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 May 2011 06:27:51 -0700 (PDT) From: Ben Gardiner To: Mark Brown , Sekhar Nori , Liam Girdwood , alsa-devel@alsa-project.org, davinci-linux-open-source@linux.davincidsp.com Subject: [PATCH 1/2] ASoC: davinci-mcasp: enable ping-pong SRAM buffers Date: Wed, 18 May 2011 09:27:45 -0400 Message-Id: X-Mailer: git-send-email 1.7.4.1 In-Reply-To: References: X-pstn-levels: (S:95.97974/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-settings: 2 (0.5000:0.0750) s cv GT3 gt2 gt1 r p m c X-pstn-addresses: from [db-null] Cc: Subhasish Ghosh X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Wed, 18 May 2011 13:28:27 +0000 (UTC) The davinci-i2s driver copies the platform data for playback and capture sram sizes which is in turn used by davinci-pcm to allocate ping-pong buffers. Copy also the platform data in davinci-mcasp probe. Signed-off-by: Ben Gardiner --- sound/soc/davinci/davinci-mcasp.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index 4ddc6d3..8566238 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c @@ -909,6 +909,7 @@ static int davinci_mcasp_probe(struct platform_device *pdev) dma_data = &dev->dma_params[SNDRV_PCM_STREAM_PLAYBACK]; dma_data->asp_chan_q = pdata->asp_chan_q; dma_data->ram_chan_q = pdata->ram_chan_q; + dma_data->sram_size = pdata->sram_size_playback; dma_data->dma_addr = (dma_addr_t) (pdata->tx_dma_offset + mem->start); @@ -925,6 +926,7 @@ static int davinci_mcasp_probe(struct platform_device *pdev) dma_data = &dev->dma_params[SNDRV_PCM_STREAM_CAPTURE]; dma_data->asp_chan_q = pdata->asp_chan_q; dma_data->ram_chan_q = pdata->ram_chan_q; + dma_data->sram_size = pdata->sram_size_capture; dma_data->dma_addr = (dma_addr_t)(pdata->rx_dma_offset + mem->start);