From patchwork Mon Jan 18 11:34:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "gregkh@linuxfoundation.org" X-Patchwork-Id: 365558 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp88073jam; Mon, 18 Jan 2021 11:08:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+wp8DuCRnmNuZ/sxayne39Pt92+ZsJy1TWgG0oO7mMrKQpFTiWFXiw6bcwFrzzC1+fe+t X-Received: by 2002:a50:fc18:: with SMTP id i24mr726923edr.308.1610996896585; Mon, 18 Jan 2021 11:08:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610996896; cv=none; d=google.com; s=arc-20160816; b=IB63oG0EdIdYnwYAN9mOWuQJaflCZKmXQ4w9f+keFpbYoDlaqwu6PPlrmwxKrUdaZt Gv8vBiIdQeZJr1ejP7fjqMJwVtqExNzAFGcg9HWRNg05B5LbNKcVy1aCLQmfJ6lAFSKX n+GlCaEYxAMPwRavL2tnZhr1BLkW6xzy7WwWGNwOU8y1g/fJFojvb8xqjbZLrX0LiUEb gzhUGo9LrbumeH4XjYNO12Km74XRQpxxOvMl4k6YnDHREsCpQn0yT14wEkBk70pvbJaC /3YDSp8b/+gv5auffjc6LcW0caKlIeL26MmlP8viXXlxqEOGQkhnqOBdJF4V4FzMti1s CgbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=yPuCdlR4bVBGD/s+yZUjpvw1gnLtPrKGd2B+8myry30=; b=X02xjLzI94aC28Yb0TOax70xjwVBDuXdZWGqbxoRNaXx7eE7HMwKb+nDxGm9WkH6b6 FF1NaCAlYw+2EyzJsdcCs5RNdsqU7iMrStL2b+hFxsDX9WuE9z16cId7L9jNBmXLqmeA ICXYYN8LZyCISFSdVwFFlpUsO5+EBj7IirY6YhKx2WdPEnCaij4iZVeTAeyxF47ftiuR Ly3iK+zBF7GeCLtbrLsdUAoMXW0F+mo/Xgxw08o7yoZ66VggQJnP8Uxtml2p5VvS87tp 7bwi0zTMXZXX42OEWdgtfdw8yqizBJhsgaFMwcvrnCu37ou3nVufWOUR6IaeunBoJGSw /PGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BHC15fZm; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lm1si1627347ejb.28.2021.01.18.11.08.16; Mon, 18 Jan 2021 11:08:16 -0800 (PST) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BHC15fZm; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390552AbhARLjg (ORCPT + 13 others); Mon, 18 Jan 2021 06:39:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:34128 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390547AbhARLjd (ORCPT ); Mon, 18 Jan 2021 06:39:33 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 698B02245C; Mon, 18 Jan 2021 11:39:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610969958; bh=52cgkSDHRH+2o6cRpLrqyX2ojxeA/U2dXCx4mc7ZFyI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BHC15fZmTy/0SGXs6Y/Q1+1FnZh+bMOZtY9+67tMnQRkxA045T8BU5WvwCkeN+Ffh Aj8ufMfFkNq3ifAXrQ6KgOPEhslKyqvRYbrwQsgbXpXq/IXcHH9tvtNDyWmZKhUoOi p+5QRN6EX+wxsh4Tn4Ngz5CsfTWKzxYfYqiIiUiU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jerome Brunet , Mark Brown Subject: [PATCH 5.4 52/76] ASoC: meson: axg-tdmin: fix axg skew offset Date: Mon, 18 Jan 2021 12:34:52 +0100 Message-Id: <20210118113343.470325219@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210118113340.984217512@linuxfoundation.org> References: <20210118113340.984217512@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Jerome Brunet commit a84dfb3d55934253de6aed38ad75990278a2d21e upstream. The signal captured on from tdm decoder of the AXG SoC is incorrect. It appears amplified. The skew offset of the decoder is wrong. Setting the skew offset to 3, like the g12 and sm1 SoCs, solves and gives correct data. Fixes: 13a22e6a98f8 ("ASoC: meson: add tdm input driver") Signed-off-by: Jerome Brunet Link: https://lore.kernel.org/r/20201217150834.3247526-1-jbrunet@baylibre.com Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- sound/soc/meson/axg-tdmin.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) --- a/sound/soc/meson/axg-tdmin.c +++ b/sound/soc/meson/axg-tdmin.c @@ -228,15 +228,6 @@ static const struct axg_tdm_formatter_dr .regmap_cfg = &axg_tdmin_regmap_cfg, .ops = &axg_tdmin_ops, .quirks = &(const struct axg_tdm_formatter_hw) { - .skew_offset = 2, - }, -}; - -static const struct axg_tdm_formatter_driver g12a_tdmin_drv = { - .component_drv = &axg_tdmin_component_drv, - .regmap_cfg = &axg_tdmin_regmap_cfg, - .ops = &axg_tdmin_ops, - .quirks = &(const struct axg_tdm_formatter_hw) { .skew_offset = 3, }, }; @@ -247,10 +238,10 @@ static const struct of_device_id axg_tdm .data = &axg_tdmin_drv, }, { .compatible = "amlogic,g12a-tdmin", - .data = &g12a_tdmin_drv, + .data = &axg_tdmin_drv, }, { .compatible = "amlogic,sm1-tdmin", - .data = &g12a_tdmin_drv, + .data = &axg_tdmin_drv, }, {} }; MODULE_DEVICE_TABLE(of, axg_tdmin_of_match);