Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4360774ybl; Tue, 20 Aug 2019 10:42:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqIIimNQ9PHs/T7iXkBcjtwczsy/1EDn0mVVizwF/qSezyVBVZk+9uyC4L5sFLHBT5ZSal X-Received: by 2002:a63:b346:: with SMTP id x6mr26077754pgt.218.1566322952020; Tue, 20 Aug 2019 10:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566322952; cv=none; d=google.com; s=arc-20160816; b=uKEraSOSCtPV8qD0lbWufKOmcVgdhKM6BtIjWHRBrQpgU6GLeX4yZ44wEeG0fsDTit +WcEQTWv4w1eJZ7dWZZyuwBWBe2s7yGFOjehol12VBPBbTuJ1mPjIBoHptvxVmNEofAU 0cDNyl3XV1swdmYwCmZ7v5bkvVKkfJriPjmJN22hVbB47MbzbmHDiVN5lQJckDlLkqCV BLEdbo/+lmmldDTpA7Aq9mP6rI1hWiudXQXHW6E5/b5VTUlqRolWRYC6pW1kfkMz/Hr7 M/tiyQYL3cna2nf/lWS+FBUkPrRI1lETfqY1y7lxrRYFggl3+7DsfBfmI1SHYYpWjH0A d9Uw== 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; bh=L1Zn2ORD9FSrc1HVb+RScuNQ8y1rYfCN6SkmynQKZbI=; b=Ymw0JsvryIgGrCzUTYzt6r9SBE3qsGIgNf4f54m9CaYRle/Jq5szUaQvq1976ZoHx4 jVIQq10HJ2V9gr1D2gn+jUCqUxsyZMw3uzhJzKshw1er8ieBh2pWOGhExd04liJtxNly 42D05zHBDnPWU8CcqWE4PhguDrtDQEuIkos2iFoQV2xgcw++v/uFrbAcMvWR+fiaPFMg Jvm6uWkRQoFSlaCi4AK81ezEtHqBPLc0hEA4G9uSfRas5PKdnoqsE2JM1FVQ4Wvrwnw9 sMQ93rSFo/7/zPjboy6VTDdBZBlR8iHUPjAJbYYL5VZIaztYm6lVIe8gItPZlFPBa4Ck cSKQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si13558138pfa.76.2019.08.20.10.42.16; Tue, 20 Aug 2019 10:42:32 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730687AbfHTRlT (ORCPT + 99 others); Tue, 20 Aug 2019 13:41:19 -0400 Received: from mail-wr1-f97.google.com ([209.85.221.97]:41215 "EHLO mail-wr1-f97.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730142AbfHTRlJ (ORCPT ); Tue, 20 Aug 2019 13:41:09 -0400 Received: by mail-wr1-f97.google.com with SMTP id j16so13258507wrr.8 for ; Tue, 20 Aug 2019 10:41:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:message-id:date; bh=L1Zn2ORD9FSrc1HVb+RScuNQ8y1rYfCN6SkmynQKZbI=; b=svoQMP8ysbxFtPKojbzTmBwetgIPiUkmSYrRvGxxPyAU1zBMpb7PlC3M4mTQN7o8AU xSMqztJROemb4SHevWbBOpChLuzvFxz5mrLjfW9rVr79N35DHJMCvrYqsjDqItN8ZdLK 6xHXJmuDk7FMr0otNhrWdK5zlQ2GNa5KQ1U5oBVpzBl9MYh5X4oiUgdoBp/ULNMVO9Zq UwToufD0Q2pmYjJKgVm/4iJ5JSI4EZTo9TH674kXz+EbeLuLxL0yYruMXmOOCTR2IllI QoYZB6XXF22+h7SoJryRU7jptGOm/XAwHHAOIkRGCaPwx6wAkIyxmLRy8Os7NnXXpLYg 6qfA== X-Gm-Message-State: APjAAAVzXq80fAOMDdSPEQMYrew7NSEIGTpviPshqd8uYIL4xPF99UPl DOqlEyLZvJaTvdSIRSMLCc1yKn+BpLzZCEShAr1V04nhU24qRdREb2N8Cq/g1A4FuQ== X-Received: by 2002:a5d:4950:: with SMTP id r16mr35050963wrs.347.1566322867715; Tue, 20 Aug 2019 10:41:07 -0700 (PDT) Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk. [2a01:7e01::f03c:91ff:fed4:a3b6]) by smtp-relay.gmail.com with ESMTPS id x15sm1831wmj.21.2019.08.20.10.41.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2019 10:41:07 -0700 (PDT) X-Relaying-Domain: sirena.org.uk Received: from ypsilon.sirena.org.uk ([2001:470:1f1d:6b5::7]) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i0883-00033G-FN; Tue, 20 Aug 2019 17:41:07 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id D4AE3274314C; Tue, 20 Aug 2019 18:41:06 +0100 (BST) From: Mark Brown To: Maxime Ripard Cc: alsa-devel@alsa-project.org, broonie@kernel.org, Chen-Yu Tsai , codekipper@gmail.com, lgirdwood@gmail.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Brown , Maxime Ripard Subject: Applied "ASoC: sun4i-i2s: Replace call to params_channels by local variable" to the asoc tree In-Reply-To: X-Patchwork-Hint: ignore Message-Id: <20190820174106.D4AE3274314C@ypsilon.sirena.org.uk> Date: Tue, 20 Aug 2019 18:41:06 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: sun4i-i2s: Replace call to params_channels by local variable has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 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 c7dd0828c088a71f30de8d249f63b2fa9f0d322d Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Mon, 19 Aug 2019 21:25:10 +0200 Subject: [PATCH] ASoC: sun4i-i2s: Replace call to params_channels by local variable The sun4i_i2s_hw_params already has a variable holding the value returned by params_channels, so let's just use that variable instead of calling params_channels multiple times. Signed-off-by: Maxime Ripard Link: https://lore.kernel.org/r/c0faaac69ad40248f24eed3c3b2fa1ccc4a85b70.1566242458.git-series.maxime.ripard@bootlin.com Signed-off-by: Mark Brown --- sound/soc/sunxi/sun4i-i2s.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c index d879db581073..77b7b81daf74 100644 --- a/sound/soc/sunxi/sun4i-i2s.c +++ b/sound/soc/sunxi/sun4i-i2s.c @@ -412,10 +412,9 @@ static int sun4i_i2s_hw_params(struct snd_pcm_substream *substream, /* Configure the channels */ regmap_field_write(i2s->field_txchansel, - SUN4I_I2S_CHAN_SEL(params_channels(params))); - + SUN4I_I2S_CHAN_SEL(channels)); regmap_field_write(i2s->field_rxchansel, - SUN4I_I2S_CHAN_SEL(params_channels(params))); + SUN4I_I2S_CHAN_SEL(channels)); if (i2s->variant->has_chsel_tx_chen) regmap_update_bits(i2s->regmap, SUN8I_I2S_TX_CHAN_SEL_REG, -- 2.20.1