ASoC: cs35l56: Bugfixes to series "Prepare for SDCA Companion Amp"
Subsystems (3)
Richard Fitzgerald
maintainercover ASoC: cs35l56: Bugfixes to series "Prepare for SDCA Companion Amp"
These two patches fix a couple of bugs in the previous series commit f5419389a940 ("ASoC: cs35l56: Prepare for SDCA Companion Amp")
Richard Fitzgerald (2):
ASoC: cs35l56: Make SoundWire DP3 mixer registers volatile
ASoC: cs35l56-test: Initialize DP3 mixer registers in mock regmap
sound/soc/codecs/cs35l56-shared.c | 4 ++++ sound/soc/codecs/cs35l56-test.c | 1 + 2 files changed, 5 insertions(+)
Signature · 1 line
2.47.3
Richard Fitzgerald
maintainerPATCH 2/2 ASoC: cs35l56-test: Initialize DP3 mixer registers in mock regmap
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.
--- sound/soc/codecs/cs35l56-test.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/codecs/cs35l56-test.c +1 -0
@@ -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 ); }/*
Signature · 1 line
2.47.3
Richard Fitzgerald
maintainerPATCH 1/2 ASoC: cs35l56: Make SoundWire DP3 mixer registers volatile
In reply to Richard FitzgeraldMark the CS35L56_SWIRE_DP3_CH*_INPUT registers as volatile so that reading them won't populate the regmap cache with a value that overwrites the register value during a regcache_sync().
These registers are owned by the firmware so the driver must not write to them. Previous commit f52668f474f1 ("ASoC: cs35l56: Remove SDW1 TX source controls and widgets") removed the DAPM widgets so that the driver does not read or write these registers. But it left the possibility that reading the regmap through debugfs would populate the cache value and so unintentionally overwrite them on the next regcache_sync(). Marking them volatile prevents this.
--- sound/soc/codecs/cs35l56-shared.c | 4 ++++ 1 file changed, 4 insertions(+)
sound/soc/codecs/cs35l56-shared.c +4 -0
@@ -232,6 +232,10 @@ static bool cs35l56_common_volatile_reg(unsigned int reg)case CS35L56_DACPCM2_INPUT :/* owned by firmware */ case CS35L56_DSP1RX1_INPUT :/* owned by firmware */ case CS35L56_DSP1RX2_INPUT :/* owned by firmware */ +case CS35L56_SWIRE_DP3_CH1_INPUT :/* owned by firmware */ +case CS35L56_SWIRE_DP3_CH2_INPUT :/* owned by firmware */ +case CS35L56_SWIRE_DP3_CH3_INPUT :/* owned by firmware */ +case CS35L56_SWIRE_DP3_CH4_INPUT :/* owned by firmware */ case CS35L56_IRQ1_STATUS : case CS35L56_IRQ1_EINT_1 ... CS35L56_IRQ1_EINT_8:case CS35L56_IRQ1_EINT_18 :
Signature · 1 line
2.47.3
Mark Brown
maintainerQuoted 10 lines · Richard Fitzgerald
ASoC: cs35l56: Bugfixes to series "Prepare for SDCA Companion Amp"
These two patches fix a couple of bugs in the previous series commit
f5419389a940("ASoC: cs35l56: Prepare for SDCA Companion Amp")Richard Fitzgerald (2):
ASoC: cs35l56: Make SoundWire DP3 mixer registers volatile
ASoC: cs35l56-test: Initialize DP3 mixer registers in mock regmap[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.5
Thanks!
[1/2] ASoC: cs35l56: Make SoundWire DP3 mixer registers volatile
https://git.kernel.org/broonie/sound/c/1298a779a3ad [2/2] ASoC: cs35l56-test: Initialize DP3 mixer registers in mock regmap https://git.kernel.org/broonie/sound/c/4c17de5c7713
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