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: 1293481 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 001A4DF223 for ; Wed, 8 Aug 2012 09:12:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964903Ab2HHJMN (ORCPT ); Wed, 8 Aug 2012 05:12:13 -0400 Received: from na3sys009aog130.obsmtp.com ([74.125.149.143]:48375 "EHLO na3sys009aog130.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964895Ab2HHJMJ (ORCPT ); Wed, 8 Aug 2012 05:12:09 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]) (using TLSv1) by na3sys009aob130.postini.com ([74.125.148.12]) with SMTP ID DSNKUCItaBMhw/g8KXDj6csBXlDTi/uAOeWZ@postini.com; Wed, 08 Aug 2012 02:12:09 PDT Received: by obbuo13 with SMTP id uo13so854626obb.19 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=eJTzRLofYulekhaPoEhQhV/fLRNbVwaGN/PruI8vaOc6qDD/qfjORR6aMmWUnPrdHz skzBnSVEu74xJZEF7KECIF2JGeuhAQ4uWvOnzgjC8BHVIPO/oSOHZmdUDvXbmR3lpKWf ZO/J5+pXTWOMpPmv7fkwFCUmLaTpCvDTTSo+J6PGt6E0/VPcPyJxaAJBGQ59A0zDnH/m 51Lgc2Obk100nHlXtMYz3VV9F9BPVXpwzTn9o4w9yC0+hfgW4N++7J/B7DyJoop8kNxF lUIUnCuvjlFeLqEiZC1oX2jbFb1+8pUjU4NHyRJfPgkqiOxacdeim4mJgUN0Qd6JXbS0 /Xiw== 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 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 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: ALoCoQmNBIoC8LdWCHFSX0uZrHIg39JrYHNp7XWbNbFhx+Qe/ydi90fnEgwCCOaGV9UJwFrqnRnP 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 --- 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;