Received: by 10.192.165.156 with SMTP id m28csp975509imm; Mon, 16 Apr 2018 11:49:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx48VqaIZ89kVc9+5NygpzYc8veRRRp2jB2I22Y6WTy2b85Rg3LwvhIlY4zauGNGGFgP3FXCQ X-Received: by 10.98.109.66 with SMTP id i63mr3311269pfc.233.1523904551163; Mon, 16 Apr 2018 11:49:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523904551; cv=none; d=google.com; s=arc-20160816; b=lP8HRPtGouRFPHH2olA5/0wpd1Hap4+gkR7JPMxbXYmdA34Oz93KrNW2qWaHWU6KYK lNW/3r0+0ZnNKa4tP6ET29vn2IJNLnXe8/FjFXGsacaob+91PiUrw2X7dJvP6e7E99ai G7JnK6hik+wUs+e+zbLn6r/pvkvCxqc6LW3pMahipmvVa9rtVB36maAz8wJVLVp6gdUZ k9fjrHeOECBW1yyN7nt/W0kOnWBNlYQ2fCgeRepCFKiGMJ40DxCC5CUwZxqTw7k7gtHb CNF5tSP7t9Rpe9Byx8glikfZ3ix+A8hz7OQuwlzSC0SflMjUXDGqhTF901lDSkZQouOf 4jJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=ny215nsSATdqfM8R+TLn7aX9MWa0xuhuzOn2eAn8vjo=; b=uBELKBwfOKhh69x2kuqnrT6mfkpxsVWEq2trbdZqpWwFQ8ofnkYwzWc2EjtJMWvw3y wM3crMNhCjvBxpELy4Itvx/omWrJvGIESVHc1N3cdyYRBl7EkE20iLXauZIlswcC2gvU 1XVIovr8fVHhooEOHQJz6B16pWRky+FDetrgSYeYZRTzVjRcZPTqz4U4+BlYku+dtyrE A97OFnlshaSyChV3ueYycPkKlQRU1HO56YUX/PO6AHz1o3LlWkre6HYGz3PYT6X6eRe+ BkPLCUQw1JKC5yz+3WMIXdhgBRTzewZUvfbFLfYD4rK1l/ExwklVkTDJK6d39QFGub2d VXFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Ga2ZGDQ6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4-v6si3871064pln.468.2018.04.16.11.48.55; Mon, 16 Apr 2018 11:49:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Ga2ZGDQ6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753262AbeDPSq0 (ORCPT + 99 others); Mon, 16 Apr 2018 14:46:26 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:39668 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753099AbeDPSqZ (ORCPT ); Mon, 16 Apr 2018 14:46:25 -0400 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=ny215nsSATdqfM8R+TLn7aX9MWa0xuhuzOn2eAn8vjo=; b=Ga2ZGDQ6JOwV sS4BDWS7F2unDHkZdUf92MAQ2YUaf+nintST6B3q9gXmoSb9rbaYzqC60GAhLRcUbqJYGh2XWGaL7 onnOSuXCx7pITv5TQlbLV45s8phg3BdvJkqxluFZYqKGKTrmgd0yrd0MudT+y/Qio6nxJyTaCgZQT tzDiY=; 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 1f898t-0006HD-8f; Mon, 16 Apr 2018 18:46:19 +0000 Received: from broonie by debutante with local (Exim 4.90_1) (envelope-from ) id 1f898s-0006OU-DU; Mon, 16 Apr 2018 19:46:18 +0100 From: Mark Brown To: Kirill Marinushkin Cc: Mark Brown , Pierre-Louis Bossart , Jaroslav Kysela , Takashi Iwai , Pan Xiuli , Liam Girdwood , linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Mark Brown , Mark Brown , alsa-devel@alsa-project.org, Takashi Iwai , linux-kernel@vger.kernel.org, Pan Xiuli , Pierre-Louis Bossart , Liam Girdwood , alsa-devel@alsa-project.org Subject: Applied "ASoC: topology: Modify clock gating parameter parsing to switch" to the asoc tree In-Reply-To: <20180416175644.30081-1-k.marinushkin@gmail.com> Message-Id: Date: Mon, 16 Apr 2018 19:46:18 +0100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: topology: Modify clock gating parameter parsing to switch 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 fbeabd09236664f34ea3e4a9f7dcf5a0cdb7fc47 Mon Sep 17 00:00:00 2001 From: Kirill Marinushkin Date: Mon, 16 Apr 2018 19:56:44 +0200 Subject: [PATCH] ASoC: topology: Modify clock gating parameter parsing to switch This improves the coding style of this piece of code. Signed-off-by: Kirill Marinushkin Cc: Mark Brown Cc: Pierre-Louis Bossart Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Pan Xiuli Cc: Liam Girdwood Cc: linux-kernel@vger.kernel.org Cc: alsa-devel@alsa-project.org Signed-off-by: Mark Brown --- sound/soc/soc-topology.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index aab31144f683..ec2ef7629dbb 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -2007,11 +2007,19 @@ static void set_link_hw_format(struct snd_soc_dai_link *link, link->dai_fmt = hw_config->fmt & SND_SOC_DAIFMT_FORMAT_MASK; /* clock gating */ - if (hw_config->clock_gated == SND_SOC_TPLG_DAI_CLK_GATE_GATED) + switch (hw_config->clock_gated) { + case SND_SOC_TPLG_DAI_CLK_GATE_GATED: link->dai_fmt |= SND_SOC_DAIFMT_GATED; - else if (hw_config->clock_gated == - SND_SOC_TPLG_DAI_CLK_GATE_CONT) + break; + + case SND_SOC_TPLG_DAI_CLK_GATE_CONT: link->dai_fmt |= SND_SOC_DAIFMT_CONT; + break; + + default: + /* ignore the value */ + break; + } /* clock signal polarity */ invert_bclk = hw_config->invert_bclk; -- 2.17.0