From patchwork Thu Jul 26 16:11:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 143159 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4386575ljj; Mon, 30 Jul 2018 11:23:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd8mzqd6kce4r5HGZ7PCld3dZi3Twz6f9v5yuQzJOpZtRKkTf/LCy152w6FaFhbJOW/Awgj X-Received: by 2002:adf:ea0a:: with SMTP id q10-v6mr18413719wrm.224.1532974985535; Mon, 30 Jul 2018 11:23:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532974985; cv=none; d=google.com; s=arc-20160816; b=EylqBNNOF9Uq5hChUZysUT6FzOmiPjC99WoUiv1KSsn4jJdRoyzmIfZhKq9ZNGe04Y dNi6UJeYdyQDfOcsz1Y4n2WN3HgKHiceGybRTXQyEM5zYXEvN0UjREEdWeOE5b4lok3B qcDsC8WPgKPywEELY+/QScZhxdfVhd6MduQocpuh0Vl7mtDNJu+SGb4K2kBXBrmXMehx /7gXkTo0+3QOCPVTDz95/99cc4DQjIMj0QckPRxHF/xekMFLqF+H8mZa3nN3bFtxq2pK fBRSoOg/RmCvwq55+xi//pkiehVdHc0d30JOh3JG4n9k+Z5Q47/1WRrvNZRdNbexxHIQ 9Pvg== 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=eJfOYAVqhhim9y/+9jd0MUh3LL6//rqYGyAvZhZd8Do=; b=D5Bax2huIHVlO9gEH7U94yyvJjJWEtau5ZbWEdPicZ95r19NwnTvvEjXeDG31zNxqf bKuPb7wsxiVwjXiV8I2ehhI1o7Xj2KHc96SyNGYeScCPPpDP53A9IbDTburLB5Q6XDmC bMIEqt8svA9Kwz6MuJewvoFGKzpEagkoVjYz829zaMO+yO9znCjTGVRjAceqPw6Zibl/ 5Lb9L+9GPt+LaVDT24tm+feb9z6NgpO7oF4FXio92P2Jwy7Ho6XrWu2CP2FeI1bxycb5 zAK9p0rbbp/RtXjkAhOWSmi02E6moHLn2wnkl0QKwW0N73KxdHd998lZwFe5yGf87lb3 YkCg== 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=SMDug2Rg; 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 f15-v6si12870143wrf.60.2018.07.30.11.23.05; Mon, 30 Jul 2018 11:23:05 -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=SMDug2Rg; 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 E435B2677AC; Mon, 30 Jul 2018 20:22:50 +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 4719B2677A8; Mon, 30 Jul 2018 20:22:47 +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=2.1 required=5.0 tests=DATE_IN_PAST_96_XX, 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 9A86926779F for ; Mon, 30 Jul 2018 20:22:42 +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=/P2B+DmqPuuql04gsvDZSitHsVRhOZ4R6JaG+MU+x48=; b=SMDug2RgPcGb n/rzwPZZdggKMEjGuoKV7mxmsDm2b1vpQzov9AbrhZmmVJAZIXQ0y87HI83RMu91oEMSMydUrkAYc /8QRxtnsYNEWhnJsU7Aa8mH4c6/4FQpwdPbCiitaHYRnPRw3JrloRAJTiNztXcGTKzb3bdOL2X6h5 lhDJI=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkCob-0005jh-PR; Mon, 30 Jul 2018 18:22:41 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 4F75744007A; Thu, 26 Jul 2018 17:11:12 +0100 (BST) From: Mark Brown To: Takashi Iwai In-Reply-To: <20180725211722.18944-7-tiwai@suse.de> Message-Id: <20180726161112.4F75744007A@finisterre.ee.mobilebroadband> Date: Thu, 26 Jul 2018 17:11:12 +0100 (BST) Cc: Liam Girdwood , alsa-devel@alsa-project.org, Lars-Peter Clausen , Timur Tabi , Pierre-Louis Bossart , Nicolin Chen , Mark Brown Subject: [alsa-devel] Applied "ASoC: dmaengine: Use standard pcm_format_to_bits() macro" 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: dmaengine: Use standard pcm_format_to_bits() macro 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 8adf3df4156345f1edcdfa8c7f7beeb0de351ce2 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 25 Jul 2018 23:17:22 +0200 Subject: [PATCH] ASoC: dmaengine: Use standard pcm_format_to_bits() macro The conversion from PCM format type to bits needs an explicit cast, and it'll be uglier. Since we have a standard macro for that, let's use it instead. This patch fixes the sparse warning: sound/soc/soc-generic-dmaengine-pcm.c:200:63: warning: restricted snd_pcm_format_t degrades to integer Signed-off-by: Takashi Iwai Signed-off-by: Mark Brown --- sound/soc/soc-generic-dmaengine-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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/soc-generic-dmaengine-pcm.c b/sound/soc/soc-generic-dmaengine-pcm.c index 120f7b39e256..52fd7af952a5 100644 --- a/sound/soc/soc-generic-dmaengine-pcm.c +++ b/sound/soc/soc-generic-dmaengine-pcm.c @@ -188,7 +188,7 @@ static int dmaengine_pcm_set_runtime_hwparams(struct snd_pcm_substream *substrea case 32: case 64: if (addr_widths & (1 << (bits / 8))) - hw.formats |= (1LL << i); + hw.formats |= pcm_format_to_bits(i); break; default: /* Unsupported types */