Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] ASoC: simple-audio-mux: add mux-name
@ 2024-06-27  3:51 Kuninori Morimoto
  2024-06-27  3:51 ` [PATCH 1/2] ASoC: simple-audio-mux: enable to select MUX names Kuninori Morimoto
  2024-06-27  3:52 ` [PATCH 2/2] ASoC: dt-bindings: simple-audio-mux: add mux-names property Kuninori Morimoto
  0 siblings, 2 replies; 6+ messages in thread
From: Kuninori Morimoto @ 2024-06-27  3:51 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

Current simple-audio-mux selects MUX by "Input 1" or "Input 2",
but it is not user friendly. This patch adds new "mux-names" property
and enable to select MUX by own names, like below.

Original
	> amixer set "MUX" "Input 1"
	> amixer set "MUX" "Input 2"

Use mux-names
	sound_mux: mux {
		compatible = "simple-audio-mux";
		mux-gpios = <...>;
=>		mux-names = "Device_A", "Device_B";
	};

	> amixer set "MUX" "Device_A"
	> amixer set "MUX" "Device_B"

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


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

end of thread, other threads:[~2024-06-27 23:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-27  3:51 [PATCH 0/2] ASoC: simple-audio-mux: add mux-name Kuninori Morimoto
2024-06-27  3:51 ` [PATCH 1/2] ASoC: simple-audio-mux: enable to select MUX names Kuninori Morimoto
2024-06-27  3:52 ` [PATCH 2/2] ASoC: dt-bindings: simple-audio-mux: add mux-names property Kuninori Morimoto
2024-06-27  7:46   ` Krzysztof Kozlowski
2024-06-27 11:45     ` Mark Brown
2024-06-27 23:08       ` Kuninori Morimoto

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