From patchwork Sat Jun 10 14:27:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 691168 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 CDD60C77B7A for ; Sat, 10 Jun 2023 14:29:34 +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 C3D5093A; Sat, 10 Jun 2023 16:28:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C3D5093A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1686407372; bh=+++2ylXebOlFFSJTzoqpxBl6v+A4Msau/zRv+za8aDU=; 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=gTTDU41d7dV8V0ey1cjJDi7or/0xOe/X2RGMw4MSFjs6S4jTpggFLobHVpxe/SBtH AJYEKZJE787Foi8pNchS4sp9AOrBX89xkMSJ4SuC6xZ67le9UwP6pOAmv7e4dB1bHu VfyMcxK/cSwC9ZPR25g8i2Qp9+bN/haWnE320m/o= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4CE61F805AB; Sat, 10 Jun 2023 16:27:49 +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 380A1F80578; Sat, 10 Jun 2023 16:27:49 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D6634F80548; Sat, 10 Jun 2023 16:27:39 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 9334FF80548 for ; Sat, 10 Jun 2023 16:27:36 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 9334FF80548 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=OmxH286I 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 2E15D60DF5; Sat, 10 Jun 2023 14:27:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF931C433D2; Sat, 10 Jun 2023 14:27:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686407254; bh=+++2ylXebOlFFSJTzoqpxBl6v+A4Msau/zRv+za8aDU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=OmxH286IPmExzybW4yr1oGhHn/nB7M6CKvkFgWtXncjA1PN8hV4AaArYmRJUNzt0G 338WxyI7xE8r798puODpfC/D1uH8G80hrfZR7FU8sWW2Ux0oc2nlHXTuRH6V3X3JFS 0DKwWlURSJJQFgGGmxYPJCagr2lOw6B4N2OZ3ATLo1hK6c5CplYmXet2WSDYPz9jfp drypULBYuxb+PEQkEGq+GI5BlUH+5piUuKrFdSnEQwQ7dh5czNxKs76qA2pnsoGaBJ TlhKQi1HfP4BRRPKShZ3oDJMLHrOja+CQwks3WR+Q1Npnawc7pf8fea/SKeXaeebiF ujUQm70tpkNPQ== From: Mark Brown Date: Sat, 10 Jun 2023 15:27:15 +0100 Subject: [PATCH 4/8] ASoC: rt715: Use maple tree register cache MIME-Version: 1.0 Message-Id: <20230609-asoc-rt-sdw-maple-v1-4-85ee50c93905@kernel.org> References: <20230609-asoc-rt-sdw-maple-v1-0-85ee50c93905@kernel.org> In-Reply-To: <20230609-asoc-rt-sdw-maple-v1-0-85ee50c93905@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=1341; i=broonie@kernel.org; h=from:subject:message-id; bh=+++2ylXebOlFFSJTzoqpxBl6v+A4Msau/zRv+za8aDU=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkhIhM67ZpGprqmc9qbaBaryHtZbxxCUrqQk2ieeo/ sgPTPgaJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZISITAAKCRAk1otyXVSH0DtMB/ 4hXJYJ142flULloteLFrqzvIP9+RbYO+YOUFWyhRiSIhgstWSMoPT0E13mOetiWZ6DkOeEZ6a8YW24 /bPLFeG+SXuCT0YQ4zxSZBKHiObXtRW2E6YsF69cptH9udkddUO7zLIqipfSISd6pcDXmj8J/11imf CA2slogpd65TM5n2anhzAAOet5qLmohDjjl0O/66waJYHh2WGcSE6+hKNt/AmtxkWSNivwyZbUqhO1 4Zf6wWC1zsLS/1TLwADkXSv7QvqiAbzY4vDG328E1W2btB7aBvfYVJDrE1k/Eh2F3mhW2oVkqHcszv JKmi0v++5oAqcgXsxAQKrsWdyetX10 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: XUID3YJWRHPOZXM4UMJYWHZ7Z2BQRP23 X-Message-ID-Hash: XUID3YJWRHPOZXM4UMJYWHZ7Z2BQRP23 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 rt715 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/rt715-sdca-sdw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/rt715-sdca-sdw.c b/sound/soc/codecs/rt715-sdca-sdw.c index 7e5ddce8097d..df10916bab46 100644 --- a/sound/soc/codecs/rt715-sdca-sdw.c +++ b/sound/soc/codecs/rt715-sdca-sdw.c @@ -97,7 +97,7 @@ static const struct regmap_config rt715_sdca_regmap = { .max_register = 0x43ffffff, .reg_defaults = rt715_reg_defaults_sdca, .num_reg_defaults = ARRAY_SIZE(rt715_reg_defaults_sdca), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .use_single_read = true, .use_single_write = true, }; @@ -111,7 +111,7 @@ static const struct regmap_config rt715_sdca_mbq_regmap = { .max_register = 0x43ffffff, .reg_defaults = rt715_mbq_reg_defaults_sdca, .num_reg_defaults = ARRAY_SIZE(rt715_mbq_reg_defaults_sdca), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .use_single_read = true, .use_single_write = true, };