From patchwork Mon Aug 17 15:14:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 247863 Delivered-To: patch@linaro.org Received: by 2002:a54:3b12:0:0:0:0:0 with SMTP id j18csp2585535ect; Mon, 17 Aug 2020 12:26:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyypNGGRcXFHawHq8V9j6yEHFIIY2WcwDQXD7rwYmF35mygq1SnP1mwwLjgXxR54HImZVoI X-Received: by 2002:aa7:d6c7:: with SMTP id x7mr16547750edr.167.1597692365469; Mon, 17 Aug 2020 12:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597692365; cv=none; d=google.com; s=arc-20160816; b=CRqahNgzIxjNy1YW57a2ZU0LxIoqfj0/L9o7Hfv/szvGQzsla4ngD6O3/IP5rvQGm1 ZuCyvOoF7M0vTLlFgP28WWGcD+grbjcfv91qcMAsHJ9/70Xs+3cW8R1g+dx+/7gKWcyr 6ia+AOp8Qgk2AClYvzxsF6d55DbnoaHignwXEtHbfV7/dW6j2Ldh6mouT4zbhOzVQlg6 WyArilqWFNcruH5/9qE1x4aXTOIQOvV+VLpH4LImrJCaLqVtFuaUYZZw6xJVYdAToP3C vSZ60NU9QGyTTc1cYkWUPmALQlnQG0EpBDXKFr72DFDF3X9CaoAWeGCtixAYqDyOTWa5 MaTw== 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=9Qk4AK3SyN2nkNq6NHLATuCSXhedvUB40Ht+GspDE5A=; b=Sv1+W3O3Wg4fOnygTX0PzHH7pK4rWDm+lK1lU0lftYOp6XER9iGLHs8X3Cxz+9lCqT +AncLST/jbgmIWl6nyp+Dw/7TwhEYWNrsSy96KHLm/P4Wosb2J5FznmftmzdQ+Emxatp tvaT2X5XjvFUd2fsgbfX3ezDntmcAbbXWcZOGUvcTaCcKHJ8JOIZiwEKB5uQrF2Wxwk2 D2fYIkSs7Nr6yLEZ5JBMg4gX2+sELcNmdL3gx5p6/6rfEkMbvpjRseUKG7wa2oWeQQUN IqLkU1nG/XnXtO46AUsEYRKvtx6B85zxDXCG12Ia+v3ragPfjwmGDTA+h8FkDmQLhOQI +GLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KPEVKiB8; 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=fail (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 n29si14767504eda.587.2020.08.17.12.26.05; Mon, 17 Aug 2020 12:26:05 -0700 (PDT) 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=@kernel.org header.s=default header.b=KPEVKiB8; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729668AbgHQPd6 (ORCPT + 15 others); Mon, 17 Aug 2020 11:33:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:36868 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729671AbgHQPdo (ORCPT ); Mon, 17 Aug 2020 11:33:44 -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 A56A72313F; Mon, 17 Aug 2020 15:33:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597678424; bh=5uDo564OW44HvyNxYlsZc/u02fwF7XtOjL5ThZ8US6E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KPEVKiB8kfYTY1/xciO3vraLhrNvIPC+203r9w1klQEOJVO6263qYUzHvPaqvwhAY tAghO28qINh3htY/pLOQzQDw0jeiONEhUxcsNa7sLiIS44bLhaHJTlrhU88kDp4LvT ahNM+Rb5D5SkKewEbQ9QHH4GQvJ8I/5PqYlVGmlQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jerome Brunet , Mark Brown , Sasha Levin Subject: [PATCH 5.8 330/464] ASoC: meson: axg-tdmin: fix g12a skew Date: Mon, 17 Aug 2020 17:14:43 +0200 Message-Id: <20200817143849.595785223@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143833.737102804@linuxfoundation.org> References: <20200817143833.737102804@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Jerome Brunet [ Upstream commit 80a254394fcfe55450b0351da298ca7231889219 ] 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 Link: https://lore.kernel.org/r/20200729154456.1983396-3-jbrunet@baylibre.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/meson/axg-tdmin.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 2.25.1 diff --git a/sound/soc/meson/axg-tdmin.c b/sound/soc/meson/axg-tdmin.c index 973d4c02ef8db..3d002b4eb939e 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);