From patchwork Wed Jul 25 16:40:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 142883 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1029862ljj; Wed, 25 Jul 2018 09:40:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfXPxhgWvizGdWLAVUxqKo8lIVfbBD1sfmujIeS8SZ1z554Z+z5nH54m14VlK/nx11cODC3 X-Received: by 2002:a1c:80b:: with SMTP id 11-v6mr5485786wmi.125.1532536843445; Wed, 25 Jul 2018 09:40:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532536843; cv=none; d=google.com; s=arc-20160816; b=lJgGpjRCaA4ZI2idvuAiTW8nEkh864xy7XEj99OMP/ywivQnTedHjdxsS030JfM8ww SUAelMdls1urqZamgNRIoP3gwob+a5zg57EZsKRYgg7Baoo5092ggCui0Q4neo+4t+2H Howij+bZ3HFZAKGDa0fwkLWed6TiiWEvSF2aGkyE4zcYS3PXQPh+6gbwvpS/C35RWgy8 +xmYwUG969ya1g2vW0JKlwGN/Z/WZ5h2AsNr/a13JkL51zR5tGz6XJRfpO1r7fy58EWV SEHU3pmpUZAT3P2QrHz2+4HZDIh1PFPUkhvTAitR7xKi0rTbmHoS9qZwtk4WWvuXxIQN 66eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=EZxFbOvbG72dhr/odO/QKF4eVdeNHdse+4y1qIDxmnI=; b=qVgFaWlJFU9lSR/KECcE7bck7nMDg7tx9Hq/IbOr1zlQnf8UziRItZmyGPOFxprq0N fSqh8NBse+ro/TBC89OsZuyG9uLVrvGbvxBTaPxnkWhvhghZFHbF+JUO+cpjen1S6w3g J8w3TShpL5qLB0y5Zd9Gy2HFQtUQvmDGzGU3kMxmO8olLIE/bSLxKRk4/PyZLe4pTzz+ DilSzTFzDhl1JMyqsvNFcd7LahhwitfBZkbbu2Rozlj4JtXyn5TdrFGu2GNoEgKxNHW3 frR0PzD/m/LMZJDTW+H2xGN+Bc1gEiyULwxSTrShKeOrT7g6qhGCybD+mW2/uUVG7e7C gPVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=fEIOGE4r; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id 62-v6si11641162wrf.184.2018.07.25.09.40.43; Wed, 25 Jul 2018 09:40:43 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=fEIOGE4r; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 1491526778D; Wed, 25 Jul 2018 18:40:34 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id BDF2E267796; Wed, 25 Jul 2018 18:40:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id EA642267750 for ; Wed, 25 Jul 2018 18:40:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=fMj1b29AF4T8QX004cbN2wzd4I4vaf35jBvlF0SJ4FQ=; b=fEIOGE4rs+Jo VbQepribNO5SRZashJkPxzT/1OEXO/pJFEvouBeIx18yh/+veSdRYvx1ImN1lhDsFukxw8R6HoUPu ZvHiSRlpFcTD20WOFQPIFf6jxVckGqtXMFCDgrzJ0dETzP87b8bgpmFl8sHK0kmZfCJcX6LSYkUd1 AJkyo=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1fiMpx-0006lc-Jc; Wed, 25 Jul 2018 16:40:29 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 5A36C1123B08; Wed, 25 Jul 2018 17:40:29 +0100 (BST) From: Mark Brown To: Pierre-Louis Bossart In-Reply-To: <20180724211248.29427-4-pierre-louis.bossart@linux.intel.com> Message-Id: <20180725164029.5A36C1123B08@debutante.sirena.org.uk> Date: Wed, 25 Jul 2018 17:40:29 +0100 (BST) Cc: tiwai@suse.de, liam.r.girdwood@linux.intel.com, alsa-devel@alsa-project.org, broonie@kernel.org, vkoul@kernel.org Subject: [alsa-devel] Applied "ASoC: Intel: Skylake: BDL definitions should be __le32" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: Intel: Skylake: BDL definitions should be __le32 has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 86efd35ec1e34094914494dacb83077e5df2d1b8 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Tue, 24 Jul 2018 16:12:45 -0500 Subject: [PATCH] ASoC: Intel: Skylake: BDL definitions should be __le32 Make sure definitions are consistent with usage. Detected with Sparse. Signed-off-by: Pierre-Louis Bossart Signed-off-by: Mark Brown --- sound/soc/intel/skylake/skl-sst-cldma.c | 8 ++++---- sound/soc/intel/skylake/skl-sst-cldma.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) -- 2.18.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/intel/skylake/skl-sst-cldma.c b/sound/soc/intel/skylake/skl-sst-cldma.c index d2b1d60fec02..5bc0d38da7e3 100644 --- a/sound/soc/intel/skylake/skl-sst-cldma.c +++ b/sound/soc/intel/skylake/skl-sst-cldma.c @@ -83,9 +83,9 @@ static void skl_cldma_stream_clear(struct sst_dsp *ctx) /* Code loader helper APIs */ static void skl_cldma_setup_bdle(struct sst_dsp *ctx, struct snd_dma_buffer *dmab_data, - u32 **bdlp, int size, int with_ioc) + __le32 **bdlp, int size, int with_ioc) { - u32 *bdl = *bdlp; + __le32 *bdl = *bdlp; ctx->cl_dev.frags = 0; while (size > 0) { @@ -330,7 +330,7 @@ void skl_cldma_process_intr(struct sst_dsp *ctx) int skl_cldma_prepare(struct sst_dsp *ctx) { int ret; - u32 *bdl; + __le32 *bdl; ctx->cl_dev.bufsize = SKL_MAX_BUFFER_SIZE; @@ -359,7 +359,7 @@ int skl_cldma_prepare(struct sst_dsp *ctx) ctx->dsp_ops.free_dma_buf(ctx->dev, &ctx->cl_dev.dmab_data); return ret; } - bdl = (u32 *)ctx->cl_dev.dmab_bdl.area; + bdl = (__le32 *)ctx->cl_dev.dmab_bdl.area; /* Allocate BDLs */ ctx->cl_dev.ops.cl_setup_bdle(ctx, &ctx->cl_dev.dmab_data, diff --git a/sound/soc/intel/skylake/skl-sst-cldma.h b/sound/soc/intel/skylake/skl-sst-cldma.h index 5b730a1a0ae4..ec736921a083 100644 --- a/sound/soc/intel/skylake/skl-sst-cldma.h +++ b/sound/soc/intel/skylake/skl-sst-cldma.h @@ -203,7 +203,7 @@ struct sst_dsp; struct skl_cl_dev_ops { void (*cl_setup_bdle)(struct sst_dsp *ctx, struct snd_dma_buffer *dmab_data, - u32 **bdlp, int size, int with_ioc); + __le32 **bdlp, int size, int with_ioc); void (*cl_setup_controller)(struct sst_dsp *ctx, struct snd_dma_buffer *dmab_bdl, unsigned int max_size, u32 page_count);