Skip to content

ASoC: codecs: add Texas Instruments TAS2557 smart amplifier driver

Gianluca Boiano linux-devicetree linux-sound lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 1 replyIn review
  2. v32 patches 7 repliesSuperseded
  3. v22 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches9 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ASoC: dt-bindings: add Texas Instruments TAS2557Documentation/devicetree/bindings/sound/ti,tas2557.yaml MAINTAINERS+159 -00 replies
2/2ASoC: codecs: add TAS2557 mono smart amplifier driversound/soc/codecs/Kconfig sound/soc/codecs/Makefile sound/soc/codecs/tas2557.c +1 more+3195 -00 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/2] ASoC: codecs: add Texas Instruments TAS2557 smart amplifier driver

The TAS2557 is a mono Class-D smart amplifier with an on-chip DSP for speaker protection, controlled over I2C, with audio over I2S/TDM. The DSP needs a firmware image tuned for the speaker; without it the chip passes no audio.

Patch 1 adds the binding, patch 2 the driver. One node describes one chip or a stereo pair on one bus, using the reg-array convention of ti,tas2781.yaml: reg index 0 is DEV_A, index 1 is DEV_B.

v4 uses tas2781-comlib for register access, adds the firmware rate constraint asked for in the v2 review, and addresses the v3 review from Mark Brown, Krzysztof Kozlowski and Markus Elfring. The ti,imon-slot-nos/ti,vmon-slot-nos properties are gone: the register they were written to only holds the I-sense scale. I/V sense now stays on while the amplifier plays, as in TI's driver. Details are in the per-patch changelogs.

Testing: built against broonie/sound for-next with W=1, checkpatch --strict and dt_binding_check clean. The v4 driver was run in mono on a Xiaomi Redmi Note 6 Pro (SDM636, ASI2) on a 7.2-based kernel:
firmware load, playback, stream restarts without a program reload and unbind/bind. Stereo pairs, TDM, DSP_A, ASI1 and suspend were not tested with v4.

Link to v3: https://lore.kernel.org/linux-sound/[email protected]/
Link to v2: https://lore.kernel.org/linux-sound/[email protected]/
Link to v1: https://lore.kernel.org/linux-sound/[email protected]/

Gianluca Boiano (2):
ASoC: dt-bindings: add Texas Instruments TAS2557
ASoC: codecs: add TAS2557 mono smart amplifier driver

 .../devicetree/bindings/sound/ti,tas2557.yaml |  158 +
 MAINTAINERS                                   |    1 +
 sound/soc/codecs/Kconfig                      |   13 +
 sound/soc/codecs/Makefile                     |    2 +
 sound/soc/codecs/tas2557.c                    | 2973 +++++++++++++++++
 sound/soc/codecs/tas2557.h                    |  207 ++
 6 files changed, 3354 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/ti,tas2557.yaml
 create mode 100644 sound/soc/codecs/tas2557.c
 create mode 100644 sound/soc/codecs/tas2557.h

base-commit: cee03387d20bb267663085d9ac2622ff9263d302

Signature · 1 line
2.56.1