From patchwork Mon Aug 17 15:16:29 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: 247836 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp2852782ilo; Mon, 17 Aug 2020 11:12:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRaegWV3qKzucE+yTYnCuAfgonNas2L3JnTC4gPlnTWZ9holszXfuDhEUWHnHL9j99D3rv X-Received: by 2002:a17:906:4aca:: with SMTP id u10mr16162389ejt.320.1597687944270; Mon, 17 Aug 2020 11:12:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597687944; cv=none; d=google.com; s=arc-20160816; b=Z+Tl1nySHvf2ggmq2g0Hva4QQihL0P4z7TPYdtN58SChnVZ9j0FrWB1wMS65j/WmOZ Y3ZXEcxdAwl7j1WTtWB93SFoL3ejy9jEqqwhjY9k9gegpYIvzsBksdo1Kdp5JDvZnnv5 k/avjJiJDvF9ESbT7QIW38rBlTOM0SzbEge4oPJGXMx9DR3UARLFcyWf05PEPoPNrOpY BO0Q+wi4voOoluZyCsN9j35RhhMbU1xcUutnwNx1TaLmqB/SHi1lJIBeK3URZjS82Qi5 GTJ/q7AeZReajd5q/Cqn0yJ/5yaBbnAIFUnL0mdLrznpiukgQxoW2tNGoLiKb3HPvFX1 HDug== 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=hxrtwP+Z390yRWY/V7+wek1y681cksiiLrGZpm8dixXj7WlBq60Oo0Q2Q4O6Vs+TRI 1rbCWseGaEydvsCzLIKIQ/0Uys/n6l33w80OzMVY8ov4F2G+1syGcYmPwRyvEgJTuUX8 wWrJMYfwDQtHGchEWxFAMisZdxDZNJpI6SBjlynaQjWPZ8ITL3NT4xZE9BebL9ZHJ68e 1b3AaOkdPTvnDqr++itocxYvmf3m3gMuRqvn46kYAkse+ALYsTzLjm75xt/1oPDjxd2U HSqouXAjuMvNOM6Gaou9GoF0T/syyW+5V/j3qNRFay+EV6zitrqDURewRqwxqasUyAsI Ky5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pTeGh02R; 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 v4si11640605ejb.563.2020.08.17.11.12.24; Mon, 17 Aug 2020 11:12:24 -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=pTeGh02R; 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 S2390478AbgHQSMR (ORCPT + 15 others); Mon, 17 Aug 2020 14:12:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:55676 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388409AbgHQQH0 (ORCPT ); Mon, 17 Aug 2020 12:07:26 -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 7D3C522B4E; Mon, 17 Aug 2020 16:07:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597680445; bh=5uDo564OW44HvyNxYlsZc/u02fwF7XtOjL5ThZ8US6E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pTeGh02Rk29giNI0GRTv+Rl+wEOn+9sjY/6WS94iNHqLbUwEqn5G8BC6Zi5Vi+ZiX IMJdqM6PpkCSv7/lLHvU2/jqieLPDnT+Grz4LcSufO91Z61EotBoZrMXg3aWimkFXc 4TKq/upLf4eRUNVCwkKar1s0zO3z954NxyyNs0xU= 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.4 188/270] ASoC: meson: axg-tdmin: fix g12a skew Date: Mon, 17 Aug 2020 17:16:29 +0200 Message-Id: <20200817143805.174394380@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143755.807583758@linuxfoundation.org> References: <20200817143755.807583758@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);