From patchwork Sat Jun 10 13:57:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13274903 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CD3BFC7EE2F for ; Sat, 10 Jun 2023 14:03:52 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 9EEDC3E8; Sat, 10 Jun 2023 16:03:00 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9EEDC3E8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1686405830; bh=/46iLTdkoaLNzLmFd+hJGrua05+YTBwwzT2tol9bnZ0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=m9iXeifCMM7y1ZHISIWAGD3YlcGv82o4rJUwTFhqyGD8uG0wcOiBoseDSpVD31EXa yGtDUrN0f2Kr5Hn1RmzIpVJBP5yHfQmHJyqw8QL8B+9PhGtAcccgpaRs2c235q/BHz eJ0YKqtE0RwYieFa8IqgaVP9ZVZaoUdf6T3Q+PqE= Received: by alsa1.perex.cz (Postfix, from userid 50401) id C9F10F80649; Sat, 10 Jun 2023 15:59:08 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 6E577F80611; Sat, 10 Jun 2023 15:59:06 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 56854F804DA; Sat, 10 Jun 2023 15:58:20 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C72CEF8016C for ; Sat, 10 Jun 2023 15:58:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C72CEF8016C Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=CsWljFJQ Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 86AD861772; Sat, 10 Jun 2023 13:58:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1724EC4339B; Sat, 10 Jun 2023 13:58:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686405494; bh=/46iLTdkoaLNzLmFd+hJGrua05+YTBwwzT2tol9bnZ0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=CsWljFJQrMJjQIZlGLdLKQWQK61wBepu7zIZPGknS9JgEeT387cGeFRKJkXPfl7Eo tfcp9Y4UyNlcKvOdna+sNbcjRBjMrQSzMBXHLpyuNtqy/Nb3qZf7lH84A1qAm7JrAU HwsvtjW/w20sGOn9JnBDauPEIyyC/mT3gJ2levrjovEY1RaQdO4K6walm38P5I5MoA KWmPuUZPWAUBdRLPIgd8hjBK/LcCZrUGtOmKHV38eUSepb/Np0FviVnfOIpTvqTi20 GbaaePYtCGmzSIyabDpqjvYHkdTIahs3W7mXBYRCnPpkTCMAPmuYWrtV8hPecWhs4D M6l0vE5DiPrag== From: Mark Brown Date: Sat, 10 Jun 2023 14:57:52 +0100 Subject: [PATCH 06/16] ASoC: rt5616: Use maple tree register cache MIME-Version: 1.0 Message-Id: <20230609-asoc-rt-maple-v1-6-729c6553cdcf@kernel.org> References: <20230609-asoc-rt-maple-v1-0-729c6553cdcf@kernel.org> In-Reply-To: <20230609-asoc-rt-maple-v1-0-729c6553cdcf@kernel.org> To: Oder Chiou , Liam Girdwood Cc: alsa-devel@alsa-project.org, Mark Brown X-Mailer: b4 0.13-dev-bfdf5 X-Developer-Signature: v=1; a=openpgp-sha256; l=978; i=broonie@kernel.org; h=from:subject:message-id; bh=/46iLTdkoaLNzLmFd+hJGrua05+YTBwwzT2tol9bnZ0=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkhIFkT/zaaDIOzbSgN1hi89Bhb9imYcpPiGWb4Cbl nhfUsr+JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZISBZAAKCRAk1otyXVSH0KHmB/ 4784/34CXUh3VBqXf9cVrIeFYrxyQMC7FbDsviX/eSz1NX/W66VMRAH0cJEoL+lTkZf8AISqZ59LX3 SByw0yVkzcdUnXQ+8kmWstnIYSdNCbhNfVPGYs5FbsLRFbgOUm0Z1UJ8muNjsxYO+/FcvWTpkdxXZc 7qcgEq7bdjihCv3JdLucito4iUzMGB+oswAzn/stIHJ7VxPi9pczRzfLcm2G22jDR0qZLcCHojbHV2 GXtOIwWm2a0RMq/+xeZNDdL27zgdrFAwlaJRXxgoA2hSz5+CjV/GaiThuqSWKQSeKBIxsYzijHfAQs lTlJ+JhnNwiF0pRcDZGhaUSZiif3kn X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: REBOTU7XCAZRROFDAYEGZSTQXGQ77AHJ X-Message-ID-Hash: REBOTU7XCAZRROFDAYEGZSTQXGQ77AHJ X-MailFrom: broonie@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The rt5616 can only support single register read and write operations so does not benefit from block writes. This means it gets no benefit from using the rbtree register cache over the maple tree register cache so convert it to use maple trees instead, it is more modern. Signed-off-by: Mark Brown --- sound/soc/codecs/rt5616.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt5616.c b/sound/soc/codecs/rt5616.c index 948abde10463..6009a401620c 100644 --- a/sound/soc/codecs/rt5616.c +++ b/sound/soc/codecs/rt5616.c @@ -1315,7 +1315,7 @@ static const struct regmap_config rt5616_regmap = { RT5616_PR_SPACING), .volatile_reg = rt5616_volatile_register, .readable_reg = rt5616_readable_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = rt5616_reg, .num_reg_defaults = ARRAY_SIZE(rt5616_reg), .ranges = rt5616_ranges,