Message ID | 20231229114342.195867-1-eugen.hristev@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-13070-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp2514173dyb; Fri, 29 Dec 2023 03:44:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGt2r3jPgwCSWkc/lXsZBydhEZfvdZpKBJYV3g9QdIev542CVMRqz3F/OuxeteprxOqqGSM X-Received: by 2002:a05:6a20:8f01:b0:196:39c2:d48e with SMTP id b1-20020a056a208f0100b0019639c2d48emr3760165pzk.65.1703850278057; Fri, 29 Dec 2023 03:44:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703850278; cv=none; d=google.com; s=arc-20160816; b=u3YYb+1ctgBFo4JULzV/eaplPzerAR7HoqjQiN4QY8Clgq7O/cKzEjeS2QGYbaZpkh mG5rpeBfDp+6Gk/EdyFhKlytTyLVDaycFJDSr2Di/58dv1vJgPSC4jo2/F5NfV3RvJhp ckpvPzvtG4ttjoiQXN37/wa+Ha/MXb34yp3mALKtASUGDaUeZGaAiy+bXC1tuuKAuArH 3oW8sxf6/4jDDD6Nb7MWEFkuOwiJ8ArFPU6eBs/QiP4nntaYxZI+ru+FoAiXnbgaKW6p XEwoSZhrvveeKWWHKFqpYp3C2OT5SHVg4bI7p7cDIM6sT2KXbErfpHNdc6y8qVvmQzyw qULA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=IkfpsQwlGoht/zhXbGgHeb5SDBdQGUW3Q1g4b0FGIXY=; fh=QLFLuvWO+SUO8rY4pWPW5DNYfDYpThlFzLALPxmW704=; b=mUqwkTX/NbdPESkLAW5nc4t5RlTGCk/j4FowQWC2UjPgAjDf66uXeqF6mnkQrGQd/c xBpEI2Mqo/G7nndN6qP42Vwc25NFEzYhwX8uoTlK7hwTG+xNKtmgGBx1WE5IF7gS+WPA A5jlv6FNhvaRkP1B9kQnCjEbGPowGHOq9kuT41nLlFK1TFBVtGsjHJ5fn9UcfNxnTVh0 hf5RfNHSkYes5CFiZ8D3QqnxWF+vWmzKnr2dg9HyYhQevM1k5po0ucTTfm8k6eiHRDGI yg/N8hQxpTb/1vxlIQ8DwUAtwTlVIMSeuMKgk/zrF4/keQJBWr8ux0z1xOeOk2LgVbMw gUKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=P8P+qE2D; spf=pass (google.com: domain of linux-kernel+bounces-13070-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13070-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id fb39-20020a056a002da700b006d9b11edaf1si5641968pfb.268.2023.12.29.03.44.37 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 03:44:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13070-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=P8P+qE2D; spf=pass (google.com: domain of linux-kernel+bounces-13070-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13070-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 05E6DB22A5A for <ouuuleilei@gmail.com>; Fri, 29 Dec 2023 11:44:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B4D3111A8; Fri, 29 Dec 2023 11:43:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="P8P+qE2D" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EED8F1118C; Fri, 29 Dec 2023 11:43:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1703850229; bh=/XUlLtN0OxNKjkOJY7EN5g0ejaPbJLN+tXv+cAsFoO0=; h=From:To:Cc:Subject:Date:From; b=P8P+qE2Dr4SdxxZxZVWTVycv0wuw0hQNA9rlk+75OvuRAOyl49K4sPBUsh7UVcrH1 JQcdy0L1oHiDCwoh19hfvmHLy69+stMoc15UMGbS6v8lilmPSWNgawImb4zeONS/Ux 1Tb2DYp0R88ewniCzT67LGc0tM3LvHpYsajTB/BYyNjznhbFLRFUqjdAN4EAih/Uib YIE8W0ivxVblq/f9Ow58CUxUUHSasWzd8Vf9Iu1JdkvHq3aq0NwtJEzxvdFfoeoiH6 CRl/GyPC45TNODnsxvrdZ0R/+MSFT4bByCEYqyUVV+PeEoK40je76qTGAvG9Z2JCEB ryT/iDW3RXaYg== Received: from eugen-station.. (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: ehristev) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 40DE73780894; Fri, 29 Dec 2023 11:43:48 +0000 (UTC) From: Eugen Hristev <eugen.hristev@collabora.com> To: linux-sound@vger.kernel.org, linux-mediatek@lists.infradead.org Cc: broonie@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, allen-kh.cheng@mediatek.com, jiaxin.yu@mediatek.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com, Eugen Hristev <eugen.hristev@collabora.com> Subject: [PATCH] ASoC: mediatek: mt8186: fix AUD_PAD_TOP register and offset Date: Fri, 29 Dec 2023 13:43:42 +0200 Message-Id: <20231229114342.195867-1-eugen.hristev@collabora.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786616509449498230 X-GMAIL-MSGID: 1786616509449498230 |
Series |
ASoC: mediatek: mt8186: fix AUD_PAD_TOP register and offset
|
|
Commit Message
Eugen Hristev
Dec. 29, 2023, 11:43 a.m. UTC
AUD_PAD_TOP widget's correct register is AFE_AUD_PAD_TOP , and not zero.
Having a zero as register, it would mean that the `snd_soc_dapm_new_widgets`
would try to read the register at offset zero when trying to get the power
status of this widget, which is incorrect.
Fixes: b65c466220b3 ("ASoC: mediatek: mt8186: support adda in platform driver")
Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
---
sound/soc/mediatek/mt8186/mt8186-dai-adda.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Fri, 29 Dec 2023 13:43:42 +0200, Eugen Hristev wrote: > AUD_PAD_TOP widget's correct register is AFE_AUD_PAD_TOP , and not zero. > Having a zero as register, it would mean that the `snd_soc_dapm_new_widgets` > would try to read the register at offset zero when trying to get the power > status of this widget, which is incorrect. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: mediatek: mt8186: fix AUD_PAD_TOP register and offset commit: 38744c3fa00109c51076121c2deb4f02e2f09194 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/sound/soc/mediatek/mt8186/mt8186-dai-adda.c b/sound/soc/mediatek/mt8186/mt8186-dai-adda.c index 85ae3f76d951..ad6d4b5cf697 100644 --- a/sound/soc/mediatek/mt8186/mt8186-dai-adda.c +++ b/sound/soc/mediatek/mt8186/mt8186-dai-adda.c @@ -499,7 +499,7 @@ static const struct snd_soc_dapm_widget mtk_dai_adda_widgets[] = { SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD), SND_SOC_DAPM_SUPPLY_S("AUD_PAD_TOP", SUPPLY_SEQ_ADDA_AUD_PAD_TOP, - 0, 0, 0, + AFE_AUD_PAD_TOP, RG_RX_FIFO_ON_SFT, 0, mtk_adda_pad_top_event, SND_SOC_DAPM_PRE_PMU), SND_SOC_DAPM_SUPPLY_S("ADDA_MTKAIF_CFG", SUPPLY_SEQ_ADDA_MTKAIF_CFG,