From patchwork Wed Nov 8 21:33:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 10049535 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D2FFC60381 for ; Wed, 8 Nov 2017 21:46:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4B0B295DD for ; Wed, 8 Nov 2017 21:46:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B956A29767; Wed, 8 Nov 2017 21:46:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 32D45295DD for ; Wed, 8 Nov 2017 21:46:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Date:Message-Id: In-Reply-To:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: References:List-Owner; bh=7BxB5Avq5e3cD/U0MOU4jKAxwRoxp0ViUnYDhKzaYjI=; b=VKX JyKOH+F1BEtxEiA1oPrOEXXv6srHyDfcoCqc3ySKfqt9hPRqXW9HUddlNCDVkpR/Tsj98ml2v1g+m RVET1l468zV9tM22NMUS4LK1r8Q6tTbtTW+7sMuJwv1IxOXUK+T+nT8+eS1BOrUU+LjrOKmmjyJjk ItSBTt/ABKh7Jp0a6vD+ifA/411McA55JtS6m8TAuMItAGb5Qnw9BnRU/4uoacCncCNIcdKB20Aaq ZUus2TCy6cxQLyT/GPmgNnX9luLDCQFke6Ilju5xeN+x4iFWr1RKtjc9LfPeyQVFyDZltozlpLsLb YIhbPlJcGPLPXIispBJmHECVQIB0GAQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eCYB5-0006Mg-4U; Wed, 08 Nov 2017 21:46:31 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eCYB3-0005BM-FP for linux-arm-kernel@bombadil.infradead.org; Wed, 08 Nov 2017 21:46:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=8KXvh+h/VRvu8+E5fAzS2CSWilaWBRQO/6v8U4hDXew=; b=ZKBbeDUpOR9AWmzJ/9d8rZNYR5 0hOmQHTUeP51mERQlvTwa7wpsVu1U5AbI++OcTvoy4m8tdQ05QLm6FGHXrgTgAbr4SpW9m2q6NW1C 87GGjKZnjre9ht5S1GdWL0doYNtGpWGNaK/EcGp+0NErrMD1wZze2OOOP0DqbHpop+2699tLx/s0l Ut+tX6HpZpe56PvScR6YR9JbMSQmQqNQi+QccNwQ2leu2rtvffvUdEKYh7BlBfYyVmQ6xWBHNXGhL 0E4PiSj5W2Ap0OLTwviTTpFoNvOnX/JW7ggTBDkPtN9dz0zSFD7x6U2poLJyG6IrIhRa2nqo5Nk5z 6LYRrUzg==; Received: from heliosphere.sirena.org.uk ([2a01:7e01::f03c:91ff:fed4:a3b6]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eCY04-0000Cp-62 for linux-arm-kernel@lists.infradead.org; Wed, 08 Nov 2017 21:35:10 +0000 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=8KXvh+h/VRvu8+E5fAzS2CSWilaWBRQO/6v8U4hDXew=; b=pYwHLYzV0i9m hMUP6+0lbqH11P5o+zR/3/IlWOmZ7fkkWmB8neE8anuYuo5pwVmXHlsJTa1SEMseomdegaTI0TQpw EF9hbGCiKv8M4y/+qay9c89X4rBNzvr/BGFmUT7ayoIdTN7aUrJhn9M3jVcmN0zPeSN/IP8YuA/P4 xqzIs=; 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 1eCXyq-0003hy-Bv; Wed, 08 Nov 2017 21:33:52 +0000 Received: from broonie by debutante with local (Exim 4.89) (envelope-from ) id 1eCXyp-0005cC-G2; Wed, 08 Nov 2017 21:33:51 +0000 From: Mark Brown To: Maxime Ripard Subject: Applied "ASoC: sun8i-codec: Fix left and right channels inversion" to the asoc tree In-Reply-To: <20171108154710.16407-4-maxime.ripard@free-electrons.com> Message-Id: Date: Wed, 08 Nov 2017 21:33:51 +0000 X-Bad-Reply: In-Reply-To but no 'Re:' in Subject. X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171108_213508_368431_C6B5C3B1 X-CRM114-Status: GOOD ( 17.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni , alsa-devel@alsa-project.org, lgirdwood@gmail.com, stable@vger.kernel.org, codekipper@gmail.com, Chen-Yu Tsai , broonie@kernel.org, Mylene Josserand , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The patch ASoC: sun8i-codec: Fix left and right channels inversion 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 18c1bf35c1c09bca05cf70bc984a4764e0b0372b Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Wed, 8 Nov 2017 16:47:10 +0100 Subject: [PATCH] ASoC: sun8i-codec: Fix left and right channels inversion Since its introduction, the codec had an inversion of the left and right channels. It turned out to be pretty simple as it appears that the codec doesn't have the same polarity on the LRCK signal than the I2S block. Fix this by inverting our bit value for the LRCK inversion. Fixes: 36c684936fae ("ASoC: Add sun8i digital audio codec") Cc: Signed-off-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai Signed-off-by: Mark Brown --- sound/soc/sunxi/sun8i-codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sunxi/sun8i-codec.c b/sound/soc/sunxi/sun8i-codec.c index 038107baf414..c2ceca485d6a 100644 --- a/sound/soc/sunxi/sun8i-codec.c +++ b/sound/soc/sunxi/sun8i-codec.c @@ -199,7 +199,7 @@ static int sun8i_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) value << SUN8I_AIF1CLK_CTRL_AIF1_BCLK_INV); regmap_update_bits(scodec->regmap, SUN8I_AIF1CLK_CTRL, BIT(SUN8I_AIF1CLK_CTRL_AIF1_LRCK_INV), - value << SUN8I_AIF1CLK_CTRL_AIF1_LRCK_INV); + !value << SUN8I_AIF1CLK_CTRL_AIF1_LRCK_INV); /* DAI format */ switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {