Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/2] ASoC: aw88461: add the Awinic AW88461 speaker amplifier
@ 2026-11-30 15:28 Qianhui Xu
  2026-11-30 15:28 ` [PATCH 1/2] ASoC: dt-bindings: awinic,aw88395: add the AW88461 variant Qianhui Xu
  2026-11-30 15:28 ` [PATCH 2/2] ASoC: codecs: aw88461: add the Awinic AW88461 speaker amplifier driver Qianhui Xu
  0 siblings, 2 replies; 4+ messages in thread
From: Qianhui Xu @ 2026-11-30 15:28 UTC (permalink / raw)
  To: broonie
  Cc: lgirdwood, robh, krzk+dt, conor+dt, wangweidong.a, perex, tiwai,
	linux-sound, devicetree, alsa-devel, linux-kernel

This adds support for the Awinic AW88461, a speaker amplifier of the
AW88xxx family that is used as the speaker PA on Lenovo TB322FC (SM8750)
tablets, where two instances drive the left and right speaker.

The part reports PID 0x2308 and is tuned from an ACF firmware image, so
the existing AW88395 device library is reused for parsing and profile
selection.  It differs from the other family members in two ways: it has
no sample-level VCALB backup register, so the startup ramp is done by the
driver itself, and it is always wired to a reset GPIO and always needs a
firmware image, which is why the new compatible makes both properties
mandatory in the binding.

Patch 1 extends the existing awinic,aw88395 binding, patch 2 adds the
driver (Kconfig + Makefile + sound/soc/codecs/aw88461.c).

On the tablet this driver is what the everyday kernel uses for its two
speakers: both instances bind (i2c9, amplifier@34 and amplifier@37 with
awinic,audio-channel = <0> and <1>), the card registers the two
components aw88461.9-0034 and aw88461.9-0037, and it exposes a
"Left Playback Volume" and a "Right Playback Volume" control (0..1023).
Playback of a left-only and of a right-only 1 kHz test file returns
without error and leaves no PLL lock or amplifier-ready timeout in the
kernel log, and both volumes and mute are honoured.  The device-tree
consumers for the tablet travel with the board support series, not with
this one.

---
Qianhui Xu (2):
  ASoC: dt-bindings: awinic,aw88395: add the AW88461 variant
  ASoC: codecs: aw88461: add the Awinic AW88461 speaker amplifier

 .../devicetree/bindings/sound/awinic,aw88395.yaml     |  11 +
 sound/soc/codecs/Kconfig                             |  13 +
 sound/soc/codecs/Makefile                            |   2 +
 sound/soc/codecs/aw88461.c                           | 547 +++++++++++++++++++++++++++++++++++++
 4 files changed, 573 insertions(+)

*** AI-assistance disclosure ***
This series was prepared with the help of an LLM coding assistant.  The
author reviewed every line, checked every quoted claim against the tree,
and ran the gates quoted above; the design decisions and any errors are
the author's.  The same disclosure is below the tearline of 1/2 and 2/2.

-- 
2.53.0


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

end of thread, other threads:[~2026-11-30 15:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 15:28 [PATCH 0/2] ASoC: aw88461: add the Awinic AW88461 speaker amplifier Qianhui Xu
2026-11-30 15:28 ` [PATCH 1/2] ASoC: dt-bindings: awinic,aw88395: add the AW88461 variant Qianhui Xu
2026-11-30 15:28 ` [PATCH 2/2] ASoC: codecs: aw88461: add the Awinic AW88461 speaker amplifier driver Qianhui Xu
2026-11-30 15:52   ` sashiko-bot

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