|
|
Log in / Subscribe / Register

Expand SoundWire MBQ register map support

From:  Charles Keepax <ckeepax-AT-opensource.cirrus.com>
To:  <broonie-AT-kernel.org>, <vkoul-AT-kernel.org>, <oder_chiou-AT-realtek.com>
Subject:  [PATCH v2 0/6] Expand SoundWire MBQ register map support
Date:  Tue, 07 Jan 2025 15:44:02 +0000
Message-ID:  <20250107154408.814455-1-ckeepax@opensource.cirrus.com>
Cc:  <jack.yu-AT-realtek.com>, <shumingf-AT-realtek.com>, <lgirdwood-AT-gmail.com>, <peter.ujfalusi-AT-linux.intel.com>, <yung-chuan.liao-AT-linux.intel.com>, <sanyog.r.kale-AT-intel.com>, <pierre-louis.bossart-AT-linux.dev>, <linux-sound-AT-vger.kernel.org>, <linux-kernel-AT-vger.kernel.org>, <patches-AT-opensource.cirrus.com>
Archive-link:  Article

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(-)

-- 
2.39.5




Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds