Skip to content

ASoC: cs35l56: Fixes to handling of ASP1 config registers

Richard Fitzgerald alsa-devel linux-sound lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4regmap: Add regmap_read_bypassed()drivers/base/regmap/regmap.c include/linux/regmap.h+45 -01 reply
2/4ALSA: hda: cs35l56: Exit cache-only after cs35l56_wait_for_firmware_boot()sound/pci/hda/cs35l56_hda.c+4 -00 replies
3/4ASoC: cs35l56: Fix unintended bus access while resetting ampsound/soc/codecs/cs35l56-sdw.c sound/soc/codecs/cs35l56-shared.c sound/soc/codecs/cs35l56.c+14 -100 replies
4/4ASoC: cs35l56: Prevent overwriting firmware ASP configinclude/sound/cs35l56.h sound/soc/codecs/cs35l56-shared.c sound/soc/codecs/cs35l56.c+67 -220 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] ASoC: cs35l56: Fixes to handling of ASP1 config registers

This chain fixes some problems with some previous patches for handling the ASP1 config registers. The root of the problem is that the ownership of these registers can be either with the firmware or the driver, and that the chip has to be soft-reset after downloading the firmware.

This chain adds and uses a regmap_read_bypassed() function so that the driver can leave the regmap in cache-only until the chip has rebooted, but still poll a register to detect when the chip has rebooted.

Richard Fitzgerald (4):
regmap: Add regmap_read_bypassed()
ALSA: hda: cs35l56: Exit cache-only after

    cs35l56_wait_for_firmware_boot()

ASoC: cs35l56: Fix unintended bus access while resetting amp
ASoC: cs35l56: Prevent overwriting firmware ASP config

 drivers/base/regmap/regmap.c      | 37 ++++++++++++++
 include/linux/regmap.h            |  8 +++
 include/sound/cs35l56.h           |  2 +
 sound/pci/hda/cs35l56_hda.c       |  4 ++
 sound/soc/codecs/cs35l56-sdw.c    |  2 -
 sound/soc/codecs/cs35l56-shared.c | 83 ++++++++++++++++++++-----------
 sound/soc/codecs/cs35l56.c        | 26 +++++++++-
 7 files changed, 130 insertions(+), 32 deletions(-)
Signature · 1 line
2.39.2