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: 1313081 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 19C713FC23 for ; Mon, 13 Aug 2012 14:22:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752025Ab2HMOWn (ORCPT ); Mon, 13 Aug 2012 10:22:43 -0400 Received: from na3sys009aog113.obsmtp.com ([74.125.149.209]:41758 "EHLO na3sys009aog113.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752013Ab2HMOWl (ORCPT ); Mon, 13 Aug 2012 10:22:41 -0400 Received: from mail-ob0-f170.google.com ([209.85.214.170]) (using TLSv1) by na3sys009aob113.postini.com ([74.125.148.12]) with SMTP ID DSNKUCkNsLbZZwawIy2Pr3uLcHlVDEEtbQ8E@postini.com; Mon, 13 Aug 2012 07:22:41 PDT Received: by obbwc18 with SMTP id wc18so4915240obb.15 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=DodkhysFih14X4fuDJXWJoyUdLlMtZAlJ0S1fr92eKnbhvczPJf2R3/Mfeexu1KEU7 nkYc9DCs76i9CCDgYXAnMkrECxiNCVPYV7CgULfSdRoS5TvoK63WGTAc6yndSJH1H/Jp xFBBPKBtm3JeOr8m13aNhlFFaQgb7SXF3J4FOFrc2pzVikSXhfWqSbgDd6r3D3IDYFP0 v4tEyFD1jrFuNqSaWDkxfBspO1oPMotprCkRTzPzw+CO3oFg8eA65BsS2MCvBcSrkooJ Thsg00cm1Sq/t8xbTcb4C2gFOycxsZUrIcqc4IuHIVbtViDh+qV/HSjOvce3a71Zca78 fqPQ== 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 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 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: ALoCoQk7gvPQsePdISh+unHEK18KdYn6GnA9TrwhLLGvyg4fVWViPSqCWgSpFZ2zaYlp0DLASb4k 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 --- 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;