Skip to content

ASoC: pcm179x: Add support for pcm1795 and pcm1796

Roman Smrž asahi linux-devicetree linux-sound lkml 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20261002-work-705f20b60284

Versions newest first

  1. v2 Latest5 patches 3 repliesIn review
  2. v15 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- 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/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ASoC: dt-bindings: Add ti,pcm1795 and ti,pcm1796Documentation/devicetree/bindings/sound/trivial-codec.yaml+2 -01 reply
2/5ASoC: pcm179x: Refactor regmap value lookupsound/soc/codecs/pcm179x.c+30 -300 replies
3/5ASoC: pcm179x: Add left-justified formats for pcm1792asound/soc/codecs/pcm179x.c+3 -00 replies
4/5ASoC: pcm179x: Add compatible string for pcm1796 and spi_ids entrysound/soc/codecs/pcm179x-i2c.c sound/soc/codecs/pcm179x-spi.c+3 -00 replies
5/5ASoC: pcm179x: Add support for pcm1975sound/soc/codecs/pcm179x-i2c.c sound/soc/codecs/pcm179x-spi.c sound/soc/codecs/pcm179x.c +1 more+72 -92 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchKrzysztof Kozlowski
1/5A-b
2/5
3/5
4/5
5/5

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/5] ASoC: pcm179x: Add support for pcm1795 and pcm1796

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 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/[email protected]

To: Peter Rosin <[email protected]>
To: Martin Povišer <[email protected]>
To: Lars-Peter Clausen <[email protected]>
To: Nuno Sá <[email protected]>
To: Liam Girdwood <[email protected]>
To: Mark Brown <[email protected]>
To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
To: Shenghao Ding <[email protected]>
To: Kevin Lu <[email protected]>
To: Baojun Xu <[email protected]>
To: Sen Wang <[email protected]>
To: Jaroslav Kysela <[email protected]>
To: Takashi Iwai <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
Michael Trimarchi (2):
ASoC: dt-bindings: Add ti,pcm1795 and ti,pcm1796
ASoC: pcm179x: Add support for pcm1975

Roman Smrž (3):
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

 .../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                         | 117 +++++++++++++++------
 sound/soc/codecs/pcm179x.h                         |  12 ++-
 5 files changed, 104 insertions(+), 33 deletions(-)

---
base-commit: 2f2f7eeef8b0a1a9b9ca998231419873ccae8d4e
change-id: 20261002-work-705f20b60284

Best regards,

Signature · 1 line
Roman Smrž <[email protected]>