Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7150821ybi; Mon, 8 Jul 2019 15:40:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVfxDX1nd6EyCrKfUpmlTvF2oxrg86qKevDlnkUBB0/HDtxna4k+eTojy3Ba3fqHC0btJ0 X-Received: by 2002:a17:90b:f12:: with SMTP id br18mr27542310pjb.127.1562625608847; Mon, 08 Jul 2019 15:40:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562625608; cv=none; d=google.com; s=arc-20160816; b=oxMS7ZApuZpgoXH3w0ma7E14zlkCstA/LGGK9r9VlY4n7YsgyNaTkCOnZlG2Gu2Gap DvTkzQst0SQKL5PZhr4xvMKZDrAfv+7/snSyPT18af0myDYsqP+VQ3n+44XbnlSnLAuP OEHeX4u72YkEsGSPzumFmTADtS5hgmIUdUGXps3ZbNtJfo8F5gUWWV7pCFBACwl8IkD0 VMPtV0c8Nn8vtlpwrBD+2PlgPi7A4H2uKpeJnMLgyKSbZghORpXaOOEWiGUB6lUHn13I htBuVgwRakIkdq+Wfqu72nYgv+tOzR04+ji5Ha8dvaFtc8CbmWrE40l8NxCFpWR2uhUs +nAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SNQGdoRCzSPaIaPHa6Im4BZ8s13zo6Rzq8ViAlRFPrg=; b=Dq08U7+LoD9aXE2afM/tVlhfARhJlWvLMF0pBXZOggkPRHYy5ZQDyCrX5rT43v2u3J Cv2z058W+IFrkVq3sSv4IwB0mybEhZmqInI6WJKTLX8EGEmRDHOx4jdsYb2X6q8B8M3m Dgdf6OigHzTXlYoFVRuka47qGNyR2PJPCUbWX1zzWcovx5QB8GO44ontnqCK9x+Ebn9q s3eYyJ0eA3HGa9OC1xE2hQ4EAdAP8f+UOZmljRxCoB+Oi9iqshV3kOhKCRwt+qN6lRFl tyxrz0UfeX7cy58JQPj3+w1wYPO3jYoaoGxy1f1x/6F3swWzC8B0G6miA/qZpIusEjs7 EjCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="JIoqud/C"; 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 i19si20572700pfa.232.2019.07.08.15.39.52; Mon, 08 Jul 2019 15:40:08 -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=pass header.i=@kernel.org header.s=default header.b="JIoqud/C"; 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 S1732177AbfGHPbq (ORCPT + 99 others); Mon, 8 Jul 2019 11:31:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:32942 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389949AbfGHPbk (ORCPT ); Mon, 8 Jul 2019 11:31:40 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 092A8216C4; Mon, 8 Jul 2019 15:31:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562599899; bh=ixDuyIVwNBlt4I/Il/74gIWl5jtN2lUC4ax7LQpxNAc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JIoqud/C3i+qUWO8qAYxG5xkLFmi3uPKaCZphnScV2UloPcqbk2fQOn63Whvz2l+U v0WRQ5HSEJXvF9yIsVEtUgWxSnfKAL4AZjSzBIqKlJZ4KJgiM7IYxzOwIj6ESQEg2u rOhSTBUhNpZEutV3HUGjA1VWaOjA3C1nzJ/c6Heg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marcus Cooper , Maxime Ripard , Chen-Yu Tsai , Mark Brown , Sasha Levin Subject: [PATCH 5.1 26/96] ASoC: sun4i-i2s: Add offset to RX channel select Date: Mon, 8 Jul 2019 17:12:58 +0200 Message-Id: <20190708150527.914983492@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190708150526.234572443@linuxfoundation.org> References: <20190708150526.234572443@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit f9927000cb35f250051f0f1878db12ee2626eea1 ] Whilst testing the capture functionality of the i2s on the newer SoCs it was noticed that the recording was somewhat distorted. This was due to the offset not being set correctly on the receiver side. Signed-off-by: Marcus Cooper Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/sunxi/sun4i-i2s.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c index 8162e107e50b..bc128e2a6096 100644 --- a/sound/soc/sunxi/sun4i-i2s.c +++ b/sound/soc/sunxi/sun4i-i2s.c @@ -460,6 +460,10 @@ static int sun4i_i2s_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) regmap_update_bits(i2s->regmap, SUN8I_I2S_TX_CHAN_SEL_REG, SUN8I_I2S_TX_CHAN_OFFSET_MASK, SUN8I_I2S_TX_CHAN_OFFSET(offset)); + + regmap_update_bits(i2s->regmap, SUN8I_I2S_RX_CHAN_SEL_REG, + SUN8I_I2S_TX_CHAN_OFFSET_MASK, + SUN8I_I2S_TX_CHAN_OFFSET(offset)); } regmap_field_write(i2s->field_fmt_mode, val); -- 2.20.1