From: Richard Fitzgerald <rf@opensource.cirrus.com>
To: broonie@kernel.org
Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
patches@opensource.cirrus.com
Subject: [PATCH 2/2] ASoC: cs35l56-test: Initialize DP3 mixer registers in mock regmap
Date: Thu, 26 Nov 2026 15:44:09 +0000 [thread overview]
Message-ID: <20261126154409.1665214-3-rf@opensource.cirrus.com> (raw)
In-Reply-To: <20261126154409.1665214-1-rf@opensource.cirrus.com>
In cs35l56_test_create_mock_device_registers() put dummy values in the
simulated CS35L56_SWIRE_DP3_CH*_INPUT registers so that they can be read.
This fixes a problem with the cs35l56_test_component_probe_omits_sdw_mux()
test. The test aims to prove that component_probe() does not put a value
in the regmap cache that will be written out to the registers during a
regcache_sync(). But the registers did not have a value in the simulated
regmap, so an attempt to read the register would fail instead of
populating the cache.
Fixes: 406541bbf4eb ("ASoC: cs35l56: Add test that probe() doesn't write SDW mux registers")
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
---
sound/soc/codecs/cs35l56-test.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/codecs/cs35l56-test.c b/sound/soc/codecs/cs35l56-test.c
index 362da30b949e..2285076b9d0e 100644
--- a/sound/soc/codecs/cs35l56-test.c
+++ b/sound/soc/codecs/cs35l56-test.c
@@ -280,6 +280,7 @@ static void cs35l56_test_create_mock_device_registers(struct kunit *test)
cs35l56_test_fill_register_range(test, &cs35l56_test_asp_config_registers_range, 0);
cs35l56_test_fill_register_range(test, &cs35l56_test_asp_mixer_registers_range, 0);
+ cs35l56_test_fill_register_range(test, &cs35l56_test_sdw_mux_registers_range, 0);
}
/*
--
2.47.3
prev parent reply other threads:[~2026-11-26 15:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 15:44 [PATCH 0/2] ASoC: cs35l56: Bugfixes to series "Prepare for SDCA Companion Amp" Richard Fitzgerald
2026-11-26 15:44 ` [PATCH 1/2] ASoC: cs35l56: Make SoundWire DP3 mixer registers volatile Richard Fitzgerald
2026-11-26 15:44 ` Richard Fitzgerald [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261126154409.1665214-3-rf@opensource.cirrus.com \
--to=rf@opensource.cirrus.com \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=patches@opensource.cirrus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox