[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230715083046.108674-4-fido_max@inbox.ru>
Date: Sat, 15 Jul 2023 11:30:44 +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>,
Robert Hancock <robert.hancock@...ian.com>,
Aidan MacDonald <aidanmacdonald.0x0@...il.com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Herve Codina <herve.codina@...tlin.com>,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH v2] ASoC: simple-card: add triggers parsing from DT node support
It may be useful to specify trigger-start/stop for some DMA-based
simple audio card. So add this "trigger-start/stop" device tree
entry parser.
Signed-off-by: Maxim Kochetkov <fido_max@...ox.ru>
---
sound/soc/generic/simple-card.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c
index a78babf44f38..f934534d5c94 100644
--- a/sound/soc/generic/simple-card.c
+++ b/sound/soc/generic/simple-card.c
@@ -181,6 +181,10 @@ static int simple_link_init(struct asoc_simple_priv *priv,
struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
int ret;
+ ret = asoc_simple_parse_triggers(node, prefix, dai_link);
+ if (ret)
+ return ret;
+
ret = asoc_simple_parse_daifmt(dev, node, codec,
prefix, &dai_link->dai_fmt);
if (ret < 0)
--
2.40.1
Powered by blists - more mailing lists