Hi Mark
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"
v1 -> v2
- update git-log explanation
- update property description
- change property name "mux-names" -> "state-labels"
Link: https://lore.kernel.org/r/87bk3nqc0e.wl-kuninori.morimoto.gx@xxxxxxxxxxx
Kuninori Morimoto (2):
ASoC: simple-audio-mux: enable to select MUX names
ASoC: dt-bindings: simple-audio-mux: add mux-names property
.../bindings/sound/simple-audio-mux.yaml | 4 ++
sound/soc/codecs/simple-mux.c | 55 ++++++++++++++-----
2 files changed, 44 insertions(+), 15 deletions(-)
--
2.43.0
[Index of Archives]
[Pulseaudio]
[Linux Audio Users]
[ALSA Devel]
[Fedora Desktop]
[Fedora SELinux]
[Big List of Linux Books]
[Yosemite News]
[KDE Users]