From patchwork Tue Sep 4 12:08:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 1416981 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 3BCD93FC85 for ; Thu, 6 Sep 2012 16:26:16 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T9eZ5-0006R9-8L; Thu, 06 Sep 2012 16:04:23 +0000 Received: from na3sys009aog116.obsmtp.com ([74.125.149.240]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1T8rvH-0007Bx-Kk for linux-arm-kernel@lists.infradead.org; Tue, 04 Sep 2012 12:08:04 +0000 Received: from mail-ob0-f177.google.com ([209.85.214.177]) (using TLSv1) by na3sys009aob116.postini.com ([74.125.148.12]) with SMTP ID DSNKUEXvIR24y3ywBGWmQq1i8f2zUCLapVO/@postini.com; Tue, 04 Sep 2012 05:08:03 PDT Received: by obbta17 with SMTP id ta17so11265030obb.36 for ; Tue, 04 Sep 2012 05:08:01 -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=vPZuUojwSGUexpMxHZD7e7vXk1gmkWRM+egYnVxJgP4=; b=Hu0DneSM+k5qIyx5OuvVOj17puU0kq3CjrLVpiVPY010dBXqJoy0qhOY2V3svdRS0I LvQZN7z1niSWCk66FVOXLoZoBLxOk5jAOm3otgMYIno9GLHqK/M7aq7EI9iWQ7R4Vf7X 47iWmUgMlvRYypZ+pksZvmO68RnBRSyft9T+hFKh//3gniTYx9TJ6vAEGWlK8oYCGb/1 XR0GNNwcz1a9c/UnvB8FzHoNkCcdF4rNui2ngaTkZJptu+FsHpxH9H4CWmccAdheblmv Y87a6DFRHWF9/cTLdgOJLvAJgOLm4YCjE76y0Gb7X1AGxovU0EHiXsIplQOFT3CIXgOA TNrA== Received: by 10.60.25.38 with SMTP id z6mr16488162oef.15.1346760481392; Tue, 04 Sep 2012 05:08:01 -0700 (PDT) Received: from barack.emea.dhcp.ti.com (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id g8sm14150577obz.16.2012.09.04.05.07.58 (version=SSLv3 cipher=OTHER); Tue, 04 Sep 2012 05:08:00 -0700 (PDT) From: Peter Ujfalusi To: Russell King , Janusz Krzysztofik Subject: [RFC update 2/2] ASoC: omap-pcm: Do not check DMA sync_mode Date: Tue, 4 Sep 2012 15:08:02 +0300 Message-Id: <1346760482-12794-3-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.7.12 In-Reply-To: <1346760482-12794-1-git-send-email-peter.ujfalusi@ti.com> References: <1346760482-12794-1-git-send-email-peter.ujfalusi@ti.com> X-Gm-Message-State: ALoCoQlKtQmUHKTxDh+X67f5oBnMhqt/JKf9P9C5AdhmagUlv3p8P5ni7I39L0Smsd8LM88Kja7I X-Bad-Reply: References and In-Reply-To but no 'Re:' in Subject. 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.240 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] X-Mailman-Approved-At: Thu, 06 Sep 2012 10:43:31 -0400 Cc: alsa-devel@alsa-project.org, Mark Brown , Santosh Shilimkar , Jarkko Nikula , linux-omap@vger.kernel.org, Liam Girdwood , 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 OMAP dmaengine now supports element mode also in cyclic DMA so we do not need to block non PACKET modes. Signed-off-by: Peter Ujfalusi --- sound/soc/omap/omap-pcm.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c index 50ae048..0f88db3 100644 --- a/sound/soc/omap/omap-pcm.c +++ b/sound/soc/omap/omap-pcm.c @@ -32,7 +32,6 @@ #include #include -#include /* needed just for OMAP_DMA_SYNC_PACKET */ #include "omap-pcm.h" static const struct snd_pcm_hardware omap_pcm_hardware = { @@ -83,15 +82,6 @@ static int omap_pcm_hw_params(struct snd_pcm_substream *substream, return 0; prtd->dma_data = dma_data; - /* - * This is the only parameter we don't handle with DMA - * engine - so we insist on OMAP_DMA_SYNC_PACKET here. - */ - if (dma_data->sync_mode != OMAP_DMA_SYNC_PACKET) { - pr_warn("ALSA: omap-dma: DMA using non-packet mode?\n"); - return -EINVAL; - } - req = dma_data->dma_req; err = snd_dmaengine_pcm_open(substream, omap_dma_filter_fn, &req); if (err)