[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230715083046.108674-3-fido_max@inbox.ru>
Date: Sat, 15 Jul 2023 11:30:43 +0300
From: Maxim Kochetkov <fido_max@...ox.ru>
To: alsa-devel@...a-project.org
Cc: Maxim Kochetkov <fido_max@...ox.ru>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>,
Sameer Pujar <spujar@...dia.com>,
Astrid Rost <astrid.rost@...s.com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Herve Codina <herve.codina@...tlin.com>,
Aidan MacDonald <aidanmacdonald.0x0@...il.com>,
Christophe Leroy <christophe.leroy@...roup.eu>,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH v2] ASoC: dt-bindings: simple-card: add triggers properties
The trigger-start/stop properties allows to specify DAI link
trigger ordering method.
Signed-off-by: Maxim Kochetkov <fido_max@...ox.ru>
---
.../bindings/sound/simple-card.yaml | 31 +++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/simple-card.yaml b/Documentation/devicetree/bindings/sound/simple-card.yaml
index 59ac2d1d1ccf..f1878d470d83 100644
--- a/Documentation/devicetree/bindings/sound/simple-card.yaml
+++ b/Documentation/devicetree/bindings/sound/simple-card.yaml
@@ -99,6 +99,28 @@ definitions:
description: the widget names for which pin switches must be created.
$ref: /schemas/types.yaml#/definitions/string-array
+ trigger-start:
+ description: |-
+ Start trigger ordering method:
+ default: Link->Component->DAI
+ ldc: Link->DAI->Component
+ $ref: /schemas/types.yaml#/definitions/string
+ items:
+ enum:
+ - default
+ - ldc
+
+ trigger-stop:
+ description: |-
+ Stop trigger ordering method:
+ default: DAI->Component->Link
+ ldc: Component->DAI->Link
+ $ref: /schemas/types.yaml#/definitions/string
+ items:
+ enum:
+ - default
+ - ldc
+
format:
description: audio format.
items:
@@ -210,6 +232,10 @@ properties:
maxItems: 1
simple-audio-card,mic-det-gpio:
maxItems: 1
+ simple-audio-card,trigger-start:
+ $ref: "#/definitions/trigger-start"
+ simple-audio-card,trigger-stop:
+ $ref: "#/definitions/trigger-stop"
patternProperties:
"^simple-audio-card,cpu(@[0-9a-f]+)?$":
@@ -259,6 +285,11 @@ patternProperties:
maxItems: 1
mic-det-gpio:
maxItems: 1
+ trigger-start:
+ $ref: "#/definitions/trigger-start"
+ trigger-stop:
+ $ref: "#/definitions/trigger-stop"
+
patternProperties:
"^cpu(-[0-9]+)?$":
--
2.40.1
Powered by blists - more mailing lists