Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1225645ybg; Wed, 29 Jul 2020 08:46:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQ2m0YScF/F71+rQzd/Y2sYpzLvPivn4YILgU0f5rHbTF5ZNdHhLlZjsR9+m6HiBcdH5gr X-Received: by 2002:a17:906:3a4c:: with SMTP id a12mr14279513ejf.306.1596037602997; Wed, 29 Jul 2020 08:46:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596037602; cv=none; d=google.com; s=arc-20160816; b=S0wFI5Coj+pFDMqeS1YLJJvuAloUXmdD8prxmYEAc2sQ2nF7x0PElAqVtWcYej7mCm xjpD80rKCOWdwMXbb50pIvEAThNg7ZFzB2ClRKGm4F8ukc9WexQ1pEmblLtBiVJi3Cr5 N+QKjvYLfefvD6fVG2LBIPATADH3yFLfurRv0LA3cPrjznxNOQoL/FGqd9rjk7zrGf1D PVouRigNyJyRj8YI+HXv8rfzV62OTbZQgltmWpaDcelPH6kCNvoF18mmseC+ejEJQIGL 0WdnSNVUyVzVCjyPM+riRMIPw9951r+o0N8ZBNt/cVzOl8k1nWPeE7QA8AFEDkFjamTb 46Yw== 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=odKL8nfgi2JfYFNsaHMY4SKWdmff32MEW/xIQyAYpOU=; b=bjSzkMDa2PtdF58mXOYJac928qztKuvXOJATXhxECOkZCsXQGEBd62qEJKl3Ei5JEh VvF0S7iv+rFGL+/vfmJ+8lsgZLFFhz7/wMPUirwX1froeeLLzKl3ddOslwkrfhpN40u9 EEKRPPIIw9JGZWbfGKoXN3xaQnhr8cZ7/8h039YUu7c3iOcoV1xjG+af23Pis7vZpfG9 rAVDMrQ7ZUJcIeQ/aBhnMsiCppT+fLm89fSRKsJEtRe3ml8TTJWvgGPT7ZEhwDhjYqOY 1MDUKWJxpuRNlGEwolVppUs0WwG5+mtONiiTwwmnElw1XI18ctphVsc1PZ06eQ4woAS7 YT3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=XaVnRFyy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si1469733eds.479.2020.07.29.08.46.20; Wed, 29 Jul 2020 08:46:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=XaVnRFyy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727078AbgG2PpS (ORCPT + 99 others); Wed, 29 Jul 2020 11:45:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726877AbgG2PpQ (ORCPT ); Wed, 29 Jul 2020 11:45:16 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A7CFC0619D4 for ; Wed, 29 Jul 2020 08:45:16 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id 3so3449477wmi.1 for ; Wed, 29 Jul 2020 08:45:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=odKL8nfgi2JfYFNsaHMY4SKWdmff32MEW/xIQyAYpOU=; b=XaVnRFyyLv/CDI3rNrvt+N1NR94GoD23fiy/1/aev0VHbn3oeX9+0gLViXcHzcPViC mwlIFOWJmaj7nZtyvHYwX0VYgYAWhYlilB06hqnszYmsJEMA/ptUEBCYejYVctWNmLvG DaXtxBbRu5szTpoi/tqJKw0GDefnpfkG2ef3NB7uRsoJKp358/WBuGwCaFgmhWSEt1Xb TdyN1A3/uSX2bqsM9cPHzZ0isZY56UvuXLD7Dfz5VjSyrzzma3a0D2RYNurND6ap+y6s vdzrI/4KXtoIAm5gIupf2DJq9ssRajx8xEWOiGD5gNisR6FFXhdyhHxyuvBdWbPxj3Rl LPjA== 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=odKL8nfgi2JfYFNsaHMY4SKWdmff32MEW/xIQyAYpOU=; b=cMH96YgPuG8t252ryKIaO/yyg2mZHroUoV6Jk8/Fbbjz8CBEFCFOQctWdbiABswuzR /iktOC9gKbZ+wASYdCHb6e6hz/XTqRPYXuGMJVbBCt6Zx4/FYkN12+ZXMK3RnHztgXF+ XA0TDnbFOuH1tjag4NOYW62USb/b7fbVf4WITqaWnn/e54HN5+msUqrtlGW81d4Yb53G 7pvbIlWd81sD+U6ofr4sw2I9gDKoydQ0OuKktnVO5p6DKjvt1t403+7rZiISLoXN+E0I N1Ox2AyS02TPIjOjpnnD5Kvn6Sn+1eNrX/ntzgz8/2zjJszUWEStfNC3k5mLmQmF/MQY QLtw== X-Gm-Message-State: AOAM532yV7si/Clz1UT5NF9Fh+gdvaJ0BlOyZvhfyBcL3logHRLP+FX5 hrucZNydMAU55RPWYs5HfM5VpA== X-Received: by 2002:a7b:c057:: with SMTP id u23mr8667635wmc.167.1596037515187; Wed, 29 Jul 2020 08:45:15 -0700 (PDT) Received: from starbuck.baylibre.local (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id k10sm5950967wrm.74.2020.07.29.08.45.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2020 08:45:14 -0700 (PDT) From: Jerome Brunet To: Mark Brown , Liam Girdwood Cc: Jerome Brunet , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, Kevin Hilman Subject: [PATCH 2/4] ASoC: meson: axg-tdmin: fix g12a skew Date: Wed, 29 Jul 2020 17:44:54 +0200 Message-Id: <20200729154456.1983396-3-jbrunet@baylibre.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200729154456.1983396-1-jbrunet@baylibre.com> References: <20200729154456.1983396-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After carefully checking the result provided by the TDMIN on the g12a and sm1 SoC families, the TDMIN skew offset appears to be 3 instead of 2 on the axg. Fixes: f01bc67f58fd ("ASoC: meson: axg-tdm-formatter: rework quirks settings") Signed-off-by: Jerome Brunet --- sound/soc/meson/axg-tdmin.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sound/soc/meson/axg-tdmin.c b/sound/soc/meson/axg-tdmin.c index 973d4c02ef8d..3d002b4eb939 100644 --- a/sound/soc/meson/axg-tdmin.c +++ b/sound/soc/meson/axg-tdmin.c @@ -233,10 +233,26 @@ static const struct axg_tdm_formatter_driver axg_tdmin_drv = { }, }; +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) { + .invert_sclk = false, + .skew_offset = 3, + }, +}; + static const struct of_device_id axg_tdmin_of_match[] = { { .compatible = "amlogic,axg-tdmin", .data = &axg_tdmin_drv, + }, { + .compatible = "amlogic,g12a-tdmin", + .data = &g12a_tdmin_drv, + }, { + .compatible = "amlogic,sm1-tdmin", + .data = &g12a_tdmin_drv, }, {} }; MODULE_DEVICE_TABLE(of, axg_tdmin_of_match); -- 2.25.4