Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4444693ybi; Mon, 3 Jun 2019 10:58:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwja4YI42LUv7J89u9dsKrbohAkSlUkb++IqtrV/ne1qCrMQCnqgWHmJDLmHSomtoaw14yX X-Received: by 2002:a17:902:1029:: with SMTP id b38mr31034252pla.72.1559584719873; Mon, 03 Jun 2019 10:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559584719; cv=none; d=google.com; s=arc-20160816; b=ZYSQaDnJHw8jzaGXl/Akqu7tja9ZXJjy4ip/Vz/3UOGjXpX7KjlRkjhr28+767Xf5h MYXOjJJ63aIJCFiXdj9BOmG2rbjccO4AVacyqYZHkKkf0tGAWDHObaMSvLqGc8GkGl6W ClqyVYPfGUC0dn3viY/WX3VU2NI2LNohltPQZpzyavhTj3NFPXhKZduVA8jrq3xwNKrG C/DcbK19ymcW6UNuL8g8UmssoFWadfZXJEjIvS3JJBIWfEFt+Ir6d4ZJxo0hsN/628nN a/4DMjCA3d6XxTjEAI9ozuteq6JSw+qgcqKxWgCoVseQp2yLBrehHDTr6HtU8Ot2j+oO pGzQ== 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=d+gHoaqCUhQT6e1Ym0xN6NiXtzxs58xfZkboy1ldAY4=; b=D2HYr8kGLtlnOfnOYUMJn/4xII5PFCLajsWCF7arBJrucN560SEI/LJdHMHXiQeumc GEIpo0deR9CVD4poxuz8bytg1xxcucz/xn9nzKU+hkEtgIZaspxIv999vuGyUQoXZhdK gZ7GKogyq+em5b9gqPRCRoKo67J8uOH9Fu4f+XiJRlOiA8on/+lljwhl1CO7zaQTkc27 k/3ZiDC+2WudXt8f86mbexcchkystCUDVbZpAGepmzbDo/QdkaH5m3ZJsbOmHEr5KvXx FOhMZNCf6nSoeB1qnNv8TLCzfI+sz8aACZ7lUCwMK/B8IY1G/UgvsN92i3fCi9tCPz4e K5nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h5dZgeoI; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d34si929966pld.82.2019.06.03.10.58.23; Mon, 03 Jun 2019 10:58:39 -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=@gmail.com header.s=20161025 header.b=h5dZgeoI; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729104AbfFCRsQ (ORCPT + 99 others); Mon, 3 Jun 2019 13:48:16 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:40729 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbfFCRrk (ORCPT ); Mon, 3 Jun 2019 13:47:40 -0400 Received: by mail-lf1-f68.google.com with SMTP id a9so12869913lff.7 for ; Mon, 03 Jun 2019 10:47:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=d+gHoaqCUhQT6e1Ym0xN6NiXtzxs58xfZkboy1ldAY4=; b=h5dZgeoIw79Kv/1VWSq4u0iUmi8FcFdS5XaGrfJHimMztfcNh7dQVIiKTiQVrkFIDN tt/CEWjxMPtIutWCG+Qg+dtaAfT8RTFKodnxjVUm+CTtev6nBWMKe1yR60NbdJEjuLOi C+DB7NPOh7+CSv6DMZJCEVsOwd/i3pQcTjpXDt/Wn5ifvBjUm2lbprVhPFw0q4fsoiLr TcIXPDhB2iLwZP0At3Jw9MdR5dSfxgLEYObLerFRfewHaFrjRn6FKPzO7wIez3xx1ttZ 7iqSRQDjsL6B1qv5AlpMCLWBsJs2IKTdBCpAA7J3Uno8uUTSJ1vnaWTAZheT04VtAZED 0P2w== 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:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=d+gHoaqCUhQT6e1Ym0xN6NiXtzxs58xfZkboy1ldAY4=; b=L157T4tViC3yD69RjJ1qwL9jX4Au04wTvfgMfJkWzEXAvqf/7revoJnrrrN6+aozFw gDdPsfFqTiaVu0cytlE4tMahnX2dEgtNpmMFL51cBCsD6HnOzjtrfHybB1nQTZorwZ+k 597OZD8y6cg1X2MmkAsePtzKp3lLRMNe1flKs0F8hM95vqhaha5L/mb2opHHhURbAFOX qILXcjt+iWa8EkOAm+dsVISeXVpTYE2oDMYlmyoWBaPCQQm6j8b2UnajzSjTg/jIyPNR l7J9QMEyquuPJutQPAeYX6oIswgvWcN25ZOouJ17BCpxAT59qbepc0xmr/AaMEAeDhqN wWyw== X-Gm-Message-State: APjAAAUjZH5UYo7xrVGiOmaM5i318/MEb6H8s8zVmxSgRINuSTjnPzur qu9njVevbIj0choCfE043yU= X-Received: by 2002:ac2:5938:: with SMTP id v24mr4108075lfi.161.1559584059490; Mon, 03 Jun 2019 10:47:39 -0700 (PDT) Received: from localhost.localdomain ([188.150.253.81]) by smtp.gmail.com with ESMTPSA id n7sm2803532lfi.68.2019.06.03.10.47.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jun 2019 10:47:38 -0700 (PDT) From: codekipper@gmail.com To: maxime.ripard@free-electrons.com, wens@csie.org, linux-sunxi@googlegroups.com Cc: linux-arm-kernel@lists.infradead.org, lgirdwood@gmail.com, broonie@kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, be17068@iperbole.bo.it, Marcus Cooper Subject: [PATCH v4 2/9] ASoC: sun4i-i2s: Add offset to RX channel select Date: Mon, 3 Jun 2019 19:47:28 +0200 Message-Id: <20190603174735.21002-3-codekipper@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190603174735.21002-1-codekipper@gmail.com> References: <20190603174735.21002-1-codekipper@gmail.com> MIME-Version: 1.0 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 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 --- 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 90bd3963d8ae..fd7c37596f21 100644 --- a/sound/soc/sunxi/sun4i-i2s.c +++ b/sound/soc/sunxi/sun4i-i2s.c @@ -456,6 +456,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.21.0