]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: cs35l56-shared-test: Subtract reg_base offset in dummy regmap
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 19 May 2026 13:54:33 +0000 (14:54 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 19 May 2026 13:59:52 +0000 (14:59 +0100)
commita6f7c21accb5fca895ee0d490e395deecaddf12f
tree23ca7189bb570e8d2fa7bcc6f77e894e248053b3
parent75a3e43339a2e66605deb8e726bb5d6372b1798a
ASoC: cs35l56-shared-test: Subtract reg_base offset in dummy regmap

Subtract the value of cs35l56 regmap_config->reg_base from addresses
passed into the mock regmap bus.

Chip register addresses transferred over SoundWire are offset by 0x8000
to move them after the address range reserved in the SoundWire spec.

This commit prepares for changing the cs35l56-sdw driver to use
regmap_config->reg_base to add this offset. When that is done the
addresses passed into the mock regmap_bus will include this offset.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20260519135435.479949-2-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l56-shared-test.c