Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2634788pxa; Mon, 17 Aug 2020 15:03:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/FZlmHWOui96CLKB90owcpbxV6H10+GjEBWO/EShPtE0DsirXknuTnNRniAwuY6Zc5ZpT X-Received: by 2002:a17:906:bc52:: with SMTP id s18mr16097546ejv.298.1597701798463; Mon, 17 Aug 2020 15:03:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597701798; cv=none; d=google.com; s=arc-20160816; b=iCfPTd+2eOMTYFmrlfOMmIqbLKKxUU3qbo/+7oboE8/HeHRnt7eutFcri9clkB3NJ3 HnYfZP1FGdVbKixjEUGcQaYsTwB7iHcvsVWlhW2Mh+ViVf8nHV3ekeHq+3MBQ561nhZG QkU0cMKMnx4BzyI+i/oFCdtRexvFO/EPqwdZ5fgnXNTGG4hoVsyZa68xunRT/QNv7Fh/ I9YDS/WyMASWTqTl2m+C/R63cHpDOY/rIv7ChbcY41hcnosG4Q2304OTbAWvmTPY8CqO fKXvPMYfMippQMe6AJ35R81SFPdUsib0mKsI2Jt6xpE0cuBz3v5EFWlbt+rAJ969BrP3 olHQ== 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=OwQ48YRLll+b6x99dE0bVGyrmfhLpejuRD2KXZNN5HW0A0rbCpeeKax2+Xn7OM3gFC Bc2qqByuCu9rKpbqaOexJOhXwjj3BL5OlJyLr7NxYcWRgOBuvhTfz9ocUfCO5xZQadWR ke6k4E0pomhybdKsiSG0A6cR0vkRTYN4AtMRA0SPmJ+RLOWNly8SE15Jvopecwh3EG4f zaMRKydoiyVWHswJiCmh2pA3xT7Ff1acyLKwBi7R6lDFzjXSt2jbhgxl3yxDhVqgd3Ka x3tlDjyhtdir0RXtNPtyAkuStFZrdWRmRQaYlRKx/4Ro7rJB6OkFtoU1ifmW780i7fL5 Y+Tg== 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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 d6si12014101ejy.409.2020.08.17.15.02.54; Mon, 17 Aug 2020 15:03:18 -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=@kernel.org header.s=default header.b=KPEVKiB8; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730604AbgHQPlf (ORCPT + 99 others); Mon, 17 Aug 2020 11:41:35 -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 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 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(+) 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); -- 2.25.1