Skip to content

Expand SoundWire MBQ register map support

Charles Keepax linux-sound lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 5 repliesIn review
  2. v15 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Fixed a potentially uninitialised variable.
- Added some extra rt722 registers, Shuming Fan asked for.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6soundwire: SDCA: Add additional SDCA address macrosinclude/linux/soundwire/sdw_registers.h+22 -80 replies
2/6ASoC: SDCA: Update list of entity_0 controlsinclude/sound/sdca_function.h+25 -80 replies
3/6regmap: sdw-mbq: Add support for further MBQ register sizesdrivers/base/regmap/regmap-sdw-mbq.c include/linux/regmap.h+139 -220 replies
4/6regmap: sdw-mbq: Add support for SDCA deferred controlsdrivers/base/regmap/regmap-sdw-mbq.c include/linux/regmap.h+130 -140 replies
5/6ASoC: rt722-sdca: Add some missing readable registerssound/soc/codecs/rt722-sdca-sdw.c+46 -32 replies
6/6ASoC: rt722-sdca: Make use of new expanded MBQ regmapsound/soc/codecs/rt722-sdca-sdw.c sound/soc/codecs/rt722-sdca-sdw.h sound/soc/codecs/rt722-sdca.c +1 more+105 -2140 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchVinod KoulPierre-Louis Bossart
SeriesR-b
1/6A-b
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] Expand SoundWire MBQ register map support

The current SDCA MBQ (Multi-Byte Quantities) register map only supports 16-bit types, add support for more sizes and then update the rt722 driver to use the new support. We also add support for the deferring feature of MBQs to allow hardware to indicate it is not currently ready to service a read/write.

Afraid I don't have hardware to test the rt722 change so it is only build tested, but I thought it good to include a change to demonstrate the new features in use.

Changes since v1:
- Fixed a potentially uninitialised variable.
- Added some extra rt722 registers, Shuming Fan asked for.

Thanks,
Charles

Charles Keepax (6):
soundwire: SDCA: Add additional SDCA address macros
ASoC: SDCA: Update list of entity_0 controls
regmap: sdw-mbq: Add support for further MBQ register sizes
regmap: sdw-mbq: Add support for SDCA deferred controls
ASoC: rt722-sdca: Add some missing readable registers
ASoC: rt722-sdca: Make use of new expanded MBQ regmap

 drivers/base/regmap/regmap-sdw-mbq.c    | 219 +++++++++++++++++++++---
 include/linux/regmap.h                  |  62 ++++++-
 include/linux/soundwire/sdw_registers.h |  30 +++-
 include/sound/sdca_function.h           |  33 +++-
 sound/soc/codecs/rt722-sdca-sdw.c       | 128 ++++++++------
 sound/soc/codecs/rt722-sdca-sdw.h       |  99 ++++++-----
 sound/soc/codecs/rt722-sdca.c           | 135 ++++-----------
 sound/soc/codecs/rt722-sdca.h           |   4 +-
 8 files changed, 454 insertions(+), 256 deletions(-)
Signature · 1 line
2.39.5