]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: simple-audio-mux: add state-labels
authorMark Brown <broonie@kernel.org>
Tue, 2 Jul 2024 12:03:13 +0000 (13:03 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 2 Jul 2024 12:03:13 +0000 (13:03 +0100)
commita893a804c6bb09336a217780c722b7d1c88357c6
tree19874666b16b53756a33ccc84d9a5c3e1c6c1226
parentd0401d07a9daa116cde127d68289f975a00100c2
parent9337f15f4fd6ebd35d911225c4a88ec82d27b2a2
ASoC: simple-audio-mux: add state-labels

Merge series from Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>:

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"
> amixer set "MUX" "Input 2"

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

> amixer set "MUX" "Label_A"
> amixer set "MUX" "Label_B"