From patchwork Thu Aug 16 13:41:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 1331921 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id D79DBDFB34 for ; Thu, 16 Aug 2012 13:41:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753265Ab2HPNlG (ORCPT ); Thu, 16 Aug 2012 09:41:06 -0400 Received: from na3sys009aog134.obsmtp.com ([74.125.149.83]:51396 "EHLO na3sys009aog134.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752461Ab2HPNlF (ORCPT ); Thu, 16 Aug 2012 09:41:05 -0400 Received: from mail-ob0-f173.google.com ([209.85.214.173]) (using TLSv1) by na3sys009aob134.postini.com ([74.125.148.12]) with SMTP ID DSNKUCz4cKrsC6eTBU5OE9W/zY4LPbVgFxJJ@postini.com; Thu, 16 Aug 2012 06:41:05 PDT Received: by obbta14 with SMTP id ta14so4662901obb.32 for ; Thu, 16 Aug 2012 06:41:04 -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=BRyj/h+OZrXrSwg5slkJ9nbkDJjQivQqWszckZSwPoIZdqrIeakpHUggnzNkdBb/ew DESX+r1Bdna+vKKJSecfl5IWcQwe9eNEKTsfhv3wclm+0xXEXVmCbVQmsaddbvQd58BM bq9I1MM4RRaKrN11N8Wtvz3pUHA7YzwLqw2ZTepKoW9mvAG4g7YRTOB0RPKJSTtWGQPJ qa92v5G/O16IVgBynXnqgz/ywZzX716wDSbU1ANRILdR/r5f0HvkF7RMY9ZPyainrocE mO4sfXcDDHVVFfRfbeD3FQcWfMppvEcS31Qlwnjr9OqSA6gruSe/XbyG71mm6gW5S606 ZRAQ== Received: by 10.182.111.39 with SMTP id if7mr971388obb.56.1345124464252; Thu, 16 Aug 2012 06:41:04 -0700 (PDT) Received: from barack.emea.dhcp.ti.com (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id x10sm2977371oeb.8.2012.08.16.06.41.01 (version=SSLv3 cipher=OTHER); Thu, 16 Aug 2012 06:41:03 -0700 (PDT) From: Peter Ujfalusi To: Mark Brown , Liam Girdwood , Tony Lindgren Cc: Jarkko Nikula , alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree-discuss@lists.ozlabs.org, Benoit Cousson Subject: [PATCH v3 2/9] ARM: OMAP: mcbsp: Enable FIFO use for OMAP2430 Date: Thu, 16 Aug 2012 16:41:01 +0300 Message-Id: <1345124468-8876-3-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1345124468-8876-1-git-send-email-peter.ujfalusi@ti.com> References: <1345124468-8876-1-git-send-email-peter.ujfalusi@ti.com> X-Gm-Message-State: ALoCoQkxlhh1IOqji4s1YbdcadcaqwpTw6syvrPEqOe0M2PddIQ5kTmQ2t7siy036hbxW/W4Vq3/ Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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 Acked-by: Tony Lindgren --- 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;