diff options
author | Hendrik v. Raven <h.v.raven@merzmedtech.de> | 2024-11-14 12:01:26 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-11-14 11:39:23 +0000 |
commit | 3b7e11a0116c30848d44429650ad80f9cc3bd963 (patch) | |
tree | 2fea88e1c807858f35bcb8964b5aeecf0c7af7a8 | |
parent | 2b974284aa073d6e2936f9032e8ad7b99480b5b8 (diff) | |
download | lwn-3b7e11a0116c30848d44429650ad80f9cc3bd963.tar.gz lwn-3b7e11a0116c30848d44429650ad80f9cc3bd963.zip |
ASoC: dt-bindings: simple-mux: add idle-state property
simple-mux immediately activates the new output, even when it is powered
down. This can be undesirable in some cases, for example when a
mechanical relais is used.
Adds "idle-state" property from the mux controller to select the output
state to be used when the mux is powered down.
Signed-off-by: Hendrik v. Raven <h.v.raven@merzmedtech.de>
Link: https://patch.msgid.link/20241114-simple-mux-idle-state-v2-2-a30cb37d2be2@merzmedtech.de
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | Documentation/devicetree/bindings/sound/simple-audio-mux.yaml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/simple-audio-mux.yaml b/Documentation/devicetree/bindings/sound/simple-audio-mux.yaml index 194ac1d4f4f5..9b1bda4852e1 100644 --- a/Documentation/devicetree/bindings/sound/simple-audio-mux.yaml +++ b/Documentation/devicetree/bindings/sound/simple-audio-mux.yaml @@ -29,6 +29,10 @@ properties: $ref: /schemas/types.yaml#/definitions/string-array maxItems: 2 + idle-state: + description: If present specifies the state when the mux is powered down + $ref: /schemas/mux/mux-controller.yaml#/properties/idle-state + sound-name-prefix: true required: @@ -43,4 +47,5 @@ examples: compatible = "simple-audio-mux"; mux-gpios = <&gpio 3 0>; state-labels = "Label_A", "Label_B"; + idle-state = <0>; }; |