Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp250071ybd; Tue, 25 Jun 2019 20:44:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8/8I813kAyJUDbXljjzbxfoWucCXtgJcVtlinFw76vGo+twWNU7IMn4RSks4Ec1530ws9 X-Received: by 2002:a17:90a:62c7:: with SMTP id k7mr1753369pjs.135.1561520664027; Tue, 25 Jun 2019 20:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561520664; cv=none; d=google.com; s=arc-20160816; b=q5Ie7QJzESduaQ1NFwBUKhTMP92YS1xiA8ZhrmHIHC9YDRS7GGr/rSMYdOJr4sBW2t Ud6mi7cdyg1nElHAsoTG2gOiXirAJ/h6XI+tTux3AgLo6zt8I8OauCUE9AAgCtozVHLK K0pC/MbO7ISNO5nLajxiVlJrmwnu8AnE4oQyD9wc/jnn65ZRba1RvAV9vpGvDv0EqyYP 0EgpNh/XQIpWnVuiauUcd3dXb6oqK68KC9jQ0kIwQ38EvaAgnCWzNSEJA3iz8qEWaFRm 2v1uLFv17y4PeCuB/tgHH+TLYCCeZInqC8vinJzHKaQEhKUrbpz8n5WCutOvO9iJnxWH FCLA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hyNg7vPSLzpwrtZpTrYA7Rxo4lqVkPFGZ9zAGAT7DwU=; b=XMh4SmcMoJ+BpZbEYJSe4LrHpsxToBpBYjypU/9UG82KwrqnCGyllpF/Mi8NF5Bs0P AlocNFo1ZT0VknOIutZbFbaiYtORWA8DTXVTyvJGK6MzEOu5F0KooUA+Ll3GvK4ubH/c J04qZSsL0oA3cl/VPhzz/JBgBSquwhl/ROiZVPQXyc1qkpSFOROCr+NsuYW/lugCAb18 6yIKx3pNs1AX1KDGMwcu2n9UW8s0auhElHgORQhwllLnGzulCQzlTEJlif2/9XfjLZSD m1IjuLudhj33wWxfiVH8+O2v2+G8UTbO++is6eR17AfeyOgPJ27+SeAVLedEHwGL6xtF AERw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dA+P+7yr; 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=pass (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 k71si798495pjb.83.2019.06.25.20.44.08; Tue, 25 Jun 2019 20:44:24 -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=dA+P+7yr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726519AbfFZDmW (ORCPT + 99 others); Tue, 25 Jun 2019 23:42:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:53106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727005AbfFZDmR (ORCPT ); Tue, 25 Jun 2019 23:42:17 -0400 Received: from sasha-vm.mshome.net (mobile-107-77-172-74.mobile.att.net [107.77.172.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 39D2B20659; Wed, 26 Jun 2019 03:42:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561520537; bh=MZaXCHw73uKdbTELCPR3kIppkZSbR9KeRJr4YUOrdE4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dA+P+7yrFoKFNYmBclYVyzmAgPfbBsdvcTaN978gJhHlbt+ZrNUo7BaCa80+XYpj/ TciIkmA/EGT+b2uYkQQvV+2T4cjH0hnDrlrXZvm+JrdB2jZ9mnVFIRJpTUcPuf7ICy QAufZgVEs04+ks6RgUoWq8/iuktMwxNd6PDj11dQ= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Marcus Cooper , Maxime Ripard , Chen-Yu Tsai , Mark Brown , Sasha Levin Subject: [PATCH AUTOSEL 5.1 22/51] ASoC: sun4i-i2s: Add offset to RX channel select Date: Tue, 25 Jun 2019 23:40:38 -0400 Message-Id: <20190626034117.23247-22-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190626034117.23247-1-sashal@kernel.org> References: <20190626034117.23247-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marcus Cooper [ 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