From patchwork Fri May 13 21:26: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: 784182 Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4DLS4ZC020847 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 13 May 2011 21:28:31 GMT Received: from dlep33.itg.ti.com ([157.170.170.112]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id p4DLQtpD024621 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 13 May 2011 16:26:55 -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 p4DLQs8m023123; Fri, 13 May 2011 16:26:54 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 944EC80628; Fri, 13 May 2011 16:26:54 -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 F2BE080626 for ; Fri, 13 May 2011 16:26:52 -0500 (CDT) Received: from medina.ext.ti.com (localhost [127.0.0.1]) by dflp52.itg.ti.com (8.13.7/8.13.7) with ESMTP id p4DLQqY7007731 for ; Fri, 13 May 2011 16:26:52 -0500 (CDT) Received: from psmtp.com (na3sys009amx214.postini.com [74.125.149.54]) by medina.ext.ti.com (8.13.7/8.13.7) with SMTP id p4DLQpLw001613 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 13 May 2011 16:26:51 -0500 Received: from na3sys009aog107.obsmtp.com ([209.85.213.176]) (using TLSv1) by na3sys009amx214.postini.com ([74.125.148.10]) with SMTP; Fri, 13 May 2011 14:26:52 PDT Received: from mail-yx0-f176.google.com ([209.85.213.176]) (using TLSv1) by na3sys009aob107.postini.com ([74.125.148.12]) with SMTP ID DSNKTc2iGxJhlSXi+DLa+XsIgWuLnyyScCR+@postini.com; Fri, 13 May 2011 14:26:52 PDT Received: by mail-yx0-f176.google.com with SMTP id 5so1439810yxd.7 for ; Fri, 13 May 2011 14:26:51 -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=Z6RUKk0HeFBMw8h4SBNFV8CBE0YKLPBAnufn2LXWYrk=; b=nM0Xb/GHFKWwLJ8mzUV1qO2eyzVB0f8EPwz02P7soWW84gt/7y44ogS7OmysOj5wMb bPplWao09P/73w9F2Win7GavWKeUoTJ4b3NRID4U3NDXDQgmOxJCNoQC3763hTL7C6Yy 2cEmtVYEtIcdRBsQOVRBPL0P3IIxLAOP+Y9nQ= 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=T2vnDheEsGdUu+Gf4SGo2xN13obtTf5FkaN2Vrp3f0Bk1+zFvhduoc8Mrts4swLgB5 pfBi47SuF6PwvL9XaIvkOg+5REDojYfy42hZVnjIcxIvwmSlb+l+qp9qDbEonArqgU28 bOmTGTgEFk7t37DpGArBmh2fiwW+az7Vq5bWA= Received: by 10.150.189.7 with SMTP id m7mr1756278ybf.278.1305322011221; Fri, 13 May 2011 14:26:51 -0700 (PDT) Received: from localhost.localdomain ([206.191.47.130]) by mx.google.com with ESMTPS id t4sm525285ybe.12.2011.05.13.14.26.50 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 May 2011 14:26:50 -0700 (PDT) From: Ben Gardiner To: Liam Girdwood , Troy Kisky , Chaithrika U S , alsa-devel@alsa-project.org Subject: [PATCH 1/2] [RFC] ASoC: davinci-mcasp: enable ping-pong SRAM buffers Date: Fri, 13 May 2011 17:26:45 -0400 Message-Id: <771769182c177a9cd9472392e1d5a92d21025aa2.1305321198.git.bengardiner@nanometrics.ca> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: References: X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:99.44576/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: davinci-linux-open-source@linux.davincidsp.com 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@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 13 May 2011 21:28:46 +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 the davinci-mcasp probe(). Not-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);