From patchwork Mon Aug 13 14:22:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 1313171 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 5E847DF223 for ; Mon, 13 Aug 2012 14:26:18 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T0vXa-0003lT-6J; Mon, 13 Aug 2012 14:22:46 +0000 Received: from na3sys009aog115.obsmtp.com ([74.125.149.238]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1T0vXW-0003jy-Av for linux-arm-kernel@lists.infradead.org; Mon, 13 Aug 2012 14:22:43 +0000 Received: from mail-ob0-f178.google.com ([209.85.214.178]) (using TLSv1) by na3sys009aob115.postini.com ([74.125.148.12]) with SMTP ID DSNKUCkNsLbZZwawIy2Pr3uLcHlVDEEtbQ8E@postini.com; Mon, 13 Aug 2012 07:22:42 PDT Received: by obbwd20 with SMTP id wd20so9088159obb.37 for ; Mon, 13 Aug 2012 07:22:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=AnOT0CPFkLQdjhueSYI3JopB+V0FoAMREY0m6+YHv08=; b=PGjtTZcyV3MJfu8kstKoBD66gbra3yVd5D2kc+8rLjLgstKdtHWRdtaLXu2hqhBVHE DSaAL/w5qRrKtcjJCPyBK0PdWZG9qN5Ggoc5uF7Dd5BvTjEh1ghbl0henR3h9XG7qUy8 kicvNJ4ZaHpx9UFgLM1SpYbwqlBBPfGOIiWvyBr505ZAq02W2v5yicq4noF5jYujLdgV VwZUV3x7fSZwi9SbZucj64NXuRiDB7AcfqzQd2kOlpDIn8nBoB9gFbkrwKR5urC+0dVH sbAY3gOP0XXNLtHOXZg39p3OUCsjrtOwFtbLA90tAQgFaz948jyhiiMI2wgxtlAEGN+W UW+g== Received: by 10.182.131.98 with SMTP id ol2mr12055911obb.69.1344867760149; Mon, 13 Aug 2012 07:22:40 -0700 (PDT) Received: from barack.emea.dhcp.ti.com (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id th3sm6355591obb.6.2012.08.13.07.22.37 (version=SSLv3 cipher=OTHER); Mon, 13 Aug 2012 07:22:39 -0700 (PDT) From: Peter Ujfalusi To: Mark Brown , Liam Girdwood , Tony Lindgren Subject: [PATCH v2 2/9] ARM: OMAP: mcbsp: Enable FIFO use for OMAP2430 Date: Mon, 13 Aug 2012 17:22:41 +0300 Message-Id: <1344867768-26335-3-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1344867768-26335-1-git-send-email-peter.ujfalusi@ti.com> References: <1344867768-26335-1-git-send-email-peter.ujfalusi@ti.com> X-Gm-Message-State: ALoCoQnmrLj3ZJwzO4dH9i/n1lLLOOwM3eiNOxvthTiWK0KuFkf971CHl1oDTq5WFVOPewDjJx9P X-Spam-Note: CRM114 invocation failed X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [74.125.149.238 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: alsa-devel@alsa-project.org, Benoit Cousson , devicetree-discuss@lists.ozlabs.org, Jarkko Nikula , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org On OMAP2430 all McBSP ports have 128 word long buffer, enable the use of the FIFO for the audio stack. Signed-off-by: Peter Ujfalusi Acked-by: Jarkko Nikula --- arch/arm/mach-omap2/mcbsp.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c index ebc801e..6e046e1 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c @@ -151,7 +151,10 @@ static int __init omap_init_mcbsp(struct omap_hwmod *oh, void *unused) if (id == 4 && oh->class->rev == MCBSP_CONFIG_TYPE4) pdata->mux_signal = omap4_mcbsp4_mux_rx_clk; - if (oh->class->rev == MCBSP_CONFIG_TYPE3) { + if (oh->class->rev == MCBSP_CONFIG_TYPE2) { + /* The FIFO has 128 locations */ + pdata->buffer_size = 0x80; + } else if (oh->class->rev == MCBSP_CONFIG_TYPE3) { if (id == 2) /* The FIFO has 1024 + 256 locations */ pdata->buffer_size = 0x500;