The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v3 0/5] ASoC: pcm179x: Add support for pcm1795 and pcm1796
@ 2026-12-03  8:51 Roman Smrž
  2026-12-03  8:51 ` [PATCH v3 1/5] ASoC: dt-bindings: Add ti,pcm1795 and ti,pcm1796 Roman Smrž
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Roman Smrž @ 2026-12-03  8:51 UTC (permalink / raw)
  To: Peter Rosin, Martin Povišer, Lars-Peter Clausen,
	Nuno Sá, Liam Girdwood, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Shenghao Ding, Kevin Lu,
	Baojun Xu, Sen Wang, Jaroslav Kysela, Takashi Iwai
  Cc: asahi, linux-sound, patches, devicetree, linux-kernel,
	linux-amarula, Michael Trimarchi, Krzysztof Kozlowski,
	Roman Smrž

This adds support for the PCM1795 and the PCM1796 to the pcm179x driver.

The PCM1795 is register compatible with the PCM1792A, but it encodes two
of the register 18 FMT[2:0] values differently, so the format encoding is
described with a per-codec table instead of the width switches. Only the
PCM1795 has real 32-bit formats; on the PCM1792A and the PCM1796 a 32-bit
container keeps the 24-bit code, as it always has. Left-justified, which
the driver accepted but never programmed, is added on the way.

This series is based on a work done in 2016 by my collegue:
https://lore.kernel.org/all/20160311232856.GC27257@panicking/

---
Changes in v3:
- Fixed entries in pcm179x_spi_ids.
- Use the same FORMATS list for all variants.
- Removed no longer needed startup callback previously used to apply the constraint.
- Removed no longer used format field from pcm179x_model struct.
- Added missing left justified 32-bit format for pcm1795.
- Link to v2: https://patch.msgid.link/20261016-work-v2-0-9340b9555fbb@amarulasolutions.com

Changes in v2:
- Added missing entry to spi_ids.
- Added SND_SOC_POSSIBLE_DAIFMT_LEFT_J as supported format.
- Updated description of devicetree bindings commit.
- Link to v1: https://patch.msgid.link/20261002-work-v1-0-f0e53bc7331f@amarulasolutions.com

To: Peter Rosin <peda@lysator.liu.se>
To: Martin Povišer <povik+lin@cutebit.org>
To: Lars-Peter Clausen <lars@metafoo.de>
To: Nuno Sá <nuno.sa@analog.com>
To: Liam Girdwood <lgirdwood@gmail.com>
To: Mark Brown <broonie@kernel.org>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Shenghao Ding <shenghao-ding@ti.com>
To: Kevin Lu <kevin-lu@ti.com>
To: Baojun Xu <baojun.xu@ti.com>
To: Sen Wang <sen@ti.com>
To: Jaroslav Kysela <perex@perex.cz>
To: Takashi Iwai <tiwai@suse.com>
Cc: asahi@lists.linux.dev
Cc: linux-sound@vger.kernel.org
Cc: patches@opensource.cirrus.com
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

---
Michael Trimarchi (1):
      ASoC: dt-bindings: Add ti,pcm1795 and ti,pcm1796

Roman Smrž (4):
      ASoC: pcm179x: Refactor regmap value lookup
      ASoC: pcm179x: Add left-justified formats for pcm1792a
      ASoC: pcm179x: Add compatible string for pcm1796 and spi_ids entry
      ASoC: pcm179x: Add support for pcm1975

 .../devicetree/bindings/sound/trivial-codec.yaml   |   2 +
 sound/soc/codecs/pcm179x-i2c.c                     |   2 +
 sound/soc/codecs/pcm179x-spi.c                     |   4 +
 sound/soc/codecs/pcm179x.c                         | 103 ++++++++++++++-------
 sound/soc/codecs/pcm179x.h                         |  10 +-
 5 files changed, 88 insertions(+), 33 deletions(-)
---
base-commit: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
change-id: 20261002-work-705f20b60284

Best regards,
--  
Roman Smrž <roman@amarulasolutions.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-12-03  8:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03  8:51 [PATCH v3 0/5] ASoC: pcm179x: Add support for pcm1795 and pcm1796 Roman Smrž
2026-12-03  8:51 ` [PATCH v3 1/5] ASoC: dt-bindings: Add ti,pcm1795 and ti,pcm1796 Roman Smrž
2026-12-03  8:51 ` [PATCH v3 2/5] ASoC: pcm179x: Refactor regmap value lookup Roman Smrž
2026-12-03  8:51 ` [PATCH v3 3/5] ASoC: pcm179x: Add left-justified formats for pcm1792a Roman Smrž
2026-12-03  8:51 ` [PATCH v3 4/5] ASoC: pcm179x: Add compatible string for pcm1796 and spi_ids entry Roman Smrž
2026-12-03  8:51 ` [PATCH v3 5/5] ASoC: pcm179x: Add support for pcm1975 Roman Smrž

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox