ASoC: cs35l56: Patch soft registers to defaults
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 18 Jul 2023 14:46:25 +0000 (15:46 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 18 Jul 2023 18:46:55 +0000 (19:46 +0100)
commitdf4167d658d45946677f91d84e9d40570c875cb8
treecfeeeadadec012da138a6a390312cd1f332f8b87
parent4da4a7467f90a0272d2b14c40ea0345255c9b132
ASoC: cs35l56: Patch soft registers to defaults

The soft (firmware) registers for volume/mute/posture are not reset by
a chip soft-reset, so use a regmap patch to set them to defaults.

cs35l56_reread_firmware_registers() has been removed. Its intent was to
use whatever the firmware set as a default. But the driver now patches the
defaults to the registers.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230718144625.39634-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/cs35l56.h
sound/soc/codecs/cs35l56-shared.c
sound/soc/codecs/cs35l56.c