From patchwork Wed Aug 8 09:11:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 1293601 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 9078ADF223 for ; Wed, 8 Aug 2012 09:16:26 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Sz2Ju-0000bT-EQ; Wed, 08 Aug 2012 09:12:50 +0000 Received: from na3sys009aog104.obsmtp.com ([74.125.149.73]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1Sz2JG-0000PQ-72 for linux-arm-kernel@lists.infradead.org; Wed, 08 Aug 2012 09:12:11 +0000 Received: from mail-ob0-f180.google.com ([209.85.214.180]) (using TLSv1) by na3sys009aob104.postini.com ([74.125.148.12]) with SMTP ID DSNKUCItaBMhw/g8KXDj6csBXlDTi/uAOeWZ@postini.com; Wed, 08 Aug 2012 02:12:10 PDT Received: by obbuo19 with SMTP id uo19so806481obb.11 for ; Wed, 08 Aug 2012 02:12:08 -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=Tolv0zRGrfalVkFj2gIQzRSb1cuwrIObFr7V2RiVq0s=; b=CdbNiuLcja9S7Cpym6XcNwaiLKT33DaGsMXhpyDW1BfTAQWAUGK0gCUGhzqoQ8wjuz VijreMmwdtyM8HV7EC35Pf7G9J1GtwnbYoBZTvsX+zkJXLf6kSeQ7z3mjTsYp+fDMQqi LawzWLHU1XKU8dBBLoochMqVuyqmseYdxI19t+bYH1i0kcFmnRELlH6gmUx0SFjGpQq8 bGvGULdJ/1OmPgV2BJ61Wmm68Imm7GrXEY/p2ROFbRBmQH5fZy3ydp0twZ5FiURtsVMG GLK4yMYjR5Tbbz7+9nEB5lxXZwLN2FjDn1aF9oXysPxGvzgBKXTuFRxBrCnYth+9+Kj+ FB8Q== Received: by 10.60.30.170 with SMTP id t10mr29134956oeh.10.1344417128125; Wed, 08 Aug 2012 02:12:08 -0700 (PDT) Received: from barack.emea.dhcp.ti.com (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id cp8sm22099007obc.23.2012.08.08.02.12.05 (version=SSLv3 cipher=OTHER); Wed, 08 Aug 2012 02:12:07 -0700 (PDT) From: Peter Ujfalusi To: Mark Brown , Liam Girdwood , Tony Lindgren Subject: [PATCH 03/11] ARM: OMAP: mcbsp: Enable FIFO use for OMAP2430 Date: Wed, 8 Aug 2012 12:11:33 +0300 Message-Id: <1344417101-5015-4-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1344417101-5015-1-git-send-email-peter.ujfalusi@ti.com> References: <1344417101-5015-1-git-send-email-peter.ujfalusi@ti.com> X-Gm-Message-State: ALoCoQny7IYyqix8nelFHiGFchEI18qzm/CqKca6msUoKTC1xo3/opSInljfbr863q6T78eO1TZm 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.73 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 --- 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 57bd7ef..43899b6 100644 --- a/arch/arm/mach-omap2/mcbsp.c +++ b/arch/arm/mach-omap2/mcbsp.c @@ -152,7 +152,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;