]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: simple-amplifier: gpio-audio-amp: Add support for gain-labels
authorHerve Codina <herve.codina@bootlin.com>
Wed, 13 May 2026 08:16:59 +0000 (10:16 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 18 May 2026 16:44:14 +0000 (17:44 +0100)
commitfb757dfa039fd2adaab5bf0de2df1530531b4060
treea9fcab2983e5ea2e61852fa6e4a26b6cb9b79466
parentd25e00ecd5c5be3b24cc2637b3e2403da3e1aaa1
ASoC: simple-amplifier: gpio-audio-amp: Add support for gain-labels

The possible gain values can be described using labels instead of gain
values in dB.

Those different labels are attached to a gpio values using the
gain-labels property.

Using the gain-labels description is mutually exclusive with gain-ranges
description used to describe the relationship between gpios values and
gain values.

Handle the gain-labels description and the related kcontrol.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Link: https://patch.msgid.link/20260513081702.317117-16-herve.codina@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/simple-amplifier.c