From patchwork Wed Nov 8 21:31:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 118346 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp5931193qgn; Wed, 8 Nov 2017 16:13:38 -0800 (PST) X-Google-Smtp-Source: ABhQp+SZ4xHmMpE2uuFGl+EnxvXYNC+20e9f67ab4BOPYbVAG84EAepdnYp7bbvO+o97XEon6ZOe X-Received: by 10.28.173.199 with SMTP id w190mr1663078wme.69.1510186418414; Wed, 08 Nov 2017 16:13:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510186418; cv=none; d=google.com; s=arc-20160816; b=hOcghg6cEoqIMO+pHXI1v32ErMBFqI9elyiZ6+MmSq+HNcAIsUZ2/sNO2w0RQIHhrI aBeq5q8hcfjW3Fcf7/XmfQTSAC3qDtYrSFp4o1eZD/+tslxaZYQjbpmu9a/O93xdfOWf LcQ1B1bgk/2tCT92GxZBwUj9gGTqnb2SxqxpQoVUiMNI2Y0+HDNlcnjYz5A4iLJRCbOW HaI8NtTltock2KyZMHTpoeHmJyCCaC2l6cbHj6lJmP89eYWAF9kpwDk57Vif8CIRxn3T Av54pNGhoT6DohnO7H3+6kEOmyhY/yuH8m9DurnBDDtG5wyu0H2TIJ3IoQZ91EFWS5Nt rTMA== 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=N4kJHpEGD2SNfVdzYTzalN75LlVwI+ItN4/1LgkC8yE=; b=bjweRte+M7FptS8qeXwx31Vt8rYBAW8r/7RCVxrVT+WkyBRUyHktehCsCZ37yYi3EA NHjTfWnjlbXhtZ6zeg7SqE+WT2SE1X0odC4xBdN0nooI2pMp7juuzqjDKvmJWmCkoGyl yuRXu/vU1j+AWo4inUj3SOtvoVzO/pWRpaM14ZC8TILBUeaysnIENpCFSvO3dZe0kbFj V6KQHabQAbWScVK8gEhVZ9Wk/dlCAxpf2s6ZWjbt+VjpRkMzEleVmbwsY7JKg7Gzt4Zu vBfUys9tD9gBzAK+AbO9goyBAYYXv/dTTH+IFzdoJu2v1LtSuYMI7I6sWtWZiq53SP0T MLCA== 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=B4/Sigjp; 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 Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id r65si4436443wmg.163.2017.11.08.16.13.38; Wed, 08 Nov 2017 16:13:38 -0800 (PST) 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=B4/Sigjp; 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 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id B75672676E3; Thu, 9 Nov 2017 01:12:16 +0100 (CET) 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 8E43A26768F; Wed, 8 Nov 2017 22:38:31 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, 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 336EB267694 for ; Wed, 8 Nov 2017 22:32:08 +0100 (CET) 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=DYlcunpPxnA7CmsYxBdnSPKrRBx5mD1hWTsKzwOxr8Y=; b=B4/SigjpLmOz 88YtGe132S/Ny1H6JUKe+pKCS/xYXzZcbme2aGeKNZxOxyG0YEHg8J7ZJsHcUjYzAbBpO1EHGIb9+ jYVQqAm9ull5J+NkYiEFQoGoNIOoMokgEVuVfDITwEMQnvNSRLW/0KTVMj+yR8u5u5oorpZk5PVaw Yxvcs=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eCXwI-0003f3-Vi; Wed, 08 Nov 2017 21:31:15 +0000 Received: from broonie by debutante with local (Exim 4.89) (envelope-from ) id 1eCXwI-0005Ew-3o; Wed, 08 Nov 2017 21:31:14 +0000 From: Mark Brown To: Gustavo A. R. Silva In-Reply-To: <94d7abf866dbcc4052a36ca14e53f1ff8aa30e83.1510170034.git.garsilva@embeddedor.com> Message-Id: Date: Wed, 08 Nov 2017 21:31:14 +0000 Cc: alsa-devel@alsa-project.org, patches@opensource.cirrus.com, Takashi Iwai , Liam Girdwood , Mark Brown , "Gustavo A. R. Silva" , linux-kernel@vger.kernel.org Subject: [alsa-devel] Applied "ASoC: wm8994: mark expected switch fall-throughs" 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: wm8994: mark expected switch fall-throughs 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 9d94305a7df4ce6af5070baa92cc784786b748b9 Mon Sep 17 00:00:00 2001 From: "Gustavo A. R. Silva" Date: Wed, 8 Nov 2017 14:04:43 -0600 Subject: [PATCH] ASoC: wm8994: mark expected switch fall-throughs In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 402005 Signed-off-by: Gustavo A. R. Silva Signed-off-by: Mark Brown --- sound/soc/codecs/wm8994.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.15.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/wm8994.c b/sound/soc/codecs/wm8994.c index 3896523b71e9..f91b49e1ece3 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -860,6 +860,7 @@ static void vmid_reference(struct snd_soc_codec *codec) switch (wm8994->vmid_mode) { default: WARN_ON(NULL == "Invalid VMID mode"); + /* fall through */ case WM8994_VMID_NORMAL: /* Startup bias, VMID ramp & buffer */ snd_soc_update_bits(codec, WM8994_ANTIPOP_2, @@ -2654,6 +2655,7 @@ static int wm8994_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt) case SND_SOC_DAIFMT_DSP_B: aif1 |= WM8994_AIF1_LRCLK_INV; lrclk |= WM8958_AIF1_LRCLK_INV; + /* fall through */ case SND_SOC_DAIFMT_DSP_A: aif1 |= 0x18; break;