lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   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 <>,,,
        Mark Brown <>,
        Mark Brown <>,,
        Takashi Iwai <>,,
        Pan Xiuli <>,
        Pierre-Louis Bossart <>,
        Liam Girdwood <>,
Subject: Applied "ASoC: topology: Modify clock gating parameter parsing to switch" to the asoc tree

The patch

   ASoC: topology: Modify clock gating parameter parsing to switch

has been applied to the asoc tree at 

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.


>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

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 <>
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) {
 			link->dai_fmt |= SND_SOC_DAIFMT_GATED;
-		else if (hw_config->clock_gated ==
+			break;
 			link->dai_fmt |= SND_SOC_DAIFMT_CONT;
+			break;
+		default:
+			/* ignore the value */
+			break;
+		}
 		/* clock signal polarity */
 		invert_bclk = hw_config->invert_bclk;

Powered by blists - more mailing lists