Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7148658ybi; Mon, 8 Jul 2019 15:37:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxetB3mm7Bbh2o89er3odk3vtfpG/VoTvA/2H76TU2ItZyaiCLP4gmZ//u2WOhVKWZwa/v4 X-Received: by 2002:a17:902:2a27:: with SMTP id i36mr27427188plb.161.1562625434349; Mon, 08 Jul 2019 15:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562625434; cv=none; d=google.com; s=arc-20160816; b=jc5dMX7Q09Ki65rQ8Ku7Go7RGHmXiFwjo1OedlFO6l67CdVfqnf5glU5mwWV+DLpk+ yoyU0fiRc0PJciAG7Gx6EGBj9c0H6QE5Gj4csOyW3oGbi0fSkbj3F+vSTpUtjoB0wLPn PoY4XbBPvwr2rhxi4sj1mQvuR4WflucfiDXf1qm5lPSQhPeOSjTFpM6ZxLoMiO0C7UNm RBNJV/cbtDnKGUDKr67rkyhqBox4wbQQj3L8T/AABkkJgAme6F3M6xhGPzP3SHZpt5RW C4wY6an6jnyL+UL6Fcw31wfaxwV3hO5FbdVX5zm6q7hzZ8VHzYfQLtwqwNlLP0jyvlZZ Tt7A== 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=goYQN8gGRbgMDLW7aVNg2bjdArnrNao71wetdy0VzSA=; b=Bj6ySMx+B5bww7zszlNcR6rzpXR7HkuB9ptlRQbbfDYwZmaJpgZ47IftIyRPEZf8zf fppDhwTKdfQtQiCU7t/l0wiociNo5uQbLaKHXWwT7z05LDw4wDwiUFP0k8OB1Y/nk5C/ bzrLk7D+8d2cuubOMaQY6EoMOoIt8RNum1j/nKF5kR4G6FwhAX6ngZbdvtkTjNdprXVu QIjlfSe3rMzsTPNChC0qi67HpXNqSVvQLIl7nLjCaAkytiZBvA1/H0UugidTfRbOcYMq 3xQH7y+q0IhG0IW+NgBHiq7gjPlrTgFm0v5DUmwiD5pNqCfYjRHzPENFkTffEwv6Gs/s 4v8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QYQ23Sy8; 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 s18si20065761pgj.541.2019.07.08.15.36.59; Mon, 08 Jul 2019 15:37:14 -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=QYQ23Sy8; 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 S2388627AbfGHPZf (ORCPT + 99 others); Mon, 8 Jul 2019 11:25:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:52996 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388611AbfGHPZc (ORCPT ); Mon, 8 Jul 2019 11:25:32 -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 004F9204EC; Mon, 8 Jul 2019 15:25:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562599531; bh=iBOC9dvPBYWGAoKwG89YY6adm4gY1wvKQMBrGA/bDF8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QYQ23Sy8S0sgNwN5kzMS4+TD6EPFOqcJBBMymAOaKhWyn23oGVn+GvdabGwJeSPnm eVJnddvlpwiPPICSbUc2ptbPzMjWlbkHiEJFpgO7/dHNe2fJ1GZaea05TxK/uaFKR2 Fhue66E0ZIUc77V321NkLJt9Vpn3wmD0wugUZI0U= 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 4.14 10/56] ASoC: sun4i-i2s: Add offset to RX channel select Date: Mon, 8 Jul 2019 17:13:02 +0200 Message-Id: <20190708150518.948056826@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190708150514.376317156@linuxfoundation.org> References: <20190708150514.376317156@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 a10913f8293f..da0a2083e12a 100644 --- a/sound/soc/sunxi/sun4i-i2s.c +++ b/sound/soc/sunxi/sun4i-i2s.c @@ -442,6 +442,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