From patchwork Thu Jul 26 16:11:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 143158 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4386467ljj; Mon, 30 Jul 2018 11:22:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf1yOuY6zDSYmJ80AjQpE+pkb7WNm6m2owx872fvOEVSiz77Fi5kNqwYFKWaleNQ5m9lYO7 X-Received: by 2002:adf:ff11:: with SMTP id k17-v6mr18395454wrr.255.1532974975971; Mon, 30 Jul 2018 11:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532974975; cv=none; d=google.com; s=arc-20160816; b=TiqHcl8PEOhdsijOWZKNmNOxzfmxRnJnVGt1AwWKCyqeLfixGKqhHC0H+CoWgrHtcA PQEoNDmUypFNq36FdzrXbHmH9TXPCTiEFv9lPxtz9HJlsTnUFaFe7keZpKoU+HxJF1Ks kawH88/fFF1xAxBiF9/PN2hIeFhyrzEPnT1nkKrh3fWRKl76AiXpct0S+lV+nTafjKVe FlvfkoM4ekeYx4bN6vVNHSB/C1h8BVIPQHyy9hkacdpExmW/KafrmJFVPlHM/W5K7R3F CeB9+6Snd9CDY1leKHYIS6QwYIq0/+C+07PW2WXm6cjK1gJ0hTcrW/p6NLE+2IaY+ph6 OEWA== 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=81dk36flU4WnOwDXg4k/SeykccsBIS3nwsinqBU8gZA=; b=bGukXHCr9/HcF/oBhUBKNrJb0Xzn4ypy0UDN7WZfCvNuWxR8BUTejCBW4Tr5FPj3mn MlC9lnHkhuMvsHYemuFO9T5ZMfgzLn8ZUxfE+Nit2v1hLCwh8rK17T7ofhp1uNTcfzHn eJl9deRrZA1QrKR8b/isJIzkHKyFsShL3u2ZlmyFI9yAHZYJAnVf1m8qugrBbzwDqwZG dqqfy9EmAbor/6jFUsHZVCCrh/LJ3AghiUFkeo+cEUd0O5HkP/S1w1X3MMO/QLUoBeDo UeGSlhcSqmt/S5iIn0R0raY8LdEfoHlZ6xX2Dx/w6ePZoVNy15qCSDXZCf6rWb9uv6e4 Mqzw== 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=oxe5xjAf; 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 i76-v6si174759wmh.34.2018.07.30.11.22.55; Mon, 30 Jul 2018 11:22:55 -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=oxe5xjAf; 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 824B82677A5; Mon, 30 Jul 2018 20:22:49 +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 4E34F2677A5; Mon, 30 Jul 2018 20:22:45 +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 9857226779C 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=He6PvPrQzQjDEcl+A1Dp7+NFjkhf6ta7MMe6c1uJLG8=; b=oxe5xjAffMix G4ppUR7FZx4H68z0rQFX1DW0IqHvWMbVpt9jXxS5fMA1YYmNEn1fuPw+eEDTuLKFK/vjG1Y/EsdKf hslOyJTywhw0XAYvobhA4pmK5oW9d401pIo4t3SBDNDR+OQ3Vw+R+q8q1WO8Mg5FWOBHwDJqboXFj /wWNE=; 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-0005jV-8g; Mon, 30 Jul 2018 18:22:41 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id DAAFE44007E; Thu, 26 Jul 2018 17:11:20 +0100 (BST) From: Mark Brown To: Takashi Iwai In-Reply-To: <20180725211722.18944-6-tiwai@suse.de> Message-Id: <20180726161120.DAAFE44007E@finisterre.ee.mobilebroadband> Date: Thu, 26 Jul 2018 17:11:20 +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: pcm186x: Declare PCM format with snd_pcm_format_t" 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: pcm186x: Declare PCM format with snd_pcm_format_t 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 79b8a50813a80ac15fdcdc96674098dee15eaaf5 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 25 Jul 2018 23:17:21 +0200 Subject: [PATCH] ASoC: pcm186x: Declare PCM format with snd_pcm_format_t The PCM format type is with __bitwise, so we should use the dedicated snd_pcm_format_t instead of int. This fixes the sparse warning like: sound/soc/codecs/pcm186x.c:268:44: warning: incorrect type in initializer (different base types) Signed-off-by: Takashi Iwai Signed-off-by: Mark Brown --- sound/soc/codecs/pcm186x.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/codecs/pcm186x.c b/sound/soc/codecs/pcm186x.c index 88fde70b1e9e..690c26e7389e 100644 --- a/sound/soc/codecs/pcm186x.c +++ b/sound/soc/codecs/pcm186x.c @@ -265,7 +265,7 @@ static int pcm186x_hw_params(struct snd_pcm_substream *substream, struct snd_soc_component *component = dai->component; struct pcm186x_priv *priv = snd_soc_component_get_drvdata(component); unsigned int rate = params_rate(params); - unsigned int format = params_format(params); + snd_pcm_format_t format = params_format(params); unsigned int width = params_width(params); unsigned int channels = params_channels(params); unsigned int div_lrck;