From patchwork Wed May 18 13:27:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Gardiner X-Patchwork-Id: 793672 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 p4IDTnXB002887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 18 May 2011 13:30:10 GMT Received: from dlep35.itg.ti.com ([157.170.170.118]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id p4IDSvFa024436 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 May 2011 08:28:57 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep35.itg.ti.com (8.13.7/8.13.7) with ESMTP id p4IDSuqD005402; Wed, 18 May 2011 08:28:56 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 1954C8062A; Wed, 18 May 2011 08:28:56 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp51.itg.ti.com (dflp51.itg.ti.com [128.247.22.94]) by linux.omap.com (Postfix) with ESMTP id 696648062A for ; Wed, 18 May 2011 08:27:58 -0500 (CDT) Received: from red.ext.ti.com (localhost [127.0.0.1]) by dflp51.itg.ti.com (8.13.7/8.13.7) with ESMTP id p4IDRthR027349 for ; Wed, 18 May 2011 08:27:55 -0500 (CDT) Received: from psmtp.com (na3sys009amx164.postini.com [74.125.149.90]) by red.ext.ti.com (8.13.7/8.13.7) with SMTP id p4IDRsQD004149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 18 May 2011 08:27:55 -0500 Received: from na3sys009aog115.obsmtp.com ([209.85.213.49]) (using TLSv1) by na3sys009amx164.postini.com ([74.125.148.10]) with SMTP; Wed, 18 May 2011 13:27:55 GMT Received: from mail-yw0-f49.google.com ([209.85.213.49]) (using TLSv1) by na3sys009aob115.postini.com ([74.125.148.12]) with SMTP ID DSNKTdPJWtrKhDVlu15edsFqhPLCLFFH2Gug@postini.com; Wed, 18 May 2011 06:27:55 PDT Received: by ywf9 with SMTP id 9so805496ywf.22 for ; Wed, 18 May 2011 06:27:53 -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=AcjVOZEQgSKSxF9NUGdC2LgsjarX8TkF/AulnCkR3QE=; b=IXDreMlO9w+cdheP3ypg0hMqZN67t0rrKPjVEWkGAk4oDhCFghJio9PZ3jG+asJYCF aE9iCABYFlP/0xgSlVtnjF5ceShmwRMaiJLJUfkLpw/Mhk3DiS2wv861134lM+Kue4rI V2S0nhv2pSC4empQeEWqLnTf63E5ocv1ZH6P4= 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=acc+xPc4TJ3ccO1ZK5lsOy8WQ94sub2g7WjTMlPQXQTf1mY5hyum4q5hER/qKVitEh wjKMnVoUhCuDRxcw681ksML1NWk5F0zS/qPcdR+hrMMdU3qP1IlnQEQmVERRed90BQj1 0qbSWivG6Dntc2MPUojQ9Roexz0upPaKPbRDc= Received: by 10.236.200.135 with SMTP id z7mr1907081yhn.146.1305725273507; Wed, 18 May 2011 06:27:53 -0700 (PDT) Received: from localhost.localdomain ([206.191.47.130]) by mx.google.com with ESMTPS id o62sm657099yha.50.2011.05.18.06.27.51 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 May 2011 06:27:52 -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 2/2] davinci: da850evm: enable mcasp ping-pong bufs and evq's Date: Wed, 18 May 2011 09:27:46 -0400 Message-Id: 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.90000/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@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 (demeter2.kernel.org [140.211.167.43]); Wed, 18 May 2011 13:30:10 +0000 (UTC) The davinci-mcasp driver will copy the platform data specified sram sizes and eventq's. Set the event queues and sram sizes for da850. 8K SRAM buffers are selected because it is the minimum that resulted in the same period size when testing 48KHz S16_LE stereo. Event queues 0 and 1 are assigned to match those specified by Troy Kisky in his introduction of ping-pong buffers for dm644x. Signed-off-by: Ben Gardiner --- arch/arm/mach-davinci/board-da850-evm.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index a7b41bf..2ee1a6f 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -722,10 +722,13 @@ static struct snd_platform_data da850_evm_snd_data = { .num_serializer = ARRAY_SIZE(da850_iis_serializer_direction), .tdm_slots = 2, .serial_dir = da850_iis_serializer_direction, - .asp_chan_q = EVENTQ_1, + .asp_chan_q = EVENTQ_0, + .ram_chan_q = EVENTQ_1, .version = MCASP_VERSION_2, .txnumevt = 1, .rxnumevt = 1, + .sram_size_playback = SZ_8K, + .sram_size_capture = SZ_8K, }; static const short da850_evm_mcasp_pins[] __initconst = {