]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: simple-audio-mux: enable to select MUX names
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 1 Jul 2024 00:38:51 +0000 (00:38 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 1 Jul 2024 13:10:32 +0000 (14:10 +0100)
commit3913ecb38833e8926467a17f1f1679ccd25a7230
treeca50ea14e4fbe4fd15513ed3ec3cac0b697c2eb4
parent4235c80ba40c9cfba917d207fa2415a25d2309ea
ASoC: simple-audio-mux: enable to select MUX names

simple-audio-mux is designed to be used generally, thus "Input 1" or
"Input 2" are used to selecting MUX input. This numbered inputs would
work, but might be not user friendly in some case, for example in case
of system hardware design has some clear labels.
Adds new "state-labels" property and enable to select MUX by own state
names.

Original
> amixer set "MUX" "Input 1"

Use mux-names
sound_mux: mux {
compatible = "simple-audio-mux";
mux-gpios = <...>;
state-labels = "Label_A", "Label_B";
};

> amixer set "MUX" "Label_A"

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87msn27xpg.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/simple-mux.c