Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH v4 0/2] ASoC: simple-audio-mux: add state-labels
@ 2024-06-28  1:47 Kuninori Morimoto
  2024-06-28  1:47 ` [PATCH v4 1/2] ASoC: simple-audio-mux: enable to select MUX names Kuninori Morimoto
  2024-06-28  1:47 ` [PATCH v4 2/2] ASoC: dt-bindings: simple-audio-mux: add mux-names property Kuninori Morimoto
  0 siblings, 2 replies; 4+ messages in thread
From: Kuninori Morimoto @ 2024-06-28  1:47 UTC (permalink / raw)
  To: Alexandre Belloni, Conor Dooley, Jaroslav Kysela,
	Krzysztof Kozlowski, Krzysztof Kozlowski, Liam Girdwood,
	Mark Brown, Rob Herring, Takashi Iwai, devicetree, linux-sound


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"

v3 -> v4
	- add missing property type

v2 -> v3
	- expand example on Doc

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@renesas.com
Link: https://lore.kernel.org/r/87sewxapr5.wl-kuninori.morimoto.gx@renesas.com
Link: https://lore.kernel.org/r/87msn5apey.wl-kuninori.morimoto.gx@renesas.com

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      |  6 ++
 sound/soc/codecs/simple-mux.c                 | 55 ++++++++++++++-----
 2 files changed, 46 insertions(+), 15 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-28  8:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-28  1:47 [PATCH v4 0/2] ASoC: simple-audio-mux: add state-labels Kuninori Morimoto
2024-06-28  1:47 ` [PATCH v4 1/2] ASoC: simple-audio-mux: enable to select MUX names Kuninori Morimoto
2024-06-28  1:47 ` [PATCH v4 2/2] ASoC: dt-bindings: simple-audio-mux: add mux-names property Kuninori Morimoto
2024-06-28  8:25   ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox