ASoC: codecs: Add Awinic AW8738 audio amplifier driver
authorJonathan Albrieux <jonathan.albrieux@gmail.com>
Fri, 4 Mar 2022 10:24:52 +0000 (11:24 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 7 Mar 2022 13:13:01 +0000 (13:13 +0000)
commit6b4528b5532f84f385b4e756637698cf4ae211f3
tree33dc5141660c6300119c340ee90c587d57e4db03
parentb3284430615c27ca441967f99fbde957b434e092
ASoC: codecs: Add Awinic AW8738 audio amplifier driver

The Awinic AW8738 is a simple audio amplifier using a single GPIO.
The main difference to simple-amplifier is that there is a "one-wire
pulse control" that allows configuring the amplifier to one of a few
pre-defined modes. This can be used to configure the speaker-guard
function (primarily the power limit for the amplifier).

Add a simple driver that allows setting it up in the device tree
with a specified mode number.

Signed-off-by: Jonathan Albrieux <jonathan.albrieux@gmail.com>
Co-developed-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20220304102452.26856-3-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/Kconfig
sound/soc/codecs/Makefile
sound/soc/codecs/aw8738.c [new file with mode: 0644]